NSColor, 10.6 and Gamma 2.2
Posted
by Stephen Blinkhorn
on Stack Overflow
See other posts from Stack Overflow
or by Stephen Blinkhorn
Published on 2010-05-11T00:11:50Z
Indexed on
2010/05/11
0:14 UTC
Read the original article
Hit count: 260
With Snow Leopard the default gamma changed from 1.8 to 2.2. I happen to be working on a few Mac apps that use a very dark custom colour scheme provided by Cocoa. On 10.5 it looks fine but on 10.6 with the new gamma it's much darker and really hard on the eyes.
The colour scheme is defined using numerous [NSColor colorWithCalibratedRed:green:blue:alpha:] objects within a theme class.
Is there any way to 'convert' an NSColor object so that it displays on 10.6 exactly as it would on 10.5 with the old 1.8 gamma?
I know this can be achieved globally from within System Preferences but that's not what I'm after.
© Stack Overflow or respective owner