Skip navigation.
 
mlKVO notifications and threads
FROM : Jerry Isdale
DATE : Fri Jul 11 18:30:07 2008

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_removed>

Related mailsAuthorDate
mlKVO notifications and threads Jerry Isdale Jul 11, 18:30
mlRe: KVO notifications and threads Ken Thomases Jul 11, 20:50
mlRe: KVO notifications and threads Clark Cox Jul 11, 21:14
mlRe: KVO notifications and threads Jerry Isdale Jul 11, 21:22
mlRe: KVO notifications and threads Bill Bumgarner Jul 11, 21:36
mlRe: KVO notifications and threads Ben Trumbull Jul 12, 00:08
mlRe: KVO notifications and threads Dave Dribin Jul 14, 17:58
mlRe: KVO notifications and threads Jerry Isdale Jul 15, 20:45
mlRe: KVO notifications and threads Hamish Allan Jul 15, 23:43
mlRe: KVO notifications and threads Dave Dribin Jul 18, 17:04