Re: Inconsistent Memory Management Rules
Re: Inconsistent Memory Management Rules
- Subject: Re: Inconsistent Memory Management Rules
- From: Denis Stanton <email@hidden>
- Date: Wed, 16 Apr 2003 15:37:23 +1200
Theodore
On Wednesday, April 16, 2003, at 03:07 PM, Theodore Petrosky wrote:
BTW, these are called convenience constructs.
So the rules for me are:
1) You have to use [[NSxxxxxx alloc] init], except where there is a
convenience method for NSxxxxxx
2). Convenience methods for declaring objects have the form [NSxxxxxx
initmethod]
3). Such convenience methods will already include autorelease.
4). Otherwise an alloc must be followed (eventually) by release
Have you read the Memory Management section at:
http://www.macdevcenter.com/pub/a/mac/2001/07/27/cocoa.html
I confess I have a accumulated a number of "must read" urls.
I will now print this particular one out so that I will be reminded to
read it.
Thank you for your time.
Denis Stanton
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.