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

executeSelector: withRunLoop:


  • Subject: executeSelector: withRunLoop:
  • From: Kevin Elliott <email@hidden>
  • Date: Mon, 24 Jun 2002 11:23:01 -0700

Greetings.

I've been working on our app for awhile and I've run into a bit of a snag.
My app spins off a worker thread that the main thread then monitors to
display progress, etc. The problem I've got is that when the thread
completes it's work I need to execute some quasi-cleanup code and that code
_MUST_ execute on the main thread/runloop. I'm using a generic progress
class I wrote so I don't really want to clutter up the progress class with
this. What I really want is some magic method that will let me execute an
arbitrary selector in a different runloop but I've had no success in
figuring out how to do that. I'm rather new to Cocoa which doesn't help any
either. Any suggestions?

-Kevin Elliott
Jedi Knight Ellke Bagen
CharisMac Engineering
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: executeSelector: withRunLoop:
      • From: Nathan Day <email@hidden>
  • Prev by Date: Re: Panels shared by documents
  • Next by Date: MultiThreading should I or shouldn't I?
  • Previous by thread: NSTask problems
  • Next by thread: Re: executeSelector: withRunLoop:
  • Index(es):
    • Date
    • Thread