System Preferences and NSUserDefaultsController
System Preferences and NSUserDefaultsController
- Subject: System Preferences and NSUserDefaultsController
- From: "Eric Hankins" <email@hidden>
- Date: Fri, 18 Jun 2004 20:51:27 -0600
Greetings,
I'm trying to write a preference pane for System Preferences that uses
NSUserDefaultsController to store its data. (Mmm, bindings...)
Everything works well, data is saved to files automatically, etc. The
only problem is that the defaults are written to
com.apple.systempreferences instead of my preference pane's bundle
identifier (net.stormsilver.iTunesCheck). So that when I go and
actually look at the plists, my settings are stored in
com.apple.systempreferences.plist instead of
net.stormsilver.iTunesCheck.plist.
Word on the street is that it's possible to access the NSUserDefaults
instance used by NSUserDefaultsController and change the domain, but I
can't figure out what to do to change the domain in use. Google has
been quite unfriendly about the entire issue. So is it possible to
tell NSUserDefaultsController to use a specific domain, or do I need
to just do without Cocoa bindings?
Thanks.
--Eric Hankins
_______________________________________________
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.