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

User Default Problems


  • Subject: User Default Problems
  • From: Eric Czarny <email@hidden>
  • Date: Sun, 6 Apr 2003 16:51:38 -0400

I seem to be running into a rather frustrating problem in regards the NSUserDefaults. In the plist file for my application there are numerous values with the same key, and I don't know why each value isn't being assigned to it's own specific key. It's rather hard to explain, and I can't determine a reasonable explanation for the problem. Here is an example... I start my application, it registers its default preferences... I open the preference window and change numerous values, let's say I change setting A and B, respectively... A is set to YES and B to NO... I close my application and look at the plist file, all is well. Now, if I go back and set both A and B to NO and go back to the plist file I note that I now see two A's both set to NO. I don't know what's causing the problem, maybe it's the method in which I change the values. I added a unique tag to each UI component in the preference window and use a switch statement in one method to handle all the preference changes. Could this pose any problem?

Best Regards,
Eric Czarny
_______________________________________________
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: User Default Problems
      • From: Christopher Corbell <email@hidden>
  • Prev by Date: Re: gcc pragma pack() question
  • Next by Date: Re: StripedTableView and sheets
  • Previous by thread: Re: StripedTableView and sheets
  • Next by thread: Re: User Default Problems
  • Index(es):
    • Date
    • Thread