• 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: Simple dealloc question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Re: Simple dealloc question (From: Bob Ueland <email@hidden>)

  • Prev by Date: Re: Binding NSPopupButton crashes
  • Next by Date: Re: Validation error in a relationship? (in coredata)
  • Previous by thread: Re: Simple dealloc question
  • Next by thread: Re: Simple dealloc question
  • Index(es):
    • Date
    • Thread