Unsupported configuration error in Cocoa (Xcode)

I need a full-screen window with a lot of materials in it, made by Cocoa Xcode 4. But there is a constant warning: when I try to resize the main window, I get this warning (the code compiles well, but I'm sure something will go wrong for users with small screens) this is a warning:

"Unsupported configuration The content context is not fully displayed on the screen using the menu bar (may not be displayed completely for screen resolution and Configuration)"

I have 2 questions:

1- The best way to get rid of this warning (except for using a smaller window, because the warning starts with a window size of 560 x 560. I can’t use such a small screen for this material)

2 How can I say that the program opens in full screen mode at the beginning?

+5
source share
2 answers
  • You just need to move the window in the calibration inspector to IB.

  • This SO question should answer this question.

+3
source

This is the code that I could use from this link, which, fortunately, "trojanfoe" let me know

Creating NSWindow in full screen mode

This is simplified code:

, Cocoa @synthesize AppDelegate.m . @synthesize;

1- screenRect 2- " " , , ( 10 40px , , Xcode! enter image description here

3- :

  • (void) applicationDidFinishLaunching: (NSNotification *) aNotification {

    // :

    NSRect screenRect;

    NSSize screenSize;

    NSArray * screenArray = [ NSScreen];

    NSUIntegerCount = [screenArray count];

    ( NSUInteger = 0; index < screenCount; index ++)

    {

    NSScreen *screen = [screenArray objectAtIndex: index];
    
    screenRect = [screen visibleFrame];
    

    }

    // screenRect

    screenSize.height = screenRect.size.height; screenSize.width = screenRect.size.width;

    [window setContentSize: screenSize];  }

enter image description here

+2

All Articles