On Apr 11, 2013, at 10:16 PM, Christian Schmitz <[email protected]> wrote:
> > Am 11.04.2013 um 18:06 schrieb Gavin Smith <[email protected]>: > >> No, I didn't know I had to. I just went to >> http://www.monkeybreadsoftware.net/statusitem-nsstatusitemmbs-event.shtml#1 >> and decided that was the right event. How would I have known to use >> SendActionOn? Perhaps I just don't use the MBS plugins enough to know. I'm >> pretty proficient with Xcode and Real Studio but every time I use MBS I feel >> like I get stuck! Perhaps I need a beginner's guide to MBS plugins ;) > > > Maybe you email me your code? > > I just tried with my statusitem.rbp project from examples. > Here I can comment out the HighlightMode and SendActionOn lines. Still I get > action events. Did you add actual menu items to the menu? As soon as you do, the Action event stops firing, I just tried it with statusitem.rbp > So I have to ask: > * Do you have a subclass from NSStatusItemMBS with code in action event? > * Do you really use this subclass when you create new object? > * Do you call CreateMenu to create the status item? > * Do you keep your status item object in Real Studio alive? Like as a > property of app, a window or a module? Yes to all these (reasonable) questions. It works fine if I have no items in my menu but obviously that isn't much use! Thanks Gavin _______________________________________________ Mbsplugins_monkeybreadsoftware.info mailing list [email protected] https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info
