2 // SlotItemFrameView.swift
5 // Created by Hori,Masaki on 2017/01/02.
6 // Copyright © 2017年 Hori,Masaki. All rights reserved.
11 final class SlotItemFrameView: NSBox {
13 override func draw(_ dirtyRect: NSRect) {
17 let bounds = self.bounds
18 let width = bounds.width
19 let height = bounds.height
20 NSColor.gridColor.set()
21 NSBezierPath.defaultLineWidth = 1.0
24 .move(to: NSPoint(x: 40.5, y: 0))
25 .line(to: NSPoint(x: 40.5, y: height))
26 .move(to: NSPoint(x: 0, y: 17.5))
27 .line(to: NSPoint(x: width, y: 17.5))
28 .move(to: NSPoint(x: 0, y: 34.5))
29 .line(to: NSPoint(x: width, y: 34.5))
30 .move(to: NSPoint(x: 0, y: 51.5))
31 .line(to: NSPoint(x: width, y: 51.5))
32 .move(to: NSPoint(x: 0, y: 68.5))
33 .line(to: NSPoint(x: width, y: 68.5))