Hi everybody!
Here is a patch that makes selectText working (i.e. highlight text after
Return key pressed). [_text_object selectAll:self] doesn't work...
But i'm not sure that it's quite correct... Check it please.
--
Serg Stoyan
--- NSTextField.m.orig Sat Apr 13 14:07:17 2002
+++ NSTextField.m Mon Jun 24 00:00:38 2002
@@ -130,10 +130,12 @@
{
if ([self isSelectable] && (_super_view != nil))
{
- if (_text_object)
- [_text_object selectAll: self];
- else
- {
+// if (_text_object)
+// {
+// [_text_object selectAll:self];
+// }
+// else
+// {
NSText *t = [_window fieldEditor: YES forObject: self];
int length;
@@ -152,7 +154,7 @@
delegate: self
start: 0
length: length];
- }
+// }
}
}