Re: sharing defaults between screensaver bundle and application
Re: sharing defaults between screensaver bundle and application
- Subject: Re: sharing defaults between screensaver bundle and application
- From: email@hidden
- Date: Sat, 23 Feb 2002 20:02:09 -0800
Ok, I've done some more work on this, and it is getting even weirder.
If I run the application first, it creates a proper plist file and
everything works fine.
When I run the screensaver, it doesn't pick up the applications
defaults, as I was previously complaining about. It creates a plist
containing my "default" defaults in the ByHost directory...
Then I change the screensaver defaults using System Preferences, and...
guess what? The application reflects the preferences set in the
screensaver! That was surprising.
Even MORE surprising is that when I go into the Applications preference
panel, and change them to something else... get this: neither the
Application NOR the screensaver reflects these changes!
I checked and the application is somehow reading from the screensaver's
ByHost plist, yet WRITING to its own!
I'm assuming this is a bug... but I'm not sure what the correct behavior
was intended to be.
Is there any documentation about what the ~/Library/Preferences/ByHost
stuff is all about, and how it's supposed to interact with identically
named plists in ~/Library/Preferences?
For now, I'm going to use a different bundle identifier for my
screensaver (Technichron) to keep the defaults segregated, but I'd love
to hear from someone at Apple about how this is supposed to work.
On Saturday, February 23, 2002, at 03:46 PM, email@hidden wrote:
I have a screensaver that has a few configuration options... it can
also be compiled as an application.
I'd like to share the defaults between them, so when the user sets a
config option in System Preferences->Screensaver OR via the app's
preferences panel, the same defaults get updated.
It seems that the screensaver defaults end up in
~/Library/Preferences/ByHost/com.mydomain.MyApp.003065e5f91e.plist and
the applications defaults end up in
~/Library/Preferences/com.mydomain.MyApp.plist
Is there any way around this using NSUserDefault APIs?, (short of
reading/writing the plist myself...)
_______________________________________________
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.