Xojo Conferences

Carbon Events (Real Studio Plugins Mailinglist archive)

Back to the thread list
Previous thread: paint event
Next thread: Re: The correct way to embed a control (Thanks)

Re: class extensions...   -   Jan Erik Moström <
  Carbon Events   -   Alfred Van Hoek
   Re: Carbon Events   -   Seth Willits

Carbon Events
Date: 29.09.02 17:59 (Sun, 29 Sep 2002 12:59:07 -0400)
From: Alfred Van Hoek
I believe that various plugin authors have gathered experience with carbon
events. I guess there are a lot of limitations to install event handlers,
yet I would like to know if it at all is possible to do something like:

EventTypeSpec theEventTypes[] { kEventClassMouse, kEventMouseDown,
kEventClassMouse, kEventMouseUp,
kEventClassKeyboard, kEventRawKeyDown,
kEventClassKeyboard, kEventRawKeyRepeat,
kEventClassKeyboard, kEventRawKeyUp,
kEventClassWindow, kEventWindowUpdate,
kEventClassWindow, kEventWindowActivated,
kEventClassWindow, kEventWindowDeactivated,
kEventClassWindow, kEventWindowClose };

me->rc = InstallStandardEventHandler(GetWindowEventTarget(me->mWindow)
me->rc = InstallWindowEventHandler(me->mWindow,
instance, NULL);

me->rc = InstallEventLoopTimer(GetMainEventLoop(),
instance, &me->mTimerRef );

Should one use the "InstallStandardEventHandler"? Is it safe to use
"InstallWindowEventHandler", and/or "InstallEventLoopTimer"?

I also would appreciate any info regarding this matter. And yes, one could
use the REALregisterEventFilter as an alternative..


A searchable archive of this list is available at:

<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>

Re: Carbon Events
Date: 29.09.02 18:16 (Sun, 29 Sep 2002 10:16:40 -0700)
From: Seth Willits
On 9/29/02 9:59 AM, the NSA intercepted the following message from "Alfred
Van Hoek" <<email address removed>>:

> Should one use the "InstallStandardEventHandler"?

I see no reason to. It doesn't do anything beyond what REALbasic does.

> Is it safe to use
> "InstallWindowEventHandler",


> and/or "InstallEventLoopTimer"?

I think this will only work if RunApplicationEventLoop is actually called in
the runtime engine (which I don't think it is), but I'm not not positive.

Seth Willits
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com

"Yesterday we obeyed kings and bent our necks before emperors. But
today we kneel only to truth, follow only beauty, and obey only love."
-- Kahlil Gibran

A searchable archive of this list is available at:

<mailto:<email address removed>>

Subscribe to the digest:
<mailto:<email address removed>>