]> git.saurik.com Git - wxWidgets.git/commitdiff
added wakeup implementation for osx_cocoa
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 18 Aug 2009 14:49:38 +0000 (14:49 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 18 Aug 2009 14:49:38 +0000 (14:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61696 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/utils.mm

index 3fdecac375f7bd83ea8a996eacdfaf4a3aed5cba..194abcd750cd6dca6373ceaf514644622d98eb61 100644 (file)
@@ -52,7 +52,9 @@ void wxBell()
 
 void wxMacWakeUp()
 {
-    // TODO
+       NSEvent* wakeupEvent = [NSEvent otherEventWithType:NSApplicationDefined location:NSZeroPoint 
+                                                                                modifierFlags:NSAnyEventMask timestamp:0 windowNumber:0 context:nil subtype:0 data1:0 data2:0];
+       [NSApp postEvent:wakeupEvent atStart:NO];
 }
 
 #endif // wxUSE_BASE