How to create a FullScreen NSWindow which should show the dock but hide menu bar?

1k views Asked by At

I'm new to OS X. I would like to to create a fullscreen NSWindow which should show the dock but hide menu bar like launchpad.

1

There are 1 answers

1
Akhil Shrivastav On
    - (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
    [_window setCollectionBehavior:
   NSWindowCollectionBehaviorFullScreenPrimary];

    [_window toggleFullScreen:self];

    [NSMenu setMenuBarVisible:NO];
}

Try above code.