Proper event handling approach for Mac custom native widget? [message #454338] |
Wed, 20 April 2005 14:39  |
Eclipse User |
|
|
|
I have a custom widget on Mac and Win with a native impl on both
platforms. On Win32 event handling is straight forward, the native window
gets the message directly. On Mac I have a custom Carbon Control that I've
embedded into the UserPaneControl handed down from the SWT Composite
parent. I attached a Carbon EventListener to my custom control, but it
never sees any events, it's like SWT is capturing them all; The Java side
of the widget sees the corresponding SWT events just fine.
For a custom native backed widget on Mac is the proper approach for
handling events to listen for SWT events in Java and then shove them down
to the native impl as necessary? This seems round about and dangerous
(completely subverting the Carbon event routing), not to mention pretty
different from the win32 routing.
Thanks,
-chris
|
|
|
Re: Proper event handling approach for Mac custom native widget? [message #454596 is a reply to message #454338] |
Mon, 25 April 2005 09:20  |
Eclipse User |
|
|
|
Hi Chris! The event routing in Windows will be completely different from
cabon because the platforms are totally different. Which events are you
missing? As far as I knew, we don't eat cabon events. Can you put together
a small stand alone example that shows the problem and enter it as a
bugzilla report?
"Chris Saari" <csari@macromedia.com> wrote in message
news:e24c9c43237bef277c14f01c326dc641$1@www.eclipse.org...
> I have a custom widget on Mac and Win with a native impl on both
> platforms. On Win32 event handling is straight forward, the native window
> gets the message directly. On Mac I have a custom Carbon Control that I've
> embedded into the UserPaneControl handed down from the SWT Composite
> parent. I attached a Carbon EventListener to my custom control, but it
> never sees any events, it's like SWT is capturing them all; The Java side
> of the widget sees the corresponding SWT events just fine.
>
> For a custom native backed widget on Mac is the proper approach for
> handling events to listen for SWT events in Java and then shove them down
> to the native impl as necessary? This seems round about and dangerous
> (completely subverting the Carbon event routing), not to mention pretty
> different from the win32 routing.
>
> Thanks,
> -chris
>
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds