• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie question: autorelease sends autorelease
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Newbie question: autorelease sends autorelease
      • From: j o a r <email@hidden>
References: 
 >Newbie question: autorelease sends autorelease (From: James Bucanek <email@hidden>)

  • Prev by Date: Re: Broken BoingX demo?
  • Next by Date: Re: Newbie question: autorelease sends autorelease
  • Previous by thread: Newbie question: autorelease sends autorelease
  • Next by thread: Re: Newbie question: autorelease sends autorelease
  • Index(es):
    • Date
    • Thread