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
This commit is contained in:
parent
cc3977bf13
commit
58ce18f2fd
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user