Is there GlyphsPluginBase have addMenuItemsForEvent:(NSEvent *)theEvent toMenu:(NSMenu *)theMenu; now?
What do you mean?
The addMenuItemsForEvent:toMenu: is only used for tool and reporter plugins. Or if you register for any callback. Then there is a addMenuItemsForEvent:controller:toMenu: callback.
Because long ago, I asked if there was such an interface.
Now I have this requirement, so ask if the API is ready?
I already addback for GSContextMenuCallbackName,
But there was no response in ‘(void)addMenuItemsForEvent:(NSEvent )theEvent controller:(NSViewController)controller toMenu:(NSMenu *)theMenu’
[GSCallbackHandler addCallback:self forOperation:GSContextMenuCallbackName];
- (void)addMenuItemsForEvent:(NSEvent *)theEvent controller:(NSViewController<GSGlyphEditViewControllerProtocol>*)controller toMenu:(NSMenu *)theMenu{
//add a menuItem
}