Re: Unanswered question..
Re: Unanswered question..
- Subject: Re: Unanswered question..
- From: email@hidden
- Date: Sun, 17 Mar 2002 23:17:50 -0800
Okay guys, please help me with this simple question. I have a
checkbox. Once the checkbox is clicked, it stores the state in the
NSUserDefaults, and performs the action. However once the user quits
and opens the application again, the application will remember the state
of the checkbox. But will it still perfrom the action? I searched for
this everywhere and can't find an answer, please help!
Quick answer one: no, the action will not be performed when the
control's value is set in code (as opposed to by user action). I
believe there are AppKit controls that violate this rule, however;
NSComboBox and NSColorWell spring to mind, but I'm not sure.
Quick answer two: if your code is structured properly, you probably
shouldn't care what the answer to your question is. For a button (a
"real" button) you might, but for a checkbox you probably never should...
Ben Haller
Stick Software
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.