Plugin Template Question

Hi everyone. Is possible to create a plugin that appears on right click contextual menu and triggers a vanilla UI?
Wich template should I use?

Best.

You should use a .glyphsPlugin. That has no implied functionality.

Then register yourself to a draw callback and implement addMenuItemsForEvent_toMenu_(event, menu).

Thanks! Where I can find more info about addMenuItemsForEvent_toMenu_? Because I’m getting a not defined error and I know that im doing all wrong