git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19120
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
{ kEventClassAppleEvent , kEventAppleEvent } ,
{ kEventClassMouse , kEventMouseDown } ,
{ kEventClassAppleEvent , kEventAppleEvent } ,
{ kEventClassMouse , kEventMouseDown } ,
} ;
static pascal OSStatus MenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
} ;
static pascal OSStatus MenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
void wxApp::ExitMainLoop()
{
void wxApp::ExitMainLoop()
{
-#if TARGET_CARBON
- if (s_inReceiveEvent)
- QuitApplicationEventLoop() ;
- else
- m_keepGoing = FALSE;
-#else
}
// Is a message/event pending?
}
// Is a message/event pending?
}
else if ( status == eventLoopQuitErr )
{
}
else if ( status == eventLoopQuitErr )
{
+ // according to QA1061 this may also occur when a WakeUp Process
+ // is executed
// having a larger value here leads to large performance slowdowns
// so we cannot give background apps more processor time here
// we do so however having a large sleep value in the main event loop
// having a larger value here leads to large performance slowdowns
// so we cannot give background apps more processor time here
// we do so however having a large sleep value in the main event loop
while ( !IsExiting() && WaitNextEvent(everyEvent, &event,sleepTime, (RgnHandle) wxApp::s_macCursorRgn))
{
while ( !IsExiting() && WaitNextEvent(everyEvent, &event,sleepTime, (RgnHandle) wxApp::s_macCursorRgn))
{
}
else if ( status == eventLoopQuitErr )
{
}
else if ( status == eventLoopQuitErr )
{
+ // according to QA1061 this may also occur when a WakeUp Process
+ // is executed
{ kEventClassAppleEvent , kEventAppleEvent } ,
{ kEventClassMouse , kEventMouseDown } ,
{ kEventClassAppleEvent , kEventAppleEvent } ,
{ kEventClassMouse , kEventMouseDown } ,
} ;
static pascal OSStatus MenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
} ;
static pascal OSStatus MenuEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
void wxApp::ExitMainLoop()
{
void wxApp::ExitMainLoop()
{
-#if TARGET_CARBON
- if (s_inReceiveEvent)
- QuitApplicationEventLoop() ;
- else
- m_keepGoing = FALSE;
-#else
}
// Is a message/event pending?
}
// Is a message/event pending?
}
else if ( status == eventLoopQuitErr )
{
}
else if ( status == eventLoopQuitErr )
{
+ // according to QA1061 this may also occur when a WakeUp Process
+ // is executed
// having a larger value here leads to large performance slowdowns
// so we cannot give background apps more processor time here
// we do so however having a large sleep value in the main event loop
// having a larger value here leads to large performance slowdowns
// so we cannot give background apps more processor time here
// we do so however having a large sleep value in the main event loop
while ( !IsExiting() && WaitNextEvent(everyEvent, &event,sleepTime, (RgnHandle) wxApp::s_macCursorRgn))
{
while ( !IsExiting() && WaitNextEvent(everyEvent, &event,sleepTime, (RgnHandle) wxApp::s_macCursorRgn))
{
}
else if ( status == eventLoopQuitErr )
{
}
else if ( status == eventLoopQuitErr )
{
+ // according to QA1061 this may also occur when a WakeUp Process
+ // is executed