From 037f9d3ba3a4c2b7835cf876398d65bbf4965605 Mon Sep 17 00:00:00 2001 From: Kevin Ollivier Date: Thu, 5 Mar 2009 21:19:40 +0000 Subject: [PATCH] Fix for sheets based on NSAlert. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59351 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/utils.mm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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