Re: carbon events in cocoa app...
Re: carbon events in cocoa app...
- Subject: Re: carbon events in cocoa app...
- From: Brad Oliver <email@hidden>
- Date: Sat, 07 Dec 2002 12:32:45 -0600
>
I have a Cocoa app that i need to not only process NSEvents, but I am
>
also interested in Carbon events. The following code seems to work,
>
but gets stuck on the last line ( 'RunApplicationEventLoop();' ). Why?
RunApplicationEventLoop (or RAEL for short) is the overall Carbon event loop
call - it doesn't return until the event loop is terminated from within with
something like QuitApplicationEventLoop().
You probably don't want to use this call from within Cocoa, but I'm not
familiar enough with running both Carbon and Cocoa event loops
simultaneously to suggest the proper way. You could try getting the Carbon
WindowRef for a window and installing a Carbon event handler directly to
that, but that's just a guess.
--
Brad Oliver
email@hidden
_______________________________________________
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.