Why does this allow me to change the bordered state but not the border width (or other border properties)?
NSButton *button = (NSButton *)sender;
[button setBordered:false];
[button setBorderWidth:5];
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
setBorderWidth:method does not exists, check the NSButton Class Reference.In other words,
NSButtondoes not support changing the border width (by default).The
setBordered:method defines wether the button has a bezeled border.Setting
setBordered:tofalseremoves the complete bezel, for example:The
setBordered:method might be confusing therefor.