Skip to content

Instantly share code, notes, and snippets.

@elizaaverywilson
Created December 14, 2013 03:13
Show Gist options
  • Save elizaaverywilson/7955279 to your computer and use it in GitHub Desktop.
Save elizaaverywilson/7955279 to your computer and use it in GitHub Desktop.
// 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