On Sep 16, 2008, at 21:24 , Dave DeLong wrote:
On 16 Sep, 2008, at 7:22 PM, Graham Cox wrote:On 17 Sep 2008, at 11:11 am, Dave DeLong wrote:because only a couple days ago I had a crash when I tried releasing an already autoreleased objectYes, because that would be an over-release. release must be balanced by a preceding retain. But once an object has been added to an autorelease pool it is retained by the pool, so there's nothing you can do to deallocate it other than release the pool itself.Is it actually retained by the pool, or does the pool just delay the final release?
It doesn't really matter how it's implemented... either way, you shouldn't release it unless you own it (i.e., you've retained it yourself or gotten it from one of the "ownership" methods such as copy, alloc, etc.).
/jason
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]