Re: Dictionary Enumeration
Re: Dictionary Enumeration
- Subject: Re: Dictionary Enumeration
- From: "David Wilson" <email@hidden>
- Date: Thu, 8 May 2008 19:22:52 -0400
On Thu, May 8, 2008 at 7:19 PM, Western Botanicals
<email@hidden> wrote:
> How can I lock it then?
If you just want to lock it for synchronization, use an NSLock if
you're multithreaded.
Actually, if you're multithreaded, you should really be aware that
none of the containers are thread-safe and they should always be
wrapped in synchronization primitives.
If your problem is single threaded, then just don't edit during your
enumeration- save your edits somewhere and apply them after the
enumeration.
--
- David T. Wilson
email@hidden
_______________________________________________
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