I create a GlyphsPalette Plugins,There are multiple CheckBox on the panel. I add MenuTtems use
- (void)addMenuItemsForEvent:(NSEvent *)theEvent controller:(NSViewController<GSGlyphEditViewControllerProtocol>*)controller toMenu:(NSMenu *)theMenu
by addCallback:DrawBackground;
when I open more glyphsfiles,In the listening event of the menu I created, I cannot correctly obtain the status of the chebkbox in the active document’s PaletteView. No matter which file, the PaletteView of the first open document is always obtained, and the button operation on the PaletteView is correctly obtained.
Where do I need to set that the control obtained in this callback listening event is the control on the current file window?
I wonder if I have described it clearly?