Handling a menu item in a modal dialog


James Walker
 

I'm trying to enable the Quit menu item while a modal dialog is running, is that possible?  My window controller implements the terminate: action, and has a validateMenuItem: method, but validateMenuItem: never gets called.  The window is main and key, and the only thing preceding the window controller in the responder chain is the window itself, which does not respond to a "terminate:" message.  I've checked that [NSApp targetForAction: @selector(terminate:)] returns my window controller.  What might I be missing?

Join {cocoa@apple-dev.groups.io to automatically receive all group messages.