]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/textctrl_osx.cpp
replace usage of objective-c keyword 'id'
[wxWidgets.git] / src / osx / textctrl_osx.cpp
index 7efdcb487a84876c32975171eb76aac8ea4f9f2c..226c24f2a8dcf9be6ef09f1973dca284a2f34429 100644 (file)
@@ -602,6 +602,21 @@ bool wxTextCtrl::MacSetupCursor( const wxPoint& pt )
         return true ;
 }
 
+bool wxTextCtrl::SetHint(const wxString& hint)
+{
+    m_hintString = hint;
+    
+    if ( GetTextPeer() && GetTextPeer()->SetHint(hint) )
+        return true;
+    
+    return false;
+}
+
+wxString wxTextCtrl::GetHint() const
+{
+    return m_hintString;
+}
+
 // ----------------------------------------------------------------------------
 // implementation base class
 // ----------------------------------------------------------------------------