I know that, Cocoa uses quartz underneath to render the UI.
Thus can anybody share source code underneath that generates this PushButton displayed on screen?
I need this as a part of my research where I am trying to figure out if its possible to have all the UI elements on Mac using quartz (Of-course all 2D elements). I have been able to render others elements but Buttons and its variants still blocks me.
Thank you.
You can use
HIThemeDrawButton, documented in/System/Library/Frameworks/Carbon.framework/Frameworks/HIToolbox.framework/Headers/HITheme.h.