• 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: Apple Events and CFRunLoop?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apple Events and CFRunLoop?


  • Subject: Re: Apple Events and CFRunLoop?
  • From: Brian Webster <email@hidden>
  • Date: Fri, 5 Apr 2002 11:08:54 -0600

On Friday, April 5, 2002, at 10:51 AM, Jonathan Feinberg wrote:

I'm also concerned about what other invisible implications might be of using
RunApplicationEventLoop() in an app that has no other references to Carbon-ness.

Well, if you want complete control, you could always do your own event loop using WaitNextEvent() and dispatch the high level events yourself. Of course that would mean you wouldn't be able to use timers, you'd be doing polling, etc. etc.

I went digging around in the headers, and in the AE framework (which resides in the ApplicationServices framework) I found a header called AEMach.h which has functions to allow you to decode Apple events directly from the Mach ports they come in to your app from. Might be worth a look if you really don't want to use RunApplicationEventLoop(). It does mean mucking around with Mach messaging though.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
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.

  • Prev by Date: Re: Dynamic Languages [was: Re: why Obj-C]
  • Next by Date: Re: Dynamic Languages [was: Re: why Obj-C]
  • Previous by thread: Re: Apple Events and CFRunLoop?
  • Next by thread: How to update window contents while window is in the Dock
  • Index(es):
    • Date
    • Thread