Hi,

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;
      else
        return NO;
    }

the relevant code is in GRDocView.m

http://svn.savannah.gnu.org/viewvc/gap/trunk/user-apps/Graphos/GRDocView.m?revision=3565&view=markup

Riccardo

--
Proudly sent with GNUMail !


_______________________________________________
Discuss-gnustep mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnustep

Reply via email to