Re: NSEnumerator retaining objects?
Re: NSEnumerator retaining objects?
- Subject: Re: NSEnumerator retaining objects?
- From: James Bucanek <email@hidden>
- Date: Tue, 8 Mar 2005 22:10:56 -0700
John C. Randolph wrote on Tuesday, March 8, 2005:
>Enumerators do retain the collection that they're enumerating. This
>is so that your app won't crash if something releases an array while
>you're enumerating it.
That makes sense, but I was referring to NSEnuerator's propensity to also retain/autorelease each individual object returned by nextObject. This just seemed like overkill, given the fact the objects are already retained by the collection.
--
James Bucanek <mailto:email@hidden>
_______________________________________________
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