backporting SDK 10.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@75353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -280,16 +280,18 @@ void wxBell()
|
|||||||
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
ProcessSerialNumber psn = { 0, kCurrentProcess };
|
||||||
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
TransformProcessType(&psn, kProcessTransformToForegroundApplication);
|
||||||
|
|
||||||
if ( UMAGetSystemVersion() < 0x1090 )
|
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
|
||||||
|
if ( UMAGetSystemVersion() >= 0x1090 )
|
||||||
|
{
|
||||||
|
[[NSRunningApplication currentApplication] activateWithOptions:
|
||||||
|
(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
[self deactivate];
|
[self deactivate];
|
||||||
[self activateIgnoringOtherApps:YES];
|
[self activateIgnoringOtherApps:YES];
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
[[NSRunningApplication currentApplication] activateWithOptions:
|
|
||||||
(NSApplicationActivateAllWindows | NSApplicationActivateIgnoringOtherApps)];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user