Skip navigation.
 
mlRe: Why aren't nsviewcontrollers in the responder chain?
FROM : Jim Correia
DATE : Tue Jan 29 23:24:23 2008

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

Related mailsAuthorDate
mlWhy aren't nsviewcontrollers in the responder chain? Brent Gulanowski Jan 29, 23:17
mlRe: Why aren't nsviewcontrollers in the responder chain? Jim Correia Jan 29, 23:24