Borderless NSButton turns gray when clicked

前端 未结 3 2040
你的背包
你的背包 2020-12-03 01:17

I am making a little application with three NSButtons with an image set. These buttons have no border nor background. However, when I click a button it turns into a gray rec

3条回答
  •  北海茫月
    2020-12-03 01:49

    You should be able to adjust this by changing the state mask. To do so, check out the highlightsBy: and showsStateBy: properties of NSButtonCell - they are for setting the press effect and displaying the effect respectively. The applicable constants for these methods are in the NSCell reference page.

提交回复
热议问题