]> git.saurik.com Git - wxWidgets.git/blobdiff - src/cocoa/textctrl.mm
mention ShouldInheritColours() change
[wxWidgets.git] / src / cocoa / textctrl.mm
index 78c930b41e25eaea146ca39f03e66848fa5462fd..1d858a32b0648a47e5ffbad0ee7a1c113d9d1d10 100644 (file)
@@ -9,8 +9,11 @@
 // Licence:    wxWindows license
 /////////////////////////////////////////////////////////////////////////////
 
-#include "wx/app.h"
-#include "wx/textctrl.h"
+#include "wx/wxprec.h"
+#ifndef WX_PRECOMP
+    #include "wx/app.h"
+    #include "wx/textctrl.h"
+#endif //WX_PRECOMP
 
 #include "wx/cocoa/string.h"
 
@@ -54,7 +57,7 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID winid,
 
 wxTextCtrl::~wxTextCtrl()
 {
-    DisassociateNSTextField(m_cocoaNSView);
+    DisassociateNSTextField(GetNSTextField());
 }
 
 void wxTextCtrl::Cocoa_didChangeText(void)
@@ -69,6 +72,10 @@ void wxTextCtrl::SetEditable(bool)
 {
 }
 
+void wxTextCtrl::MarkDirty()
+{
+}
+
 void wxTextCtrl::DiscardEdits()
 {
 }