• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Still need to selectAll after NSTextView gained focus, possibly without subclassing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Problem with smooth scrolling in Cocoa
  • Next by Date: Re: Sending an ASCII string to a specific IP address
  • Previous by thread: Problem with smooth scrolling in Cocoa
  • Next by thread: How to change standard user to administrator type
  • Index(es):
    • Date
    • Thread