Re: Simple dealloc question
Re: Simple dealloc question
- Subject: Re: Simple dealloc question
- From: Scott Anguish <email@hidden>
- Date: Mon, 15 Oct 2007 14:28:56 -0400
On Oct 15, 2007, at 5:34 AM, Bob Ueland wrote:
Thank you Robert and Amritendu, now I understand.
I have one more question. In the same code there is
// Standard accessors
- (Track *)track
{
return [[track retain] autorelease];
}
Why not just
// Standard accessors
- (Track *)track
{
return track;
}
refer to the memory management guide
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/index.html
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden