Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5953109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:46:39+00:00 2026-05-22T17:46:39+00:00

Now I have finally managed to create a fullscreen window via http://cocoadevcentral.com/articles/000028.php Brilliant tutorial.

  • 0

Now I have finally managed to create a fullscreen window via http://cocoadevcentral.com/articles/000028.php
Brilliant tutorial. Now the question how do I use the following code to show the dock and menubar, as currently I have a completely black screen, I would like to see a menubar and a dock. Is that possible?

- (void)applicationDidFinishLaunching:(NSNotification *)notification
{
     int windowLevel;
     NSRect screenRect;
     // Capture the main display
     if (CGDisplayCapture( kCGDirectMainDisplay ) != kCGErrorSuccess) {
         NSLog( @"Couldn't capture the main display!" );
         // Note: you'll probably want to display a proper error dialog here
     }
     // Get the shielding window level
     windowLevel = CGShieldingWindowLevel();
     // Get the screen rect of our main display
     screenRect = [[NSScreen mainScreen] frame];
     // Put up a new window
     mainWindow = [[NSWindow alloc] initWithContentRect:screenRect
                                    styleMask:NSBorderlessWindowMask
                                    backing:NSBackingStoreBuffered
                                    defer:NO screen:[NSScreen mainScreen]];
     [mainWindow setLevel:windowLevel];
     [mainWindow setBackgroundColor:[NSColor blackColor]];
     [mainWindow makeKeyAndOrderFront:nil];
     // Load our content view
     [slideShowPanel setFrame:screenRect display:YES];
     [mainWindow setContentView:[slideShowPanel contentView]];
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:46:40+00:00Added an answer on May 22, 2026 at 5:46 pm

    Took a bit of experimenting but I figured it out;

    - (void)applicationDidFinishLaunching:(NSNotification *)notification
    {
    int windowLevel;
    NSRect screenRect;
    // Capture the main display
    
    // Get the screen rect of our main display
    screenRect = [[NSScreen mainScreen] frame];
    // Put up a new window
    mainWindow = [[NSWindow alloc] initWithContentRect:screenRect
                                             styleMask:NSBorderlessWindowMask
                                               backing:NSBackingStoreBuffered
                                                 defer:NO screen:[NSScreen mainScreen]];
    [mainWindow setLevel:windowLevel];
    [mainWindow setBackgroundColor:[NSColor blackColor]];
    [mainWindow makeKeyAndOrderFront:nil];
    // Load our content view
    [slideShowPanel setFrame:screenRect display:YES];
    [mainWindow setContentView:[slideShowPanel contentView]];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I now have it set up so that when people go to a thank
Modern ATL/MFC applications now have access to a new shared pointer class called CAutoPtr,
Following on from this question I now have code that can attach to a
Imagine the following REBOL code: foo: context [bar: 3] I now have a context
I'm a ClearCase newbie and up until now have been used to SVN. Therefore,
My team has been using SVN for a few years. We now have the
I've always wondered about this ... and thankfully, now have a good environment of
Previously I've asked about inserting a column into a dataset . I now have
Now I have a stack of free time on my hands, I wanna get
Now I have seen this question in another forum but it didn't had an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.