On Thu, May 8, 2008 at 7:19 PM, Western Botanicals
<[EMAIL PROTECTED]> 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 PROTECTED]
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to