-
- var labelString: String = "Captura"
- let textField = NSTextField()
-
- override func loadView() {
- self.view = NSView()
- self.view.frame = NSRect(x: 0, y: 0, width: 250, height: 40)
-
- textField.stringValue = labelString
- textField.font = NSFont(name: "Hiragino Mincho ProN", size: 12)
- textField.isEditable = false
- textField.isBezeled = false
- textField.isSelectable = false
- textField.backgroundColor = NSColor.clear
- textField.sizeToFit()
-
- let x = (view.frame.width - textField.frame.width) / 2
- let y = (view.frame.height - textField.frame.height) / 2
- textField.frame.origin = NSPoint(x: x, y: y)
-
- self.view.addSubview(textField)
- }
-
+
+ var labelString: String = "Captura"
+ let textField = NSTextField()
+
+ override func loadView() {
+ self.view = NSView()
+ self.view.frame = NSRect(x: 0, y: 0, width: 250, height: 40)
+
+ textField.stringValue = labelString
+ textField.font = NSFont(name: "Hiragino Mincho ProN", size: 12)
+ textField.isEditable = false
+ textField.isBezeled = false
+ textField.isSelectable = false
+ textField.backgroundColor = NSColor.clear
+ textField.sizeToFit()
+
+ let x = (view.frame.width - textField.frame.width) / 2
+ let y = (view.frame.height - textField.frame.height) / 2
+ textField.frame.origin = NSPoint(x: x, y: y)
+
+ self.view.addSubview(textField)
+ }
+