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.
Asked
Active
Viewed 1,027 times
0
-
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 Answers
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