highlighting text in -becomeFirstResponder?
highlighting text in -becomeFirstResponder?
- Subject: highlighting text in -becomeFirstResponder?
- From: "Colsher, William" <email@hidden>
- Date: Mon, 17 May 2004 11:52:40 -0400
In our application we traditionally select the contents of a text entry
field (an NSTextView in it's current incarnation) when the user tabs into
it. To accomplish this I'm doing a [self selectAll:NULL] in my NSTextView
subclass.
That works perfectly, but the problem is that if the user makes the
NSTextView active by, say, clicking on it, the text highlights and then
unhighlights immediately.
This suggests that I should be doing the selectAll somewhere other than
becomeFirstResponder.
So the question is where? Or, if that is the right spot, how can I
distinguish between arriving from a tab, and a click?
Thanks
Bill Colsher
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit
http://www.messagelabs.com/email
______________________________________________________________________
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.