> On Dec 31, 2016, at 7:35 PM, Graham Cox <graham....@bigpond.com> wrote:
> 
> NSProgress is thread safe and might be useful for this.

One thing to be careful about when using NSProgress with threads is not to bind 
directly to it from your UI elements, since the updates will come in on the 
same thread the changes were made on. Either register your observers manually 
and call the main thread from 
-observeValue:forKeyPath:ofObject:change:context:, or have your worker thread 
call the main thread to update the NSProgress object.

Charles

_______________________________________________

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