• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multiple applications, one NSUserDefaults object?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Custom dock tile for window ...
  • Next by Date: Re: No parent window for sheets?
  • Previous by thread: Re: Custom dock tile for window ...
  • Next by thread: ShortWeekNames
  • Index(es):
    • Date
    • Thread