adding protocol support for 10.6
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63135 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -524,14 +524,16 @@ wxSize wxNSTextViewControl::GetBestSize() const
|
||||
size.y += [m_textView textContainerInset].height;
|
||||
return size;
|
||||
}
|
||||
return wxSize(0,0);
|
||||
}
|
||||
|
||||
// wxNSTextFieldControl
|
||||
|
||||
wxNSTextFieldControl::wxNSTextFieldControl( wxWindow *wxPeer, WXWidget w ) : wxWidgetCocoaImpl(wxPeer, w)
|
||||
{
|
||||
m_textField = (NSTextField*) w;
|
||||
[m_textField setDelegate: w];
|
||||
NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>) *tf = (NSTextField*) w;
|
||||
m_textField = tf;
|
||||
[m_textField setDelegate: tf];
|
||||
m_selStart = m_selEnd = 0;
|
||||
m_hasEditor = [w isKindOfClass:[NSTextField class]];
|
||||
}
|
||||
|
Reference in New Issue
Block a user