Re: Can I use NSUserDefaultsController and NSObjectController
Re: Can I use NSUserDefaultsController and NSObjectController
- Subject: Re: Can I use NSUserDefaultsController and NSObjectController
- From: Brian Webster <email@hidden>
- Date: Tue, 28 Oct 2003 14:19:51 -0600
You can have multiple UI elements bound to the same key and all the
elements will react to changes made in any other element. As an
example, I was able to bind an NSTextField, an NSStepper, and an
NSSlider all to a single key in the shared NSUserDefaultsController.
If I type a new number into the text field, the slider and stepper
update their values to the one from the text field. If I click the
stepper, the text field and slider both update, etc. You can do this
without needing to instantiate a separate NSObjectController.
On Oct 27, 2003, at 9:40 PM, email@hidden wrote:
So ...
Can you use the object controller to bind the interface elements
together, but also bind some keys to the user defaults values? Like, a
checkbox that gets its value from the defaults, and some other
elements that then react accordingly. Anyone have an idea or two?
Beaucoup thanks, John.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.