2 // BorderTextField.swift
5 // Created by Hori,Masaki on 2017/01/02.
6 // Copyright © 2017年 Hori,Masaki. All rights reserved.
11 /// 「編成支援」「能力値3」「艦載機搭載数」用
12 final class BorderTextField: NSTextField {
14 override func draw(_ dirtyRect: NSRect) {
18 let bounds = self.bounds
19 let width = bounds.width
20 let height = bounds.height
21 NSColor.controlShadowColor.set()
22 NSBezierPath.defaultLineWidth = 1.0
25 .move(to: NSPoint(x: 3, y: height))
26 .line(to: NSPoint(x: bounds.maxX, y: height))
27 .move(to: NSPoint(x: width, y: 0))
28 .line(to: NSPoint(x: width, y: height))