Re: progress bar not updating
Re: progress bar not updating
- Subject: Re: progress bar not updating
- From: Jens Alfke <email@hidden>
- Date: Thu, 06 Oct 2016 13:26:21 -0700
> On Oct 6, 2016, at 11:36 AM, J.E. Schotsman <email@hidden> wrote:
>
> CoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.
Definitely looks like a threading problem — the view tried to use CA on the background thread, but that thread isn’t set up to use CA.
KVO and bindings aren’t aware of threads; they just call observers synchronously when properties change. Maybe someone’s come up with a generic proxy class that can be used to dispatch the notifications to the main thread?
Threading is infamously hard. Any kind of messaging or data sharing between threads has to be thought through really carefully. Most Cocoa classes are _not_ thread-safe, so you have to be careful to either call them only on the main thread (AppKit, UIKit), or at least only use them from one thread at a time (Foundation).
—Jens
_______________________________________________
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