Created
December 14, 2013 03:13
-
-
Save elizaaverywilson/7955279 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// In the header, some @properties... connected to checkboxes in a window | |
@property (weak) IBOutlet NSButton *loginItem; | |
@property (weak) IBOutlet NSButton *flashTimeSeparator; | |
@property (weak) IBOutlet NSButton *displaySecond; | |
@property (weak) IBOutlet NSButton *displayMillisecond; | |
@property (weak) IBOutlet NSButton *twentyFourHour; | |
@property (weak) IBOutlet NSButton *displayMeridiem; | |
// Me trying to set state to off | |
// The state is always yes for some reason, but it [_button state] returns 0 | |
NSLog (@"%li", (long)[_displayMeridiem state]); | |
[_displayMeridiem setState: NSOffState]; | |
NSLog (@"%li", (long)[_displayMeridiem state]); | |
// Output: 0 [newline] 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment