[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

issue with auto-enable of Menus

From: Riccardo Mottola
Subject: issue with auto-enable of Menus
Date: Sun, 12 Nov 2017 21:16:49 +0100
User-agent: GNUMail (Version 1.2.3)


I enhanced Graphos to enable/disable automatically menus dependent on the selection of objects. E.g. the idea is that you can edit something only if an object is selected.

I detect the menu depending on the connected action.

The code works for certain custom actions, but not for cut/copy/delete

This works fine on Mac, but not on GNUstep!
I wonder why?

if (action == @selector(copy:) || action == @selector(cut:) || action == @selector(delete:))
      if (selectedObjs)
        return YES;
        return NO;

the relevant code is in GRDocView.m



Proudly sent with GNUMail !

reply via email to

[Prev in Thread] Current Thread [Next in Thread]