I would like to create a custom checkbox that works like a regular checkbox, but it looks different, at the moment I'm using a regular checkbox, is there any way to do this.
PS This is Cocoa I'm talking about.
You need to override NSButtonCell. You will use drawInteriorWithFrame:inView:either a similar method to make your own drawing. If you've never used custom cells before this may be a bit of a learning experience, but there are a lot of good tips there, like this page for starters.
drawInteriorWithFrame:inView:
You can also take a look at an open source framework like BGHUDAppKit .
, "" , Apple, NSButton XCode/Interface Builder . .
Source: https://habr.com/ru/post/1707551/More articles:Declaring an element with ANY name in DTD - dtd.Net open source based social website? - .nethttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1707548/alternatives-to-sending-an-image-in-base64-via-document-literal-soap&usg=ALkJrhi_mDu6geolGvzd_Rn6k2KVx2g8gQshutting down the hard drive - windowshttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1707550/how-to-append-variables-to-a-url-which-already-has-variables&usg=ALkJrhgBgQQyO-dGnz5CGzvloircF-l8ywC #: problem with shell commands - c #Как я могу получить номер версии пользовательской функции Eclipse во время выполнения? - eclipseAcceleration in java - javaWhy is my vector code approved? What is a statement? - c ++Brand new to C (how to compile?) - c ++All Articles