I'm relative new to OS X development (coming from iOS).
How can I archive a similar window like in the messages app for OS X?
I think I must create a NSWindow subclass and override something? Any idea what?
OS X Yosemite is the deployment target. No need to support older OS.
Ok, I found the solution.
You have to create a subclass of NSWindowController
and in the windowDidLoad
method, you have to put this code:
self.window!.titlebarAppearsTransparent = true
to make the whole thing work, you have to activate "Full Size Content View" in Interface Builder.
titlebarAppearsTransparent
is available in OS X 10.10.
For OS X 10.9 and under,
set window.backgroundColor
and add NSTexturedBackgroundWindowMask
to style mask.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With