Page 1 of 1
Translate Cocoa Massage ProKit.framework
Posted: Fri Apr 18, 2014 4:22 pm
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
Re: Translate Cocoa Massage ProKit.framework
Posted: Sat Apr 19, 2014 2:59 pm
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.

Re: Translate Cocoa Massage ProKit.framework
Posted: Mon Apr 21, 2014 6:31 am
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", "")
Re: Translate Cocoa Massage ProKit.framework
Posted: Thu Apr 24, 2014 7:55 pm
by Wolfram