Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get rid of Enter Full Screen menu item?

In my Mac OS X app I deleted all default menu items, added my own.

But in View menu at the bottom I can still see Enter Full Screen menu item, whilst in storyboard there is no such menu item.

I've tried to delete the entire View menu, but now it migrated to Window menu. Even though it's disabled, I would still like to get rid of it entirely if possible.

like image 464
Pablo Avatar asked Oct 24 '25 00:10

Pablo


1 Answers

The release notes for AppKit for 10.11 suggest you can use the NSUserDefault NSFullScreenMenuItemEverywhere.

Full Screen Menu Item

AppKit automatically creates an "Enter Full Screen" menu item after the application finishes launching if an equivalent menu item isn't found. If this menu item should not be created for your app, before NSApplicationDidFinishLaunchingNotification is sent you may set the NSFullScreenMenuItemEverywhere default to NO.

- (void)applicationWillFinishLaunching:(nonnull NSNotification *)notification {
    [[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSFullScreenMenuItemEverywhere"];
}
like image 122
TheNextman Avatar answered Oct 26 '25 18:10

TheNextman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!