From: Stefan Csomor Date: Mon, 3 Jan 2011 18:08:11 +0000 (+0000) Subject: fixing warning and compile error against 10.4 X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/58ce18f2fdadecffb21e27555115af708325cf18 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 --- 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];