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:
Stefan Csomor
2010-01-11 14:19:28 +00:00
parent 496af8a383
commit c8fdb345a0
10 changed files with 20 additions and 22 deletions

View File

@@ -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]];
}