• 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: Which NSTextView?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Which NSTextView?


  • Subject: Re: Which NSTextView?
  • From: Douglas Davidson <email@hidden>
  • Date: Mon, 19 Jan 2004 10:46:10 -0800

On Jan 18, 2004, at 9:08 AM, J Nozzi wrote:

Basically, I've got three NSTextViews. I've got a custom method that needs to act upon text in the active NSTextView, whichever that may be at the time.

This is what the first responder mechanism is for. In the simplest form, send an action with target nil, using a method your text views respond to (you can use a category or a subclass to implement your own). If for some reason you need to determine what the first responder is, you can ask the appropriate window.

Douglas Davidson
_______________________________________________
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.

References: 
 >Which NSTextView? (From: J Nozzi <email@hidden>)

  • Prev by Date: Re: Panther broke CFUserNotificationDisplayNotice?
  • Next by Date: Re: NSTextView How do you turn off line wrap?
  • Previous by thread: Re: Which NSTextView?
  • Next by thread: XCode and frameworks
  • Index(es):
    • Date
    • Thread