You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you want the menubar to be clickable you need to come up with some C-variant of this:
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
// [NSApp activateIgnoringOtherApps:YES] needs to be called after everthing
// has finished launching, or else the menu bar will not work until we switch
// applications once.
// http://stackoverflow.com/questions/33345686/cocoa-application-menu-bar-not-clickable
[NSApp activateIgnoringOtherApps:YES];
}
In which I mean, you need to figure out when you should call this.
The text was updated successfully, but these errors were encountered:
Bundle is nice of course, however, I think it should be possible to have a functional executable and a functional menubar without bundle and .plist. I have a (somewhat) minimal objective c program which I can run from terminal, without plists and bundle, and still have a proper menu.
So if you really want to be minimal, I think it's doable, but I don't know how. Do what you will with the information :)
It was once possible to "bundle" by embedding an Info.plist into your binary directly. It might be worth a shot: CFLAGS += -Wl,-sectcreate,__TEXT,__info_plist,path/to/Info.plist
If you want the menubar to be clickable you need to come up with some C-variant of this:
In which I mean, you need to figure out when you should call this.
The text was updated successfully, but these errors were encountered: