Re: Which NSTextView?
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.