Re: All documents are responding
Re: All documents are responding
- Subject: Re: All documents are responding
- From: Larry Fransson <email@hidden>
- Date: Sun, 21 Nov 2004 15:11:23 -0800
On Nov 20, 2004, at 17:09, Michael Hanna wrote:
<x-tad-smaller>in my document-based app, I've subclass the NSTextView so that I can grab keyboard and mouse events, however, the events are responded to in all open documents.
how do I ensure only the active document responds?
</x-tad-smaller>
Check to see if the window is key before responding to an event.
Larry Fransson
Seattle, WA
_______________________________________________
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