NSWindowCloseButton and friends mouse over highlight
NSWindowCloseButton and friends mouse over highlight
- Subject: NSWindowCloseButton and friends mouse over highlight
- From: email@hidden
- Date: Wed, 11 Sep 2013 14:34:58 +0900
Hello all,
So, working with a borderless window with a custom style, but wanting to have standard traffic light buttons, I am unable to figure out how to get the proper mouseover highlight state.
I have created a generic container view class that can be told which kind of NSWindowButtonType to hold, and the container creates the button itself.
The container is really for keeping things tidy and includes an NSTrackingArea to track the mouse entering and exiting the button rect.
This all works really great.
However, sending highlight:YES to the button or setHighlighted:YES to the button cell, both give the mouse down image of the traffic light buttons.
Is there something I'm missing in the docs or documented in a header somewhere?
Or is this just some stuff private to NSThemWidget ?
Or, is there a way to have those standard window buttons actually behave in a borderless window the same way they behave everywhere else, without resorting to photoshopping some screenshots of the things?
It's certainly possible to locate assets for these within tons of apps and "borrow" those as well, but surely this shouldn't be so hard, right?
_______________________________________________
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