• 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
Getting the value of GUI elements from non-main threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the value of GUI elements from non-main threads


  • Subject: Getting the value of GUI elements from non-main threads
  • From: Cem Karan <email@hidden>
  • Date: Wed, 4 Feb 2009 15:47:27 -0500

I know that we can only modify GUI elements from the main thread, but can we get the values for objects from other than the main thread? E.g., assume I have an editable NSTextField, and I have a worker thread. The user edits the field, clicks a button, and the main thread hands off the analysis to a worker thread. The worker thread then directly queries the NSTextField via its stringValue method. Is this kosher?

Thanks,
Cem Karan
_______________________________________________

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: Getting the value of GUI elements from non-main threads
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: NSService - I need a headslap
  • Next by Date: Re: Getting the value of GUI elements from non-main threads
  • Previous by thread: Re: How can I display a pop-up alert message to a user from a background launchd daemon?
  • Next by thread: Re: Getting the value of GUI elements from non-main threads
  • Index(es):
    • Date
    • Thread