I’d like to override the default system control tint for my app to be always NSGraphiteControlTint. The following code doesn’t seem to work though. Any suggestions?
NSButton *button = [window standardWindowButton:NSWindowCloseButton];
[[button cell] setControlTint:NSGraphiteControlTint];
Regards,
Erik
You set the AppleAquaColorVariant preference:
However, if you want it to work the first time the app launches, you must do it before any UI is drawn, in
mainbefore callingNSApplicationMain, or you can use a custom subclass ofNSApplication, and call it in its-initmethod before[super init]