added AppleEvent Handler, somehow the standard event handler does not take care of all of them..

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19035 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2003-01-31 15:50:09 +00:00
parent f77cf4e68a
commit 597a3d06bf
2 changed files with 18 additions and 0 deletions

View File

@@ -299,6 +299,8 @@ void wxApp::MacNewFile()
// handling the quit event is not recommended by apple
// rather using the quit apple event - which we do
{ kEventClassAppleEvent , kEventAppleEvent } ,
{ kEventClassMouse , kEventMouseDown } ,
} ;
@@ -428,6 +430,13 @@ pascal OSStatus wxAppEventHandler( EventHandlerCallRef handler , EventRef event
case kEventClassMouse :
result = MouseEventHandler( handler , event , data ) ;
break ;
case kEventClassAppleEvent :
{
EventRecord rec ;
wxMacConvertEventToRecord( event , &rec ) ;
result = AEProcessAppleEvent( &rec ) ;
}
break ;
default :
break ;
}

View File

@@ -299,6 +299,8 @@ void wxApp::MacNewFile()
// handling the quit event is not recommended by apple
// rather using the quit apple event - which we do
{ kEventClassAppleEvent , kEventAppleEvent } ,
{ kEventClassMouse , kEventMouseDown } ,
} ;
@@ -428,6 +430,13 @@ pascal OSStatus wxAppEventHandler( EventHandlerCallRef handler , EventRef event
case kEventClassMouse :
result = MouseEventHandler( handler , event , data ) ;
break ;
case kEventClassAppleEvent :
{
EventRecord rec ;
wxMacConvertEventToRecord( event , &rec ) ;
result = AEProcessAppleEvent( &rec ) ;
}
break ;
default :
break ;
}