• 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
When does NSUserDefaults need to be synchronized?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When does NSUserDefaults need to be synchronized?


  • Subject: When does NSUserDefaults need to be synchronized?
  • From: Dave Thorup <email@hidden>
  • Date: Thu, 01 May 2003 17:43:49 -0600

If I have more than one application that accesses a shared set of defaults
(say with "com.foo.shared" as the domain), then how does one application
know when the other has updated the defaults.

I tried using the NSUserDefaultsDidChangeNotification but that only gets
fired when the defaults change for the currently running app. If another
application changes the defaults then the notification is not posted.

Are there any ideas on this, or would I need to do some type of
inter-application communication (through a pipe or something)?

Thanks!

____________________________________

Dave Thorup
Software Engineer
email@hidden
voice: 801-805-9422

www.corda.com
Interactive data driven graphics.
_______________________________________________
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.

  • Follow-Ups:
    • Re: When does NSUserDefaults need to be synchronized?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: WeakCache?
  • Next by Date: Re: When does NSUserDefaults need to be synchronized?
  • Previous by thread: Re: NS/OS Developer tools for Windows?
  • Next by thread: Re: When does NSUserDefaults need to be synchronized?
  • Index(es):
    • Date
    • Thread