Optimize wxTextCtrl::GetLastPosition() in wxOSX

To get the length of the text in the control there is no need to convert NSString to wxString (what is done now by calling to GetStringValue).
This commit is contained in:
Artur Wieczorek
2017-08-31 16:28:42 +02:00
parent 2d464ca576
commit 4503c41bd8
2 changed files with 13 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ public :
virtual void Paste() wxOVERRIDE ;
virtual bool CanPaste() const wxOVERRIDE ;
virtual void SetEditable(bool editable) wxOVERRIDE ;
virtual long GetLastPosition() const wxOVERRIDE;
virtual void GetSelection( long* from, long* to) const wxOVERRIDE ;
virtual void SetSelection( long from , long to ) wxOVERRIDE;
virtual bool PositionToXY(long pos, long *x, long *y) const wxOVERRIDE;
@@ -103,6 +104,7 @@ public:
virtual void Paste() wxOVERRIDE ;
virtual bool CanPaste() const wxOVERRIDE ;
virtual void SetEditable(bool editable) wxOVERRIDE ;
virtual long GetLastPosition() const wxOVERRIDE;
virtual void GetSelection( long* from, long* to) const wxOVERRIDE ;
virtual void SetSelection( long from , long to ) wxOVERRIDE;
virtual bool PositionToXY(long pos, long *x, long *y) const wxOVERRIDE;