Re: bindings from threads
Re: bindings from threads
- Subject: Re: bindings from threads
- From: Chris Hanson <email@hidden>
- Date: Thu, 5 Oct 2006 20:53:01 -0700
On Oct 5, 2006, at 10:47 AM, Jim Thomason wrote:
I've found that I can eliminate these crashes by instead accumulating
into a new array, then adding on those array elements to my master
array and sending my notifications from the main thread, instead of my
watcher thread.
Is this expected behavior?
Yes. The Key-Value Observing notifications are being delivered in the
thread in which they are posted, not in some other thread (such as, in
this case, the main thread). You will need to accumulate your changes
into a unit of work in your other thread, and pass that work to the
main thread for it to use in making the change.
-- Chris
_______________________________________________
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