Apr 17, 2011, 12:42 AM
Is it possible to make an NSWindow's titlebar clear, similar to Windows Aero? If so, how?
Apr 17, 2011, 01:51 PM
Anything is possible, depending on how much work you want to put into realizing it. Start by reading the NSWindow doc, paying especial attention to the method -initWithContentRect:styleMask:backing:defer: which, by setting the style mask, lets you create a window with no frame or titlebar. You would then have to add a view to handle the titlebar of your own design (with close/minimize/zoom buttons either taken from the system image set or drawn by your own code). You would have to write simple methods to handle clicks in your custom titlebar and its buttons, and also resizing if you need that.
You will also have to use -setOpaque: to make the entire window frame transparent (your other views will not be affected by this unless you give them a transparent background). If you have open areas in your frame that reveal other windows, you might have to figure out how to pass clicks in those areas through to the underlying windows.