Re: Save dictionary to local file please help!
Re: Save dictionary to local file please help!
- Subject: Re: Save dictionary to local file please help!
- From: Graham Cox <email@hidden>
- Date: Tue, 12 May 2009 14:33:38 +1000
On 11/05/2009, at 7:10 PM, Ben Spam wrote:
dataDict = [NSMutableDictionary
dictionaryWithContentsOfFile:destinationPath];
You do not own <dataDict> after this line, so later access to it is
accessing a stale pointer, and ...kablooey... it falls over.
RTFDOMMA. (Read The Documentation On Memory Management. Again)
--Graham
_______________________________________________
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