Re: Garbage collection - was Beginner with Cocoa
Re: Garbage collection - was Beginner with Cocoa
- Subject: Re: Garbage collection - was Beginner with Cocoa
- From: Paul Bruneau <email@hidden>
- Date: Tue, 25 Mar 2008 18:11:27 -0400
On Mar 25, 2008, at 6:01 PM, Jack Repenning wrote:
On Mar 25, 2008, at 2:06 PM, Scott Ribe wrote:
There's a *very* simple set of rules to follow regarding retain/
release.
Yes, but where are they documented? Or, if they're so simple, can
you quote them here?
Not to sound querulous, but what I know of these very simple rules I
picked up from multiple conversations like this on, where the
experts seem to say "it's so simple" three to five times for every
one time they let leak one of these simple rules. And I've never
managed to locate these simple rules in any dox. There's a good,
multipage memory-management doc, but that's a bit more than "a
*very* simple set of rules."
My favorite summary is here:
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Tasks/MemoryManagementRules.html
I re-found it by googling "cocoa memory management rules"
I learned them when I started programming Cocoa about 6 months ago and
I am so comfortable with them now that I don't even feel the urge to
learn the new GC stuff.
_______________________________________________
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