Altering the behavior of NSUserDefaults
Altering the behavior of NSUserDefaults
- Subject: Altering the behavior of NSUserDefaults
- From: Ron Aldrich <email@hidden>
- Date: Fri, 6 Oct 2006 16:41:15 -0700
Folks,
I've run into a bit of a problem, which I'm unsure how to address.
I'm implementing a preferences panel in my application, with the view
objects bound to an NSUserDefaultsController.
Many of the bindings need to be handled programatically - for
instance, the "enabled" bindings depend on the value of some of the
other settings.
The problem is, I can't figure out how, or where, I'm supposed to
instantiate my subclass of NSUserDefaults (or of
NSUserDefaultsController, for that matter).
I tried setting the NSUserDefaultsController's custom class attribute
in Interface Builder, but it seems to be ignored, when creating
controllers (Is this a bug in IB? or am I not supposed to be
overriding the behavior of controllers?)
I also tried setting a delegate for NSUserDefaults, but that doesn't
appear to be supported.
Any suggestions?
Ron Aldrich
Software Architects, Inc.
_______________________________________________
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