Re: Question about scope of "convenience objects"
Re: Question about scope of "convenience objects"
- Subject: Re: Question about scope of "convenience objects"
- From: Scott Ribe <email@hidden>
- Date: Fri, 21 Sep 2007 11:04:05 -0600
- Thread-topic: Question about scope of "convenience objects"
> I see some prefer the style (on a "getter" accessor method) of:
>
> return [[object retain] autorelease];
In an accessor method, that makes sense for objects that might be shared
between threads. (And I can think of other situations, but they seem pretty
contrived.) In the context of the current discussion it adds nothing,
because the retain/autorelease of the convenience method must have been
performed in the current thread.
--
Scott Ribe
email@hidden
http://www.killerbytes.com/
(303) 722-0567 voice
_______________________________________________
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