Re: Multiple applications, one NSUserDefaults object?
Re: Multiple applications, one NSUserDefaults object?
- Subject: Re: Multiple applications, one NSUserDefaults object?
- From: Trygve Inda <email@hidden>
- Date: Sat, 08 Mar 2008 23:14:27 +0000
- Thread-topic: Multiple applications, one NSUserDefaults object?
>
> On 2007 Nov, 26, at 9:32, Joachim Deelen wrote:
>
>> For me the it's working without problems. I have a background App
>> and another standalone App for setting the preferences. In the
>> Background App, I'm just using addSuiteNamed and all the keys that
>> were set by my standalone App are available.
>
> OK, so I changed my background app to have a different bundle
> identifier than my main app, added addSuiteNamed: and indeed it works.
>
> But of course this only works for reading preferences. My background
> app also writes a preference. (Some simple and cheap interapplication
> communication.) To restore that facility, I called upon
> CFPreferencesSetAppValue() and CFPreferencesSynchronize().
Look at persistentDomainForName in NSUserDefaults
Trygve
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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