• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Unanswered question..
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: chasing arrows?
  • Next by Date: Re: Making application a daemon
  • Previous by thread: Re: Unanswered question..
  • Next by thread: Newbie with stupid question
  • Index(es):
    • Date
    • Thread