• 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: Ghost value in NSUserDefaults
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ghost value in NSUserDefaults


  • Subject: Re: Ghost value in NSUserDefaults
  • From: Ricky Sharp <email@hidden>
  • Date: Sun, 9 Jan 2005 15:10:08 -0600


On Jan 9, 2005, at 2:02 PM, Stephan Burlot wrote:

I just found that the "Country" key was in the .GlobalPreferences.plist
It seems to be related to com.apple.AppleModemSettingTool.LastCountryCode
Is this normal? (Google shows other users have the same key in the .GlobalPreferences, so I suppose the answer is yes)


I guess that using a unique prefix for my keys will solve my problem.

You definitely should use unique prefixes to avoid collisions. This is what I do for all keys for my custom interface objects (controls, views, cells) in the encodeWithCoder: and initWithCoder: methods.


If you use Accessorizer to auto-generated keyed archiving code, you can tell it to use a custom prefix. It will then prepend this to the names of your iVars to form the keys.

___________________________________________________________
Ricky A. Sharp         mailto:email@hidden
Instant Interactive(tm)   http://www.instantinteractive.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Ghost value in NSUserDefaults (From: Stephan Burlot <email@hidden>)
 >Re: Ghost value in NSUserDefaults (From: Clark Cox <email@hidden>)
 >Re: Ghost value in NSUserDefaults (From: Stephan Burlot <email@hidden>)

  • Prev by Date: Adding to the undo chain of an NSTextView for a linked view?
  • Next by Date: Bindings and 2 NSTableViews
  • Previous by thread: Re: Ghost value in NSUserDefaults
  • Next by thread: Re: Ghost value in NSUserDefaults
  • Index(es):
    • Date
    • Thread