Re: Dictionary Enumeration
Re: Dictionary Enumeration
- Subject: Re: Dictionary Enumeration
- From: Nick Zitzmann <email@hidden>
- Date: Thu, 8 May 2008 17:16:00 -0600
On May 8, 2008, at 5:05 PM, Western Botanicals wrote:
I am getting the following error that seems to be happening because
I am enumerating through a dictionary while it is being edited. I
really need these things to happen simultaneously. What can I do?
You cannot edit an NSMutableDictionary while enumerating it. You can
operate on a copy, or batch changes until enumeration is over, but you
cannot directly edit an object that is being enumerated.
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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