]> git.saurik.com Git - wxWidgets.git/commitdiff
fixing warning and compile error against 10.4
authorStefan Csomor <csomor@advancedconcepts.ch>
Mon, 3 Jan 2011 18:08:11 +0000 (18:08 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Mon, 3 Jan 2011 18:08:11 +0000 (18:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/osx/cocoa/button.mm

index 13ae019fef31219e861d510d490c579eaafc4b99..b44ef3cd92a2d2a4c86da3e86ad70c6b9c89161a 100644 (file)
@@ -101,6 +101,10 @@ wxSize wxButton::GetDefaultSize()
 
 @end
 
 
 @end
 
+@interface NSView(PossibleSizeMethods)
+- (NSControlSize)controlSize;
+@end
+
 namespace
 {
 
 namespace
 {
 
@@ -133,7 +137,7 @@ public:
         left = top = right = bottom = 0;
         NSControlSize size = NSRegularControlSize;
         if ( [m_osxView respondsToSelector:@selector(controlSize)] )
         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];
         else if ([m_osxView respondsToSelector:@selector(cell)])
         {
             id cell = [(id)m_osxView cell];