From def328714d73638645b7f183a306a7a0ee7ead3a Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 24 Sep 2009 09:52:04 +0000 Subject: [PATCH] support PerformClick for NSControls, closes #11129 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/button.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/osx/cocoa/button.mm b/src/osx/cocoa/button.mm index 70469c9894..57512e1ccb 100644 --- a/src/osx/cocoa/button.mm +++ b/src/osx/cocoa/button.mm @@ -149,6 +149,8 @@ void wxWidgetCocoaImpl::SetDefaultButton( bool isDefault ) void wxWidgetCocoaImpl::PerformClick() { + if ([m_osxView isKindOfClass:[NSControl class]]) + [(NSControl*)m_osxView performClick:nil]; } //