• 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: [OT] Retain count riddle
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OT] Retain count riddle


  • Subject: Re: [OT] Retain count riddle
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 1 Apr 2004 08:34:38 +0200

mercredi 31 mars 2004, ` 11:46 PM, Bob Smith a icrit :

How do I know which sort of object reference a particular method is going to return? Likewise, in designing my own objects, are there any rules I should follow about this sort of behavior?

Usually, you can know from the name of the method if you're going to get an autorelease or "not" version of an object.

The name of the method contains the word "copy" or "alloc".
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: [Mom list] Mailing-list and Spam challenge
  • Next by Date: When do NSImageRep subclasses register themselves?
  • Previous by thread: Re: [Mom list] Mailing-list and Spam challenge
  • Next by thread: Re: [OT] Retain count riddle
  • Index(es):
    • Date
    • Thread