]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix for sheets based on NSAlert.
authorKevin Ollivier <kevino@theolliviers.com>
Thu, 5 Mar 2009 21:19:40 +0000 (21:19 +0000)
committerKevin Ollivier <kevino@theolliviers.com>
Thu, 5 Mar 2009 21:19:40 +0000 (21:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/utils.mm

index 39d2287aa283461c546fe07264c228c08daa83f4..eb438987630dd01f020a3d6290281a4ac95b9ebc 100644 (file)
@@ -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