• 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: NSRunLoop performSelector question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSRunLoop performSelector question


  • Subject: Re: NSRunLoop performSelector question
  • From: Craig Hopson <email@hidden>
  • Date: Thu, 11 May 2006 13:12:22 -0600

Shawn,

Thanks. I had tried that call before but it generated some error which (conveniently) I cannot remember. I just tried it again and it works - I must have had a bad parameter or something. Anyway, I'm still curious about why the other way does not work as I expect. Anyone out there have any ideas?

-Craig


On May 11, 2006, at 12:08 PM, Shawn Erickson wrote:

On 5/11/06, Craig Hopson <email@hidden> wrote:
Each of the various threads may finish their part
at a different time, so they signal back to the main thread via a
callback.

Not sure the reason for the issue your hitting off the top of my head but I generally use the following, it works perfectly for this type of thing...

[self performSelectorOnMainThread:@selector(myCleanup) withObject:nil
waitUntilDone:NO];

-Shawn


Craig Hopson Red Rock Software



_______________________________________________
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


References: 
 >NSRunLoop performSelector question (From: Craig Hopson <email@hidden>)
 >Re: NSRunLoop performSelector question (From: "Shawn Erickson" <email@hidden>)

  • Prev by Date: Re: NSDrawer in System Pref Pane
  • Next by Date: Re: NSDrawer in System Pref Pane
  • Previous by thread: Re: NSRunLoop performSelector question
  • Next by thread: Re: NSRunLoop performSelector question
  • Index(es):
    • Date
    • Thread