FROM : Paul Bruneau
DATE : Tue Mar 25 23:11:27 2008
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.
DATE : Tue Mar 25 23:11:27 2008
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 mail archive

