• 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
Where to send different messages while RunLoop is running
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Where to send different messages while RunLoop is running


  • Subject: Where to send different messages while RunLoop is running
  • From: John Love <email@hidden>
  • Date: Sun, 11 Oct 2009 15:40:10 -0400

Reference:

http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Multithreading/RunLoopManagement/RunLoopManagement.html#//apple_ref/doc/uid/10000057i-CH16-SW29

As noted, Apple's sample code sends a kCheckinMessage back to the main Thread and then monitors the currentRunLoop until -shouldExit returns YES. Within -shouldExit, I wish to monitor error conditions (e.g., a external application's document not open). If such an error exists, send a unique error message ID and then return NO when -shouldExit is finished.

Is -shouldExit the appropriate place for sending these other message IDs?


_______________________________________________

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: Where to send different messages while RunLoop is running
      • From: Alastair Houghton <email@hidden>
  • Prev by Date: NSCollectionView delegate methods aren't called
  • Next by Date: Re: Screensaver won't run on 10.6 even after porting to 64-bit
  • Previous by thread: Re: NSCollectionView delegate methods aren't called
  • Next by thread: Re: Where to send different messages while RunLoop is running
  • Index(es):
    • Date
    • Thread