Hey @kevgski,
window.floatingPanel = true
was already set and working as intended based on the the SmashingMagazine tutorial and AppKit documentation.
window.level = NSFloatingWindowLevel
partially solved my problem, as this brings the plugin window in front of the all the active windows when Sketch.app is focused even above Sketch DevTools - but only when it's focused - which helps me a lot than before, because the Sketch DevTools window floats above all other windows and when it's clicked it will bring the plugin's panel in focus regardless where the Sketch.app window is "hidden".
But to take it further, I want my plugin's panel to float above all other windows, just like Sketch DevTools window does...
I've tried this:
function showWindow(window) {
window.makeKeyAndOrderFront(nil);
window.setLevel(CGWindowLevelForKey(kCGMaximumWindowLevelKey));
}
but it doesn't keep the plugin's window on top of all other windows - apparently it does the same thing with:
window.level = NSFloatingWindowLevel
Below it's a dropbox link of a gif to show the behaviour I would want to implement for my plugin:
