• 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 stickyness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSUserDefaults stickyness


  • Subject: Re: NSUserDefaults stickyness
  • From: Michael Peirce <email@hidden>
  • Date: Sat, 16 Feb 2002 15:52:03 -0500

On Saturday, February 16, 2002, at 02:36 PM, Chris Kane (email@hidden) wrote:

-sychronize is a much more dainty hammer, and is documented.

Thanks Chris for setting me straight.

The docs for -sychronize say:

Saves any modifications to the persistent domains and updates all persistent domains that were not modified to what is on disk. Returns NO if it could not save data to disk. Because synchronize is automatically invoked at periodic intervals, use this method only if you cannot wait for the automatic synchronization (for example, if your application is about to exit), or if you want to update user defaults to what is on disk even though you have not made any changes.

I had overlooked the key last phrase: "or if you want to update user defaults to what is on disk".

Works fine.

--
Michael Peirce
6497 Spinnaker Drive
Lewis Center OH 43035
740-657-1269
email@hidden
_______________________________________________
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.

References: 
 >Re: NSUserDefaults stickyness (From: Chris Kane <email@hidden>)

  • Prev by Date: Re: Clarification: DO and client identification?
  • Next by Date: Re: NSDistributedNotificationCenter
  • Previous by thread: Re: NSUserDefaults stickyness
  • Next by thread: NSTabview and signal error in IB and application
  • Index(es):
    • Date
    • Thread