From 58ce18f2fdadecffb21e27555115af708325cf18 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Mon, 3 Jan 2011 18:08:11 +0000 Subject: [PATCH] fixing warning and compile error against 10.4 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/osx/cocoa/button.mm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/osx/cocoa/button.mm b/src/osx/cocoa/button.mm index 13ae019fef..b44ef3cd92 100644 --- a/src/osx/cocoa/button.mm +++ b/src/osx/cocoa/button.mm @@ -101,6 +101,10 @@ wxSize wxButton::GetDefaultSize() @end +@interface NSView(PossibleSizeMethods) +- (NSControlSize)controlSize; +@end + namespace { @@ -133,7 +137,7 @@ public: left = top = right = bottom = 0; NSControlSize size = NSRegularControlSize; if ( [m_osxView respondsToSelector:@selector(controlSize)] ) - size = (NSControlSize) [m_osxView controlSize]; + size = [m_osxView controlSize]; else if ([m_osxView respondsToSelector:@selector(cell)]) { id cell = [(id)m_osxView cell]; -- 2.45.2