Re: Thread safety of Cocoa Bindings
Re: Thread safety of Cocoa Bindings
- Subject: Re: Thread safety of Cocoa Bindings
- From: j o a r <email@hidden>
- Date: Tue, 6 Dec 2005 09:09:04 +0100
On 6 dec 2005, at 08.49, Theo Vosse wrote:
In my experience: partially. That might seem a strange answer. The
reason is that during the time I actually changed bindings from
different threads nothing crashed, so that in principle means that
bindings are not really unsafe.
No, it just means that you were lucky.
However, some changes would not get propagated to the UI (in
particular changes made just before thread termination), sometimes
only after forcing an update. Sometimes a text field even contained
two overlapping strings.
See...
The advice given to me was: use performInMainThread, and that works
pretty well for me, and it's easy to use.
That would be the safe way to go.
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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