• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
KVO notifications and threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: KVO notifications and threads
      • From: "Clark Cox" <email@hidden>
    • Re: KVO notifications and threads
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Trashing files and undo
  • Next by Date: CFBundleIdentifier & Application Version
  • Previous by thread: Re: starting external program at runtime
  • Next by thread: Re: KVO notifications and threads
  • Index(es):
    • Date
    • Thread