Re: Apple Events and CFRunLoop?
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.