• 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: Why aren't nsviewcontrollers in the responder chain?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why aren't nsviewcontrollers in the responder chain?


  • Subject: Re: Why aren't nsviewcontrollers in the responder chain?
  • From: Jim Correia <email@hidden>
  • Date: Tue, 29 Jan 2008 17:24:23 -0500

On Jan 29, 2008, at 5:17 PM, Brent Gulanowski wrote:

Because generic views don't have delegates? What if they do (or did)? The
NSViewController class is a subclass of NSResponder. What was the real
reason for this?

NSViewController manages a view, which can be loaded from a nib. When you instantiate one, you've got a view controller and a view out in space. Where would you like it to hook into the responder chain?


I wrote the functional equivalent of NSViewController for an app deployed on Tiger. When the view is inserted into the window, I hook the view controller into the responder chain at the appropriate point. When I remove the view from the window, I unhook it. The same technique should work with NSViewController.

Jim

_______________________________________________

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: 
 >Why aren't nsviewcontrollers in the responder chain? (From: "Brent Gulanowski" <email@hidden>)

  • Prev by Date: Why aren't nsviewcontrollers in the responder chain?
  • Next by Date: Tracking files moved by the finder?
  • Previous by thread: Why aren't nsviewcontrollers in the responder chain?
  • Next by thread: Tracking files moved by the finder?
  • Index(es):
    • Date
    • Thread