• 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: Thu, 14 Feb 2002 19:16:59 -0500

On Thursday, February 14, 2002, at 05:47 PM, Alex Keresztes wrote:

Have your companion app do a call
[NSUserDefaults resetStandardUserDefaults] (not sure if that is correct -- look it up in docs)

before every read of the user defaults. The problem is that when the nsuserdefaults object is created for an
app it is cached, and so any changes to the defaults will not be noticed until the cache is reread,
which is what reset does.

This does the trick! Much thanks Alex.

Another case of the dreaded "Description forthcoming":

resetStandardUserDefaults

+ (void)resetStandardUserDefaults

Description forthcoming.

--
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.

  • Follow-Ups:
    • Re: NSUserDefaults stickyness
      • From: Chris Kane <email@hidden>
  • Prev by Date: How do you run scripts within Cocoa Apps?
  • Next by Date: NSTabview and signal error in IB and application
  • Previous by thread: Re: How do you run scripts within Cocoa Apps?
  • Next by thread: Re: NSUserDefaults stickyness
  • Index(es):
    • Date
    • Thread