Using bindings with NSPreferencePane
Using bindings with NSPreferencePane
- Subject: Using bindings with NSPreferencePane
- From: tiennou <email@hidden>
- Date: Sat, 19 May 2007 17:38:33 +0200
Hi, dear list-readers,
I'm trying to turn my applications preferences into a System
Preference Pane. As I used extensively Bindings, I would like to keep
my NSUserDefaultsController, alas I can't find a way to tell it not
to put my preferences into System Preferences's file.
A workaround I've found is to override in my NSPreferencePane
subclass valueForUndefinedKey: and setValue:forUndefinedKey: to
access [NSUserDefaults standardUserDefaults], and bind my Nib outlets
to an instance of my subclass.
Is there a better solution, or is this the only way ?
Thanks,
Etienne Samson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden