Description[Mac] Reimplement HoverButton and HoverImageButton using NSButton.state.
Rather than manually tracking button state using -mouseDown:, just use the
button's already tracked state. This means that changing the button type, to
e.g. NSToggleButton, results in the correct image being displayed when "pressed"
on.
BUG=none
TEST=Tab close buttons still work (show right states, animate out).
Patch Set 1 #
Total comments: 2
Patch Set 2 : nonatomic, assign #
Total comments: 2
Messages
Total messages: 5 (0 generated)
|