Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Change Budle Identifier, then lost defaults




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Change Budle Identifier, then lost defaults (From: Finlay Dobbie <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.