• 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
Re: Thread Communication Conceptual Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Thread Communication Conceptual Question


  • Subject: Re: Thread Communication Conceptual Question
  • From: Filipe Varela <email@hidden>
  • Date: Thu, 2 Aug 2007 10:48:48 +0100

Andrew, i use performSelectorOnMainThread all the time (like passing status update messages to the thread that controls the GUI), but he did say he was looking for something API agnostic (ie, not Cocoa, Foundation).

Cheers,

Filipe

On 2007/08/02, at 10:45, Andrew Farmer wrote:

On 02 Aug 07, at 02:42, Filipe Varela wrote:
AFAIK, and based on something i wrote (check out www.dev6.com under the blog section, release 1 of the flightcontroller code), if you do signal handling, the signal handler is always executed on the main thread. Could that be used to pass messages to the main thread in your case?

Augh, no! There's a much simpler way of doing things - look up the NSObject method "performSelectorOnMainThread:withObject:waitUntilDone:".

_______________________________________________

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: Thread Communication Conceptual Question
      • From: Eyal Redler <email@hidden>
References: 
 >Thread Communication Conceptual Question (From: Eyal Redler <email@hidden>)
 >Re: Thread Communication Conceptual Question (From: Filipe Varela <email@hidden>)
 >Re: Thread Communication Conceptual Question (From: Andrew Farmer <email@hidden>)

  • Prev by Date: Re: Thread Communication Conceptual Question
  • Next by Date: Re: Thread Communication Conceptual Question
  • Previous by thread: Re: Thread Communication Conceptual Question
  • Next by thread: Re: Thread Communication Conceptual Question
  • Index(es):
    • Date
    • Thread