spotlight-style window

How can I create a spotlight-style window in my app? Or a window in the style of Xcode's Open Quickly command?


It's styled a bit like NSPopover (floating, no title bar, rounded corners), but doesn't have an anchor.

Answered by Claude31 in 357575022

Did you try to use NSPanel ?


Add in IB an NSPanel

In Attributes Inspector, select Utility panel.

Hide title bar, and hide the 3 buttons

I just tried a window with a transparent title bar, and hiding the close, minimize, resize buttons. That gets me closer, but my main app window is still darkened when presenting via storyboard segue.

Accepted Answer

Did you try to use NSPanel ?


Add in IB an NSPanel

In Attributes Inspector, select Utility panel.

Hide title bar, and hide the 3 buttons

Looks good, thanks!

spotlight-style window
 
 
Q