How to get a NSButton (check box) state
How to get a NSButton (check box) state
- Subject: How to get a NSButton (check box) state
- From: Martin Batholdy <email@hidden>
- Date: Mon, 8 Jun 2009 23:52:48 +0200
Hi,
I have added a NSButton Check Box to a window.
Now I want to grab the state of this check box.
I added an IBOutlet to my header file and connected it with the check
box in Interface Builder;
IBOutlet NSButton *launchOption;
Now I want to test the state via;
if([launchOption state] == 0) { NSLog(@"A"); }
else if([launchOption state] == 1) { NSLog(@"B"); }
The answer of this if / else statement is always A and I don't
understand why.
Can someone help me?
thanks!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden