Still need to selectAll after NSTextView gained focus, possibly without subclassing
Still need to selectAll after NSTextView gained focus, possibly without subclassing
- Subject: Still need to selectAll after NSTextView gained focus, possibly without subclassing
- From: Damian Terentyev <email@hidden>
- Date: Mon, 23 Oct 2006 17:40:58 +0400
Good day all!
I still need to select all text in an NSTextView after it becomes a
first responder, and I still haven't thought of a *good* way to do it.
The problem is, -textShould/DidBeginEditing delegate methods are called
only after I input some text.
On the other hand, -textDidEndEditing is called immediately after a
view resigns first responder, and obviously before any other view
becomes it, so that calling [NSView focusView] inside of it returns
nil.
I still see no way how I could have accomplished this trivial task.
As I can see it doesn't make any difference when using NSTextViews or
NSTextFields.
I'll appreciate any cues regarding my problem.
Yours truly,
Damian/Three-eyed Fish
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden