On Oct 1, 2008, at 1:16 PM, Christopher J Kemsley wrote:

I was not aware that I shouldn't explicitly call a dealloc... Why not? Replacing it with a "release" in the object made that leak go away, but I still don't understand why I can't dealloc it.


I would suggest that you read the memory management documentation. Any answers you get here can't serve as a substitute for reading and understanding the official documentation.

Explicitly calling dealloc is in direct conflict with the reference counting scheme used by Cocoa. Dealloc should only be called implicitly, ie. not by you, as the retain count of an object reaches zero.

j o a r


_______________________________________________

Cocoa-dev mailing list ([email protected])

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]

Reply via email to