KVO notifications and threads
KVO notifications and threads
- Subject: KVO notifications and threads
- From: Jerry Isdale <email@hidden>
- Date: Fri, 11 Jul 2008 09:30:07 -0700
I have an application whose data model (classes, shared Instances,
etc) gets updated by various threads for calculations, network comms,
etc.
Some of the application's Views use binding and KVO. For example an
NSTextField may get bound to SharedInstance.currentLattitude
It the property gets updated using KVO compliant code, on what thread
is the NSTextField updated?
Possible answers include:
* thread that invokes the set method
* MainThread - because all UI updates should happen there.
Perhaps the KVO means that the View gets marked as needing an update
in next update cycle, and thus we have a combination of these two
answers:
* invoking thread marks the View for update
* MainThread does the update in its next graphics update cycle
Jerry Isdale
email@hidden
_______________________________________________
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