/** * Tae Won Ha - http://taewon.de - @hataewon * See LICENSE */ import Cocoa extension NSButton { var boolState: Bool { get { return self.state == NSOnState ? true : false } set { self.state = newValue ? NSOnState : NSOffState } } }