Display Cocoa window above Keynote presentation

In some context: I'm creating a tool that will be used on the screen during a Keynote or PowerPoint presentation.

The biggest problem I have had so far is that Keynote seems to take over the desktop whenever you view a presentation. I tried to set Cocoa window's maximum level with:

  [[self window] setLevel: kCGMaximumWindowLevel];

This seems like some kind of effect (I can hover a window above the Keynote "control panel" that is active in an off-screen window), but it does not allow me to hang over the actual view.

Any ideas? Thanks in advance for your help!

+4
source share
2 answers

Try setting the NSScreenSaverWindowLevel + 1 level.

+3
source

Keynote has some settings in its settings that also need to be set. Try the following:

 /usr/bin/defaults write com.apple.iWork.Keynote PresentationModePlayWellWithOthers 1 /usr/bin/defaults write com.apple.iWork.Keynote MouseVisibility 2 

Definitely required 1st. The second is just for practicality.

This is in addition to what Rob suggested above, setting the window level just above the NSScreenSaverWindowLevel level.

+5
source

All Articles