From: Kevin Ollivier Date: Thu, 5 Mar 2009 21:19:40 +0000 (+0000) Subject: Fix for sheets based on NSAlert. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/037f9d3ba3a4c2b7835cf876398d65bbf4965605 Fix for sheets based on NSAlert. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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