-
- if let button {
- let buttonPath = NSBezierPath()
- buttonPath.move(to: NSPoint(x: button.minX, y: button.minY))
- buttonPath.line(to: NSPoint(x: button.maxX, y: button.minY))
- buttonPath.line(to: NSPoint(x: button.maxX, y: button.maxY))
- buttonPath.line(to: NSPoint(x: button.minX, y: button.maxY))
- buttonPath.line(to: NSPoint(x: button.minX, y: button.minY))
- NSColor(red: 1, green: 0, blue: 1, alpha: 1).setFill()
- buttonPath.fill()
- }
+
+// Uncomment below to debug button placement visually
+// if let button {
+// let buttonPath = NSBezierPath()
+// buttonPath.move(to: NSPoint(x: button.minX, y: button.minY))
+// buttonPath.line(to: NSPoint(x: button.maxX, y: button.minY))
+// buttonPath.line(to: NSPoint(x: button.maxX, y: button.maxY))
+// buttonPath.line(to: NSPoint(x: button.minX, y: button.maxY))
+// buttonPath.line(to: NSPoint(x: button.minX, y: button.minY))
+// NSColor(red: 1, green: 0, blue: 1, alpha: 1).setFill()
+// buttonPath.fill()
+// }