git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21893
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/app.h"
#include "wx/textctrl.h"
+#include "wx/cocoa/string.h"
+
#import <Foundation/NSString.h>
#import <AppKit/NSTextField.h>
{
}
-void wxTextCtrl::SetValue(wxString const&)
+void wxTextCtrl::SetValue(wxString const& value)
{
+ [GetNSTextField() setStringValue: wxNSStringWithWxString(value)];
}
void wxTextCtrl::WriteText(wxString const&)
wxString wxTextCtrl::GetValue() const
{
- return wxEmptyString;
+ return wxString([[GetNSTextField() stringValue] lossyCString]);
}