• 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: NSUserdefaults shared by 2 applications, not synchronized ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserdefaults shared by 2 applications, not synchronized ?


  • Subject: Re: NSUserdefaults shared by 2 applications, not synchronized ?
  • From: Pontus Ilbring <email@hidden>
  • Date: Wed, 16 Feb 2005 13:06:39 +0100


On 2005-02-16, at 12.14, Aurélien Hugelé wrote:

From the documentation:

"NSUserDefaults caches the information to avoid having to open the user’s defaults database each time you need a default value. The synchronize method, which is automatically invoked at periodic intervals, keeps the in-memory cache in sync with a user’s defaults database."

I have called synchronize, that is what the carbon call : CFPreferencesAppSynchronize(CFSTR("com.MyApp.theDAEMONPartOfMyApp")) do...
but the daemon defaults **caches** is not synchronized... this is what i want !

But did you call synchronize in _both_ GUI and deamon?

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >NSUserdefaults shared by 2 applications, not synchronized ? (From: Aurélien Hugelé <email@hidden>)
 >Re: NSUserdefaults shared by 2 applications, not synchronized ? (From: Pontus Ilbring <email@hidden>)
 >Re: NSUserdefaults shared by 2 applications, not synchronized ? (From: Aurélien Hugelé <email@hidden>)

  • Prev by Date: Re: NSUserdefaults shared by 2 applications, not synchronized ?
  • Next by Date: Re: Sorting
  • Previous by thread: Re: NSUserdefaults shared by 2 applications, not synchronized ?
  • Next by thread: Re: NSUserdefaults shared by 2 applications, not synchronized ?
  • Index(es):
    • Date
    • Thread