[[myObj retain] autorelease]
[[myObj retain] autorelease]
- Subject: [[myObj retain] autorelease]
- From: Ben Kazez <email@hidden>
- Date: Tue, 12 Jul 2005 15:32:54 -0400
Sorry to ask a question about a topic that appears so frequently, but
here I go: I haven't been able to find anything that explains when to use
return [[myObj retain] autorelease];
instead of just
return [myObj autorelease];
For example, Apple's default accessor methods do this. Is the reasoning
something to do with thread-safeness perhaps?
Ben
_______________________________________________
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