Re: Why aren't nsviewcontrollers in the responder chain?
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