Re: Disable (grey out) main menu when displaying modal window?

2011-01-25 Thread Darren Wheatley
Hi, The answer is to implement the NSUserInterfaceValidations protocol. The one method I needed to implement was: - (BOOL)valildateUserInterfaceItem: Returning NO disables the referenced menu item. All works fine now. Darren. On 25/01/2011 08:45, "Darren Wheatley" wrote: >Hi, > >I load a

Disable (grey out) main menu when displaying modal window?

2011-01-25 Thread Darren Wheatley
Hi, I load a custom file import window in my Cocoa app using: [NSApp runModalForWindow:window]; The window displays just fine, and is modal. However, the application main menu is still active (e.g. File menu and items), which is making the modal display redundant. I've googled this and searche