I created a custom title bar for the blackened NSWindow (style 0), so that I can make it disappear like in Quicktime X. The only problem is that the buttons do not respond to the mouse and mouse movements in the title bar can be combined with button clicks.
The full source code is here: https://github.com/iaefai/OrganicUI in the /ORTitleBar.m and ORWindow.m classes.
Buttons are standard for this method:
self.closeButton = [NSWindow standardWindowButton: NSWindowCloseButton
forStyleMask:NSTexturedBackgroundWindowMask];
Then it is positioned:
[self.closeButton setFrame: __frame]
Then added to the header:
[self addSubview: self.closeButton]
A small video of the disappearing title bar can be seen here:
http://web.me.com/iaefai/OrganicUI/ORWindow.html
source
share