Is there any way to keep an NSWindow always on top of other windows (inside an app)?
I want to create a "preview" window for pictures and videos with it not taking up space in the main window.
Is there any way to keep an NSWindow always on top of other windows (inside an app)?
I want to create a "preview" window for pictures and videos with it not taking up space in the main window.
Did you consider using hud (head up display) window ?
@IBOutlet fileprivate weak var hud : NSPanel!
Again, I found it myself.
override func windowDidLoad() {
super.windowDidLoad()
window?.level = .floating
}