• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Save dictionary to local file please help!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Save dictionary to local file please help! (From: Ben Spam <email@hidden>)

  • Prev by Date: Re: beginner's question: having problems with saving/loading
  • Next by Date: Re: Creating NSAttributedString objects using WebKit in secondary thread
  • Previous by thread: Save dictionary to local file please help!
  • Next by thread: Re: Save dictionary to local file please help!
  • Index(es):
    • Date
    • Thread