Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Why aren't nsviewcontrollers in the responder chain? (From: "Brent Gulanowski" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.