Hiding the title bar and adding the default close/maximize/minimize buttons
Hiding the title bar and adding the default close/maximize/minimize buttons
- Subject: Hiding the title bar and adding the default close/maximize/minimize buttons
- From: Idan Ratzabi <email@hidden>
- Date: Thu, 25 Aug 2011 08:19:35 +0300
Hi,
I need to hide my window title bar and add the default
buttons(close/min/max) to my custom view.
I'm using NSWindow's "standardWindowButton:forStyleMask" to get those
buttons.
I want to emulate the default close button that when you hover over it, it
causes the "x" to appear. I tried doing it using a tracking info, and
setting it to highlighted when the mouse is over it. (mouseEntered). It
seems to work, besides when the window is not active, which in that case,
the button look pressed when you set it back to non highlighted (in the
mouseExit method) Any way to fix this ?
pic attached.
[image: screen2.png]
Thanks
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden