• 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: Keary Suska <email@hidden>
  • Date: Tue, 17 Oct 2006 09:38:58 -0600
  • Thread-topic: Do something when an NSTextView gains focus

on 10/17/06 1:56 AM, email@hidden purportedly said:

> 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?

Look up NSTextField in the documentation and check out the delegate methods.
You may also want to look into the Interface Builder docs for setting
delegate outlets.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


 _______________________________________________
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: NSTextView field editor redrawing weirdness
  • Next by Date: Re: NSOutlineView Row Heights
  • Previous by thread: Do something when an NSTextView gains focus
  • Next by thread: Re: Do something when an NSTextView gains focus
  • Index(es):
    • Date
    • Thread