0

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.

APerson
  • 8,140
  • 8
  • 35
  • 49
Vibin
  • 1
  • 3
  • 2
    @sudha the edit suggested by you is adding nothing to the quality of the question..please consider it – nobalG Nov 18 '14 at 10:34

1 Answers1

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

    [_window toggleFullScreen:self];

    [NSMenu setMenuBarVisible:NO];
}

Try above code.

Akhil Shrivastav
  • 427
  • 3
  • 13
  • Thanks for the suggestion. [NSMenu setMenuBarVisible:NO] will hide both menubar and dock. Also I don't want to toggle between fullscreen and normal screen. I want my window should look exactly like launchpad. – Vibin Nov 18 '14 at 13:39