Make a borderless window, the size of the menu-bar screen (screen 0—not [NSScreen mainScreen]
), positioned at 0,0, with window level kCGDesktopWindowLevel
.
Remember that you will need to observe for screen frame-change notifications (when the user changes the screen dimensions), and that you should correctly handle the case of no screen at all (headless Mac).