Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to set height of NSButton

I have some NSButtons of style Round Textured inserted into an NSToolbar.

I have created some custom images for the buttons and would like to make them vertically bigger, however the height field for the button is greyed out.

Anyone got any ideas why, and if there is a way around it?

Thanks

Gareth

like image 972
Gareth Jeanne Avatar asked Jul 17 '13 23:07

Gareth Jeanne


2 Answers

From NSButtonCell Class Reference

NSTexturedRoundedBezelStyle The height of this button is fixed.

enter image description here

You can use NSTexturedSquareBezelStyle Bezel Styles

enter image description here

like image 193
Parag Bafna Avatar answered Nov 15 '22 18:11

Parag Bafna


You have to uncheck Bordered in the latest version of XCode

enter image description here

like image 42
Laurent Crivello Avatar answered Nov 15 '22 17:11

Laurent Crivello