• 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
bindings + actions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bindings + actions


  • Subject: bindings + actions
  • From: "Justin R. Miller" <email@hidden>
  • Date: Sun, 21 May 2006 09:31:39 -0400

Quick question on the proper way to do something w.r.t. bindings.

I have implemented bindings for some NSUserDefaults settings, but some of the UI actions need to trigger events as well. For example, not only do I want to toggle the user default BOOL, but I would like to engage or disengage something at the same time.

I have found that binding the UI element as well as giving it a target and action in IB does the trick. Is this the proper way to do things?

The only other way I could see to do it would be to listen for the user defaults change notification and checking if I need to do anything in response.

Is my current method acceptable? Are there even other ways of doing this?

--
Justin R. Miller
Code Sorcery Workshop
http://codesorcery.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: bindings + actions
      • From: Jonathon Mah <email@hidden>
  • Prev by Date: Re: Determining how the app is run (intel/ppc/rosetta/os version)?
  • Next by Date: Stop NSTableColumn from being dragged, and from changing position (like iTunes)
  • Previous by thread: Re: textDidChange not firing
  • Next by thread: Re: bindings + actions
  • Index(es):
    • Date
    • Thread