Creating a Cocoa Full Screen Application

I want to create a Cocoa full-screen application, however my application is slightly different from a regular full-screen application.

This app will be below everything else, so under the menu bar and dock, etc. This will be a large image covering the desktop and icons, with a custom NSView in the middle with a table view, etc. If this concept is difficult to understand, then here is the image:

http://img10.imageshack.us/img10/6308/mockupo.png

The only part that can be a bit confusing is the background image. This background image is NOT a computer wallpaper, but part of the application. Therefore, when the application starts, it enters full-screen mode and is placed under the dock and in the menu bar, as well as under all other windows. Therefore, he draws a background image to cover the screen (including the desktop and icons). Then the custom NSView in the middle contains my controls.

What is the best way to do this?

thanks

+3
source share
2 answers

Make a window borderless, the size of the menu screen (screen 0- not [NSScreen mainScreen] ), located at 0.0, with the window level kCGDesktopWindowLevel.

, ( ) ( Mac).

+6

, @Peter Hoseys , , , , - .

, . , - Macintosh. , , "" Mac OS X . , Time Machine - .

+1

Source: https://habr.com/ru/post/1719147/


All Articles