Re: Newbie question: autorelease sends autorelease
Re: Newbie question: autorelease sends autorelease
- Subject: Re: Newbie question: autorelease sends autorelease
- From: Chris Ridd <email@hidden>
- Date: Wed, 22 Sep 2004 07:24:07 +0100
On 22/9/04 4:25 am, James Bucanek <email@hidden> wrote:
> Greetings,
>
> I'm a fairly new to Cacoa programming and am in the process of creating my
> first major application. I've got a few basic memory management questions
> that I can't seemed to find the answers to in the documentation.
>
> First question: What happens to an object that gets autoreleased during the
> dealloc message of another object that is being released by an autorelease
> pool?
That's a good question, but I can't see any reason why a dealloc method
would ever autorelease something in the first place. There's no point -
autorelease is only useful if you're returning an object to someone else,
and by definition dealloc doesn't do that.
Cheers,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden