Implement RequestUserAttention() for wxOSX/Cocoa.

Simply use NSApplication:requestUserAttention to do it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63273 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2010-01-26 12:16:44 +00:00
parent 9d043a9227
commit 32b8e70161

View File

@ -692,8 +692,25 @@ bool wxNonOwnedWindowCocoaImpl::ShowFullScreen(bool show, long WXUNUSED(style))
return true;
}
void wxNonOwnedWindowCocoaImpl::RequestUserAttention(int WXUNUSED(flags))
void wxNonOwnedWindowCocoaImpl::RequestUserAttention(int flagsWX)
{
int flagsOSX;
switch ( flagsWX )
{
case wxUSER_ATTENTION_INFO:
flagsOSX = NSInformationalRequest;
break;
case wxUSER_ATTENTION_ERROR:
flagsOSX = NSCriticalRequest;
break;
default:
wxFAIL_MSG( "invalid RequestUserAttention() flags" );
return;
}
[NSApp requestUserAttention:flagsOSX];
}
void wxNonOwnedWindowCocoaImpl::ScreenToWindow( int *x, int *y )