diff --git a/src/osx/cocoa/utils.mm b/src/osx/cocoa/utils.mm index 39d2287aa2..eb43898763 100644 --- a/src/osx/cocoa/utils.mm +++ b/src/osx/cocoa/utils.mm @@ -173,7 +173,9 @@ void wxMacWakeUp() { resultCode = returnCode; sheetFinished = YES; - [sheet orderOut: self]; + // NSAlerts don't need nor respond to orderOut + if ([sheet respondsToSelector:@selector(orderOut:)]) + [sheet orderOut: self]; } @end