• 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: Accept target when not first responder
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Accept target when not first responder (From: Fredrik Olsson <email@hidden>)

  • Prev by Date: "make positive" function
  • Next by Date: Re: "make positive" function
  • Previous by thread: Accept target when not first responder
  • Next by thread: newbie question regarding setting up a master-detail data model with cocoa
  • Index(es):
    • Date
    • Thread