FROM : David Wilson
DATE : Fri May 09 01:22:52 2008
On Thu, May 8, 2008 at 7:19 PM, Western Botanicals
<<email_removed>> 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
david.t.<email_removed>
DATE : Fri May 09 01:22:52 2008
On Thu, May 8, 2008 at 7:19 PM, Western Botanicals
<<email_removed>> 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
david.t.<email_removed>
| Related mails | Author | Date |
|---|---|---|
| Western Botanicals | May 9, 01:05 | |
| Nick Zitzmann | May 9, 01:16 | |
| Ken Thomases | May 9, 01:18 | |
| Western Botanicals | May 9, 01:19 | |
| David Wilson | May 9, 01:22 |






Cocoa mail archive

