Re: cocoa newbie questions
Re: cocoa newbie questions
- Subject: Re: cocoa newbie questions
- From: Joe Muscara <email@hidden>
- Date: Mon, 5 Nov 2001 16:01:01 -0600
I see what you mean. My bust for trying to be too concise! Perhaps I
should have said something like, "myArray will be released (due to the
autorelease in the class method) unless you add any retains."
Joe
On Monday, November 5, 2001, at 03:24 PM, Finlay Dobbie wrote:
On Monday, November 5, 2001, at 09:01 pm, Joe Muscara wrote:
myArray = [NSArray arrayWithArray:someArray]; // myArray will be
autoreleased unless you add any retains.
That's misleading. myArray will be autoreleased even if you retain it,
it just won't be deallocated from memory unless you release it manually.