NSViewController in the responder chain
NSViewController in the responder chain
- Subject: NSViewController in the responder chain
- From: Arved von Brasch <email@hidden>
- Date: Mon, 07 Jan 2013 00:17:12 +1100
Hello list,
I have a modular single window application, where it has become necessary to put control code into NSViewController subclasses.
I have googled extensively on this issue, and it seemed pretty easy. The solution I went with is here:
http://www.cocoawithlove.com/2008/07/better-integration-for-nsviewcontroller.html
Inserting the ViewController just above the view it controls makes the most amount of sense for my application.
I'm pretty sure I've done this correctly. The controlled view of each Xib file is an NSView subclass that inserts its controller into the responder chain as described above.
I'm pretty sure this is done correctly, because if I query the responder chain from one of its subviews, I can see that my ViewController is in the list on the way to the window as expected in the responder chain.
My problem is that no actions I send to First Responder in the Xib files seem to be called in the View Controller. Buttons and Menu Items I connect to the "First Responder" aren't called (and Menu Items aren't validated).
Is there something obvious I'm missing? That's all that should be necessary according to all the documentation I've seen.
Any help or hints to go about debugging would be greatly appreciated.
Arved
_______________________________________________
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