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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to