• 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
performSelectorOnMainThread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

performSelectorOnMainThread


  • Subject: performSelectorOnMainThread
  • From: Luc Vandal <email@hidden>
  • Date: Wed, 26 Oct 2005 11:02:47 -0400

Hi,

I have a question regarding performSelectorOnMainThread. If I do:

[myObject performSelectorOnMainThread:@selector(myFunction:) withObject:nil waitUntilDone:YES], does that mean that myFunction from myObject will be executed?

If so, I tried that and the app will just hang on performSelectorOnMainThread. My function will never get called. If I set waitUntilDone:NO, then my function will eventually get called. Is it a problem with my secondary thread?

I'm confused..

Luc
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: performSelectorOnMainThread
      • From: Greg Sanborn <email@hidden>
    • Re: performSelectorOnMainThread
      • From: j o a r <email@hidden>
  • Prev by Date: problem unit testing core data
  • Next by Date: Re: problem unit testing core data
  • Previous by thread: Re: problem unit testing core data
  • Next by thread: Re: performSelectorOnMainThread
  • Index(es):
    • Date
    • Thread