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

Re: User Default Problems


  • Subject: Re: User Default Problems
  • From: Christopher Corbell <email@hidden>
  • Date: Sun, 6 Apr 2003 15:12:14 -0700

I have seen this problem before as well and I think it may actually be
a problem with Property List Editor.app. Try opening the file with
BBEdit or some other text editor and see if it looks the same.
I found that the weird values displayed by Property List Editor
weren't really in the file, and the app behaved correctly, so I
forgot about it.

If that's not the problem then my only suggestion (which you've probably
already done) is to completely delete your current plist and let the
app generate it from scratch and see if the problems go away.
The switch statement you mention should only pose a problem if you've
forgotten a "break", which has happened to everyone...

- Christopher

On Sunday, April 6, 2003, at 01:51 PM, Eric Czarny wrote:

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.
_______________________________________________
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: Peter Fischer <email@hidden>
References: 
 >User Default Problems (From: Eric Czarny <email@hidden>)

  • Prev by Date: NSDocument recent items menu - doc fails to load
  • Next by Date: Re: Getting the blue and white table views
  • Previous by thread: User Default Problems
  • Next by thread: Re: User Default Problems
  • Index(es):
    • Date
    • Thread