I am using this code:
#define MAATTACHEDWINDOW_DEFAULT_BACKGROUND_COLOR [NSColor colorWithCalibratedRed:59 green:89 blue:152 alpha:0.75]
And trying to obtain a background color using RGB but it's giving me the color white. What did I do开发者_如何转开发 wrong?
The values you have passed in are incorrect for what it expects; they have to be between 0 and 1. Anything above 1 is set to 1.0.
精彩评论