]> git.saurik.com Git - wxWidgets.git/blobdiff - src/osx/cocoa/textctrl.mm
set default resolutions in case of errors
[wxWidgets.git] / src / osx / cocoa / textctrl.mm
index 1f100891160bed4a3adf87a6f145c4332a4facf1..accef767a8415e5beabff4925a701c7ddc323143 100644 (file)
@@ -229,7 +229,6 @@ protected :
     return fieldEditor;
 }
 
-
 - (void) setEnabled:(BOOL) flag
 {
     [super setEnabled: flag];
@@ -322,6 +321,14 @@ wxNSTextViewControl::~wxNSTextViewControl()
         [m_textView setDelegate: nil];
 }
 
+bool wxNSTextViewControl::CanFocus() const
+{
+    // since this doesn't work (return false), we hardcode
+    // if (m_textView)
+    //    return [m_textView canBecomeKeyView];
+    return true;
+}
+
 wxString wxNSTextViewControl::GetStringValue() const
 {
     if (m_textView)