Re: Autorelease accessors, was Re: NSEnumerator retaining objects?
Re: Autorelease accessors, was Re: NSEnumerator retaining objects?
- Subject: Re: Autorelease accessors, was Re: NSEnumerator retaining objects?
- From: mmalcolm crawford <email@hidden>
- Date: Wed, 9 Mar 2005 10:51:09 -0800
On Mar 9, 2005, at 10:30 AM, Ricky Sharp wrote:
It really depends. I typically use the 'return [[_object retain]
autorelease]' pattern. But, there are cases where other patterns
need to be used (e.g. returning a mutable copy of the object).
Definitely read up on the advantages/disadvantages of each
pattern. I don't have the link handy, but there's a very good read
on all this. I think mmalc put it together;
<http://www.stepwise.com/Articles/Technical/2002-06-11.01.html>
I should try to update it at some stage...
mmalc
_______________________________________________
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