Hacker News new | past | comments | ask | show | jobs | submit login

What object would you pass to NSColor to generate a color from HSB components? Wrap them to NSHue, NSSaturation, and NSBrightness? Or generate NSHueParameters first?

(Please note that I don't intend to argue, I'm asking for a better solution. Thanks!)




I think he's referring to the API to get the components out of the NS/UIColor, not create the NS/UIColor object.


There are individual methods like `hueComponent` if you want them. http://developer.apple.com/mac/library/documentation/cocoa/r...

I still don't get the point.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: