Re: Bad stardardUserDeafaults
Re: Bad stardardUserDeafaults
- Subject: Re: Bad stardardUserDeafaults
- From: Jacob Schwartz <email@hidden>
- Date: Thu, 1 Oct 2009 15:49:13 -0400
Alright I'll have to do it after I get out of class. I didn't post it
right away in case this was a common mistake, simple use of a wrong
method. Thanks
-Jake
On Oct 1, 2009, at 3:38 PM, "I. Savant" <email@hidden>
wrote:
On Oct 1, 2009, at 3:32 PM, Jacob Schwartz wrote:
So I have a code segment that turns an NSString that is a file path
on my computer into an NSURL, archives the NSURL into NSData, and
then puts that into a NSMutableDictionary to be saved in the
standardUserDefaults. I can archive and unarchive the NSData with
no problem, but if I try to unarchive it after taking out of the
dictionary, then it tells me (at least I think that is what gdb is
telling me) that it is an NSButton. I have no clue where this could
have come from and was hoping someone has had this problem before
and fixed it.
There's no way we can possibly answer your question without seeing
your code. It *could* be a memory management issue or it could be a
mistaken assignment, but there's no way to tell why your code is
misbehaving when you haven't actually shown it.
Just post the relevant parts (the storage part and the retrieval
part). You don't have to share your whole project, but you *do* have
to post the relevant code if you want help debugging it.
--
I.S.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden