simultaneously binding to model and defaults
simultaneously binding to model and defaults
- Subject: simultaneously binding to model and defaults
- From: Keith Alperin <email@hidden>
- Date: Thu, 27 Apr 2006 14:02:28 -0500
Greetings Cocoa-devs!
I have an faceless agent application (where LSUIElement is 1) which
is administered via a Preference Pane. The Preference Pane is
responsible for turning the agent on and off, as well as specifying
some system wide hot keys that invoke the agent. When the hot keys
are changed via the Preference Pane, I need to send a notification to
the agent telling it to listen for the new hot key as well as
persisting the new hot key in the user defaults. I would like to use
bindings in order to have changes in my view reflected in the user
defaults as well as calling an accessor method on my
NSPreferencePane. This accessor would in turn send the
notification. Is this possible? I found this thread (http://
www.cocoabuilder.com/archive/message/cocoa/2004/4/17/104561) which
seemed to say that it was not. If this is not possible, then what
might be a good strategy? Should I use an NSObjectController and let
the accessor methods update the user defaults?
Many Thanks,
Keith R. Alperin
_______________________________________________
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