• 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: Forcing NSUserDefaults being written to disk?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing NSUserDefaults being written to disk?


  • Subject: Re: Forcing NSUserDefaults being written to disk?
  • From: Pierre-Olivier Latour <email@hidden>
  • Date: Thu, 09 Jan 2003 11:24:55 -0800

> Leave away the registering part and just use [[NSUserDefaults
> standardUserDefaults] setObject: myObject forKey: @"key"] and then call
> synchronize. At least for me, this works.
> Registering means, you specify the standard settings that are used if
> nothing is specified in the preferences file (e.g. first run on a users
> system).

Sure, that's why I would like to keep that as it is very convenient.

>> [defaults setBool:![defaults boolForKey:kKey_VerticalSync]
>> forKey:kKey_VerticalSync];
>
> If you restore it to the standard, I even assume, that it will
> disappear from the file again (not sure on that though).

Curiously, it doesn't. That's why I don't this in coherent behavior.


_____________________________________________________________

Pierre-Olivier Latour email@hidden
Palo Alto, USA http://www.pol-online.net
_______________________________________________
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: Forcing NSUserDefaults being written to disk? (From: Marco Binder <email@hidden>)

  • Prev by Date: Re: Best beginner's book
  • Next by Date: Re: Getting notified when the contents of the pasteboard changes
  • Previous by thread: Re: Forcing NSUserDefaults being written to disk?
  • Next by thread: Re: Forcing NSUserDefaults being written to disk?
  • Index(es):
    • Date
    • Thread