What would be the best (as in the case: the most concise) way to set only the alpha component of the color ?
Say I would like to use something like + (NSColor *)brownColor , but with 50% opacity -
I could not find a suitable constructor, such as ..fromNSColor: which would allow us to change the alpha component and NSColor be unchanged, is there any other convenience method that we can use to change the alpha component while preserving the r / components g / b same?
objective-c cocoa nscolor
ATV
source share