Re: runModalForWindow is disabling my menus

2015-09-06 Thread Felipe Monteiro de Carvalho
On Sat, Sep 5, 2015 at 8:49 PM, Stephane Sudre wrote: > Which feature of a modal window are you looking for? Disabling all other windows in the app and staying on top of them. > Because having > all the menu items being enabled in the case of a modal dialog does > not

Re: runModalForWindow is disabling my menus

2015-09-06 Thread Stephane Sudre
On Sun, Sep 6, 2015 at 10:20 AM, Felipe Monteiro de Carvalho wrote: > On Sat, Sep 5, 2015 at 8:49 PM, Stephane Sudre wrote: >> Which feature of a modal window are you looking for? > > Disabling all other windows in the app and staying on

Re: runModalForWindow is disabling my menus

2015-09-06 Thread dangerwillrobinsondanger
> On Sep 6, 2015, at 5:20 PM, Felipe Monteiro de Carvalho > wrote: > > In Mac OS X maybe, but in Linux and Windows there is no problem in a > modal window having a menu, so its not like its a conceptual problem. No. It IS a conceptual problem. That is not

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Pascal J. Bourguignon
On 05/09/15 18:39, Felipe Monteiro de Carvalho wrote: On Sat, Sep 5, 2015 at 3:45 PM, Pascal J. Bourguignon wrote: AFAIK, it's on purpose. Definitely in the case of an application modal dialog. In the case of a window modal dialog, you can switch to another window,

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Stephane Sudre
On Sat, Sep 5, 2015 at 2:14 PM, Felipe Monteiro de Carvalho wrote: > Hello, > > I want to have a modal window which has menus, so I setup the menus > for the window and make it modal with NSApp.runModalForWindow and > everything is OK, except that my menu items

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Pascal J. Bourguignon
On 05/09/15 14:14, Felipe Monteiro de Carvalho wrote: Hello, I want to have a modal window which has menus, so I setup the menus for the window and make it modal with NSApp.runModalForWindow and everything is OK, except that my menu items are all disabled! I tried to forcefully enable them,

runModalForWindow is disabling my menus

2015-09-05 Thread Felipe Monteiro de Carvalho
Hello, I want to have a modal window which has menus, so I setup the menus for the window and make it modal with NSApp.runModalForWindow and everything is OK, except that my menu items are all disabled! I tried to forcefully enable them, by implementing validateMenuItem and returning always

Re: runModalForWindow is disabling my menus

2015-09-05 Thread Felipe Monteiro de Carvalho
On Sat, Sep 5, 2015 at 3:45 PM, Pascal J. Bourguignon wrote: > AFAIK, it's on purpose. Definitely in the case of an application modal > dialog. > In the case of a window modal dialog, you can switch to another window, and > then have access to the menubar, but within the