Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSWindow - show new window that will always stay on top of current window

I want my NSWindow to show new window(s) that will always be on top of current window. they should NOT be on top of other windows.

In addition, they should not move when the original window moves.

How can i do that?

like image 545
Erik Sapir Avatar asked Jul 17 '11 11:07

Erik Sapir


1 Answers

Use NSWindow's addChildWindow:ordered: or setParentWindow: method to add the other window as a child of the first window. That window will follow the first window around. See the NSWindow Class Reference.

like image 51
spudwaffle Avatar answered Sep 28 '22 17:09

spudwaffle