On 03/09/2013, at 12:52 PM, Jonathan Taylor <jonathan.tay...@glasgow.ac.uk> 
wrote:

> Is there any way, then, that I can take a copy in a threadsafe manner? If 
> necessary I can do the copy on the main thread, but I would prefer not to 
> have to do that for timing reasons. Any suggestions?

Since the implementation of -copy is up to you, you could just put 
@synchronized(self){…..} around the code in that method. That implements a lock 
which should make the copy thread-safe.

--Graham


_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to