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
}
@end
-/*
+/*
allows ShowModal to work when using sheets.
- see include/wx/osx/cocoa/private.h for more info
+ see include/wx/osx/cocoa/private.h for more info
*/
@implementation ModalDialogDelegate
- (id)init
return self;
}
-- (BOOL)finished
+- (BOOL)finished
{
return sheetFinished;
}
// called from OnPaint, even with the window's paint dc as source (see wxHTMLWindow)
NSBitmapImageRep *rep = [[[NSBitmapImageRep alloc] initWithFocusedViewRect: [view bounds]] retain];
[view unlockFocus];
-
+
wxBitmap bitmap(width, height);
if ( [rep respondsToSelector:@selector(CGImage)] )
{