Re: quick and dirty NSData implosion
Re: quick and dirty NSData implosion
- Subject: Re: quick and dirty NSData implosion
- From: Keary Suska <email@hidden>
- Date: Fri, 8 May 2009 08:14:17 -0600
On May 8, 2009, at 7:56 AM, jon wrote:
yes i did try, i would send the data, and nothing would show up
in the property list file.
but there would be no crash, no error, nothing, but no results
either. so after reading the same documentation you also saw, I
assumed it had to be NSDictionary, rather than
NSMutableDictionary. It is most likely the wrong assumption, but
i could get nothing from the line of code below.
here is the line i used... simply substituting this in, instead of
the NSData stuff, and atleast it doesn't crash and burn... but it
also produces nothing in the property list.
[defaults setObject:bookMarkList forKey:PECBookMarkListKey];
so again, I must be doing something fundamentally wrong here?
this also does not explain why the NSData line of code would
implode, even if my assumption was wrong in that case, something
else must also be wrong there.
The above should fail, as your BookMark class cannot be stored in
defaults. So the question remains, when are you checking user
defaults? They are not saved immediately after being changed. If you
run the code that changes defaults (the original NSData attempt), then
properly quit the program, are defaults changed?
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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