Re: Ghost value in NSUserDefaults
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