Translate Cocoa Massage ProKit.framework

Mac OSX specific forum
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Translate Cocoa Massage ProKit.framework

Post by Wolfram »

Hi,

can someone translate this Cocoa message?

Code: Select all

[[NSUserDefaults standardUserDefaults] setVolatileDomain:@{@"AppleAquaColorVariant": @6} forName:NSArgumentDomain];
As I have read, it allows to use the gray menus and windows as in the Apple Pro Apps..

Thanks
macOS Catalina 10.15.7
wilbert
PureBasic Expert
PureBasic Expert
Posts: 3944
Joined: Sun Aug 08, 2004 5:21 am
Location: Netherlands

Re: Translate Cocoa Massage ProKit.framework

Post by wilbert »

I think it should be like this

Code: Select all

  StandardUserDefaults = CocoaMessage(0, 0, "NSUserDefaults standardUserDefaults")
  VolatileDomain = CocoaMessage(0, 0, "NSDictionary dictionaryWithObject:", CocoaMessage(0, 0, "NSNumber numberWithInteger:", 6), "forKey:$", @"AppleAquaColorVariant")
  CocoaMessage(0, StandardUserDefaults, "setVolatileDomain:", VolatileDomain, "forName:$", @"NSArgumentDomain")
but I don't see anything happen. :(
Windows (x64)
Raspberry Pi OS (Arm64)
User avatar
J. Baker
Addict
Addict
Posts: 2196
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

Re: Translate Cocoa Massage ProKit.framework

Post by J. Baker »

The following worked in Snow Leopard and Mavericks...

Code: Select all

; Window button colors and menu highlights. Run the terminal command, then open TextEdit.
; 0 = Default
; 1 = Blue <--- basically default for OSX
; 6 = Graphite
; 7 = Clear but didn't work in Snow Leopard or Mavericks

;set all
;RunProgram("defaults", "write NSGlobalDomain AppleAquaColorVariant -int 6", "")

;set for TextEdit only
RunProgram("defaults", "write com.apple.TextEdit AppleAquaColorVariant -int 6", "")

;remove from TextEdit
;RunProgram("defaults", "remove com.apple.TextEdit AppleAquaColorVariant", "")
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.
Wolfram
Enthusiast
Enthusiast
Posts: 610
Joined: Thu May 30, 2013 4:39 pm

Re: Translate Cocoa Massage ProKit.framework

Post by Wolfram »

macOS Catalina 10.15.7
Post Reply