• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Dictionary Enumeration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Dictionary Enumeration (From: Western Botanicals <email@hidden>)
 >Re: Dictionary Enumeration (From: Nick Zitzmann <email@hidden>)
 >Re: Dictionary Enumeration (From: Western Botanicals <email@hidden>)

  • Prev by Date: Re: Dictionary Enumeration
  • Next by Date: command-period doesn't close NSComboBox popup window
  • Previous by thread: Re: Dictionary Enumeration
  • Next by thread: Re: Dictionary Enumeration
  • Index(es):
    • Date
    • Thread