git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67895
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
editor = [[wxNSTextFieldEditor alloc] init];
[editor setFieldEditor:YES];
[tf setFieldEditor:editor];
+ [editor release];
}
return editor;
}
- (void) setFieldEditor:(wxNSTextFieldEditor*) editor
{
- fieldEditor = editor;
+ if ( editor != fieldEditor )
+ {
+ [editor retain];
+ [fieldEditor release];
+ fieldEditor = editor;
+ }
}
- (wxNSTextFieldEditor*) fieldEditor
void wxNSTextFieldControl::Init(WXWidget w)
{
- NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>) *tf = (NSTextField*) w;
+ NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>) *tf = (NSTextField wxOSX_10_6_AND_LATER(<NSTextFieldDelegate>)*) w;
m_textField = tf;
[m_textField setDelegate: tf];
m_selStart = m_selEnd = 0;