Re: initWithCoder / unarchiveObjectWithData Memory Management Question
Re: initWithCoder / unarchiveObjectWithData Memory Management Question
- Subject: Re: initWithCoder / unarchiveObjectWithData Memory Management Question
- From: Matt Neuburg <email@hidden>
- Date: Sat, 20 Feb 2010 09:39:00 -0800
- Thread-topic: initWithCoder / unarchiveObjectWithData Memory Management Question
On Sat, 20 Feb 2010 01:47:27 -0500, Thomas Wetmore <email@hidden> said:
>The question came up because I found a case in my code where I convinced myself
I was over-releasing an object created in this fashion
You will never over-release an instance if you follow the basic rule - if
and only if you yourself copied it, alloced it, or retained it (the CAR
rule), you may (and should) balance that call with one eventual release (or
autorelease).
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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