3

all:

I have added one NSStatusItem in the status bar for my test app, and it works well in Mac ox 10.12, not only normal model, but also full screen model. When i switch to Mac os 10.13, it is failed to show the menu in the full screen model.

self.statusItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];
        self.statusItem.highlightMode = YES;
        self.statusItem.menu = self.dummyMenu;
        [self.statusItem.menu setDelegate:self];
        self.statusItem.image = image;

does anyone has any idea? The pop up menu, in full screen model, it will not show

JamesWebbTelescopeAlien
  • 3,547
  • 2
  • 30
  • 51
stream hu
  • 41
  • 3

1 Answers1

-1

I also have encountered the same issue and found the solution that

[NSApp setActivationPolicy:NSApplicationActivationPolicyAccessory];

shows the menu, though hides its main menu and dock. I hope this helps.

kawauso
  • 355
  • 2
  • 5