Re: Change Budle Identifier, then lost defaults
Re: Change Budle Identifier, then lost defaults
- Subject: Re: Change Budle Identifier, then lost defaults
- From: "Kirt Cathey" <email@hidden>
- Date: Wed, 31 Aug 2005 11:58:59 +0000
Finlay,
I solved this with all the proper if - else tests that were supposed to be
there at startup.
In a nutshelll. ...... you're exactly right. I stayed up until three
o'clock a.m. pounding this one out
the very next day. :-))
As usual. Thanks for the help.
-------------------------
Kirt S. Cathey
http://www.bizolutions.com
-------------------------
From: Finlay Dobbie <email@hidden>
To: Kirt Cathey <email@hidden>
CC: email@hidden
Subject: Re: Change Budle Identifier, then lost defaults
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
_________________________________________________________________
無料でメールボックス250MBの 「MSN Hotmail」 http://www.hotmail.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