Re: NSEnumerator retaining objects?
Re: NSEnumerator retaining objects?
- Subject: Re: NSEnumerator retaining objects?
- From: j o a r <email@hidden>
- Date: Wed, 9 Mar 2005 12:42:14 +0100
On 2005-03-09, at 12.25, Shaun Wexler wrote:
Let's get rid of performance killers wherever possible! I'd rather
see NSEnumerator _not_ retain the collection, nor retain/autorelease
the returned objects. It's already documented not to be thread-safe
to enumerate a mutable collection, and if you have to manipulate one
using mutexes, retains would then be performed by your thread-safe
accessor methods.
How is this thread in any way related to thread safety concerns and
mutability? You're not allowed to mutate a collection while it's used
by an enumerator, so it doesn't really matter for this discussion if
the collection is mutable or not.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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