Re: runModalForWindow is disabling my menus
Re: runModalForWindow is disabling my menus
- Subject: Re: runModalForWindow is disabling my menus
- From: Felipe Monteiro de Carvalho <email@hidden>
- Date: Sun, 06 Sep 2015 10:20:45 +0200
On Sat, Sep 5, 2015 at 8:49 PM, Stephane Sudre <email@hidden> 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 match the nature of the modal mode (i.e. restricted mode).
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.
>> Each menu item has itself as target and a method to respond to the action.
> Why not have at least a shared object as the target?
Why does this make any difference? The target supposedly is just a
method of an object, I don't see why Cocoa cannot call it. The object
must remain in memory. And if the object is in memory the method can
be called.
So you are saying that it would work if the target is not the menu item itself?
--
Felipe Monteiro de Carvalho
_______________________________________________
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