bindings + actions
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