• 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
Responder chain query
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Responder chain query


  • Subject: Responder chain query
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 08 Oct 2013 16:40:42 +0100

I am building an OS X NSDocument app with a fairly complex view hierarchy and want to interpose my view controllers into the responder chain (this I can do).
Some of the displayed views will feature just a button (to enable creation of a new object).
This means that the first responder will be the window itself (I don't really want to change the default NSButton firstResponder refusal behaviour).

My intention is track the status of my top level view controllers and insert/remove these as required in the responder chain between the window and the window controller (rather than between views in the chain).
That way I figure that actions and validation methods will always hit the view controller regardless of whether an NSView based first responder exists.

Is this the best approach?

The responder chain used in a particular situation does vary:
https://developer.apple.com/library/mac/documentation/cocoa/conceptual/EventOverview/EventArchitecture/EventArchitecture.html#//apple_ref/doc/uid/10000060i-CH3-SW2

Jonathan











_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Responder chain query
      • From: Seth Willits <email@hidden>
  • Prev by Date: Re: Is inout documented anywhere?
  • Next by Date: Safari on Smart Card enrollment
  • Previous by thread: Re: Is inout documented anywhere?
  • Next by thread: Re: Responder chain query
  • Index(es):
    • Date
    • Thread