I would like to create a custom check box that functions just like a normal check box but looks different, at the moment I am using normal check box’s, is there a way to do this.
P.S This is Cocoa i am talking about.
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.
You need to override NSButtonCell. You’ll use
drawInteriorWithFrame:inView:or a simililar method to do your custom drawing. If you’ve never used custom cells before it can be a bit of a learning experience, but there’s a lot of good advice out there, like this page to start with.You could also take a look at an open source framework like BGHUDAppKit for an example.