• 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
Re: Do something when an NSTextView gains focus
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do something when an NSTextView gains focus


  • Subject: Re: Do something when an NSTextView gains focus
  • From: Mike Abdullah <email@hidden>
  • Date: Wed, 18 Oct 2006 08:40:15 +0100


On 17 Oct 2006, at 08:56, Damian Terentyev wrote:

Good day and respect to all you programmers!
I need to accomplish a trivial task — when the user presses Tab to go to nextKeyView, that view (actually, an NSTextView) should select all text (That's quite a common behaviour, I suppose). But as I'm only a beginner, I've stuck with documentation and cannot find any simple way of doing this (that is, how to do something when a view becomes a first responder), although I'm sure it is there.
Could you please be helpful to hint me about it?


Yours truly,
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:
40gmail.com


This email sent to email@hidden

Yes, I think you probably want to use an NSTextField instead of an NSTextView. The text view is meant for large areas of text, and it sounds like you want a single line of text instead.


Mike. _______________________________________________
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


References: 
 >Do something when an NSTextView gains focus (From: Damian Terentyev <email@hidden>)

  • Prev by Date: Re: NSButtons have drawing "artefacts" around them when clicked on a window/custom view bezel
  • Next by Date: Re: Cocoa-dev Digest, Vol 3, Issue 1261
  • Previous by thread: Re: Do something when an NSTextView gains focus
  • Next by thread: coredata and loooooooooooooooong waits
  • Index(es):
    • Date
    • Thread