Question

I want re-draw these two controls, but I can not find the method to do that, anyone can give me idea to do that?

I have found some app has re-draw these controls, you can look the screenshot. the first one is NSStepper, the second one is NSTabView,the NSTabViewItem is also be re-drawed.

enter image description here

enter image description here

Was it helpful?

Solution

You have to Subclass most of the GUI classes, if you need to customize.

For NSTabView, this is one of the class where you have to do a lot of thing yourself.

You have to draw yourself ( using beziers path )

Need to implement many methods of NSView & NSResponder for drawing and event handling.

Kindly check these links :

NSTabView with background color

http://www.positivespinmedia.com/dev/PSMTabBarControl.html

https://github.com/aaroncrespo/WILLTabView/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top