Re: Accept target when not first responder
Re: Accept target when not first responder
- Subject: Re: Accept target when not first responder
- From: Daniel Jalkut <email@hidden>
- Date: Mon, 11 Sep 2006 14:28:44 -0400
The view hierarchy ensures that key events only get delivered to
responders in the responder chain. So you'll have to have some
responder under your control (like a parent view or the window, or
the application delegate) take responsibility for "catching" these
key events and forwarding them artificially to your view.
Daniel
On Sep 11, 2006, at 4:22 AM, Fredrik Olsson wrote:
I have a subclass of NSOutlineView that I want to always accepts a
key equivalent, even when the outline view is not in focus.
I have tried settings it as the windows nextResponder, but that
does not help. And I would like to avoid using the window delegate
as proxy, only forwarding to the outline view.
My subclass is a helper view that manages file attachments, in my
document based application. I want the view to be as self contained
as possible, basically just using a root path, and xml tree for
reading it's content.
Many document types can have this view, and I would like the attach
files, save attachments, and remove attachments menu items to hook
up themselves with as little redundant (copy and paste) code for
each document type as possible.
// Fredrik Olsson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
sweater.com
This email sent to email@hidden
_______________________________________________
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