• 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
NSUserDefaults causing me fits
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSUserDefaults causing me fits


  • Subject: NSUserDefaults causing me fits
  • From: John Timmer <email@hidden>
  • Date: Mon, 08 Sep 2003 19:31:50 -0400

On my app controller's awakeFromNib method, I'm creating a dictionary and
initializing the user defaults to that if there's no pre-existing defaults.
These values seem to take, though if I quit the app, the file doesn't get
written out.

If I then go through and update the defaults through a preferences window,
the file gets written out with the "synchronize" method. Unfortunately,
when I look over the file's contents, all the values appear to have one of
two keys (there are the right number, they're just listed as all being one
or the other of these two keys). Not surprisingly, this isn't helping much.

Does anyone know why this would happen or how to avoid it?

Cheers,

JT
_______________________________________________
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 causing me fits
      • From: Phill Kelley <email@hidden>
    • Re: NSUserDefaults causing me fits
      • From: Dave Thorup <email@hidden>
References: 
 >Drag image questions (From: Keith Renz <email@hidden>)

  • Prev by Date: Possible Delegate Problem
  • Next by Date: Re: NSUserDefaults causing me fits
  • Previous by thread: Drag image questions
  • Next by thread: Re: NSUserDefaults causing me fits
  • Index(es):
    • Date
    • Thread