if ( editor )
{
wxMacEditHelper helper(m_textField);
+ BOOL hasUndo = [editor respondsToSelector:@selector(setAllowsUndo:)];
+ if ( hasUndo )
+ [editor setAllowsUndo:NO];
[editor insertText:wxCFStringRef( str , m_wxPeer->GetFont().GetEncoding() ).AsNSString()];
+ if ( hasUndo )
+ [editor setAllowsUndo:YES];
}
else
{