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

Re: Responder chain query


  • Subject: Re: Responder chain query
  • From: Seth Willits <email@hidden>
  • Date: Wed, 09 Oct 2013 10:02:13 -0700

On Oct 8, 2013, at 12:33 PM, email@hidden wrote:

>> Yup. Been doing it for years. There was some code written by Cathy Shive and Jonathan Dann to help with that called XSViewController. Don't know where the original source is now, but basically it managed a tree of view controllers by adding a parent-child relationship between view controllers, with the tree attached to the XSWindowController. VCs could easily be attached and removed from the tree and it would reconnect the responder chain correctly.
> I think this might be a version of what you are  referring to:
> https://github.com/catshive/KTUIKit/blob/master/Framework/Controllers/KTViewController.m

Hmm. The XS version is simpler. Not sure why there's some other stuff going on in there.


> My implementation is simpler, using a couple of category methods on NSWindow to patch in my view controllers.
> However the tree implementation might be useful in future.

It's useful when you have a deep hierarchy. For instance I have the window's top level VC, a subVC for each tab in the window, 6 subVCs of that, each of those may have several subVC and on and on. When different views are shown and hidden, the parent VC simply calls an addChild/removeChild and it's hooked up in the right spot. It's not significantly different, but it is convenient.

gl,

--
Seth Willits





_______________________________________________

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


References: 
 >Responder chain query (From: "email@hidden" <email@hidden>)
 >Re: Responder chain query (From: Seth Willits <email@hidden>)
 >Re: Responder chain query (From: "email@hidden" <email@hidden>)

  • Prev by Date: Cocoaheads 92630 tonight, Wed. Oct 9 at 7pm
  • Next by Date: Re: Keeping Scroll Views in Sync
  • Previous by thread: Re: Responder chain query
  • Next by thread: Safari on Smart Card enrollment
  • Index(es):
    • Date
    • Thread