Bindings do not work in threads?
Bindings do not work in threads?
- Subject: Bindings do not work in threads?
- From: Theo Vosse <email@hidden>
- Date: Wed, 12 Oct 2005 11:25:49 +0200
Hi,
I've got an application that runs some evaluation in a thread (via
detachNewThreadSelector). If that new thread updates a variable that
has a binding in the (current) view (an NSTabViewItem), strange
things happen.
1. If the update is made at the end of the new thread (i.e. just
before termination), the change is not displayed. When I change to
another tab and then back, it can be seen.
2. If the update is made regularly in the new thread, I can sometimes
see two different values, overlapping each other.
It seems that both threads are trying to update the bindings
themselves, instead of just letting the main thread do that. Is that
correct? If so, is there another solution than having some kind of
poll/wait loop in the main thread?
Theo Vosse
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden