Re: Change Budle Identifier, then lost defaults
Re: Change Budle Identifier, then lost defaults
- Subject: Re: Change Budle Identifier, then lost defaults
- From: Finlay Dobbie <email@hidden>
- Date: Thu, 25 Aug 2005 11:48:54 +0100
On 25/08/05, Kirt Cathey <email@hidden> wrote:
> The other day before compiling, I changed the name of the bundle identifier
> then compiled. After testing for a while, I noticed that the compiled app
> would not present a Preferences dialog box unless I clicked the pull-down
> menu twice. Among other things noticed when running with Omni Object
> Meter....
>
> Then when I went back to XCode to debug, I noticed that I lost all of my
> defaults and started getting nil assignment errors when MyDocument would
> load, etc.
>
> Now, no matter what I set the bundle identifier to be, errors persist and
> preferences are not saved on the hard disk.
At a guess, your code wasn't handling the case when there weren't
defaults present. When you changed the bundle identifier, you ended up
with an empty domain, and things started breaking. You hadn't noticed
this before because you had some non-nil values for some keys.
Just a wild stab in the dark. You're the only one in a position to
determine if that's the case or not :-)
-- Finlay
_______________________________________________
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