Re: [OT] Retain count riddle
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.