PDA

View Full Version : iPhone NSColorPanel?




Darkroom
Mar 24, 2008, 05:38 AM
is there an NSColorPanel accessible in the iPhone SDK that's the same as the Mac OS X version? or is it slightly different if there is one at all?



kainjow
Mar 24, 2008, 09:24 AM
I'll just say, if you don't see it in the documentation, it's not there.

Darkroom
Mar 24, 2008, 11:15 AM
I'll just say, if you don't see it in the documentation, it's not there.

i didn't download the SDK. so don't have access to the documentation and just wanted to know if anyone who has downloaded it could answer my question.

HiRez
Mar 24, 2008, 11:37 AM
I haven't had time to look, but I've never seen one appear on the iPhone so for myself I'm going to assume it's not there. In fact, quite a lot of what we know as Cocoa seems to have been left out, or at least not wrapped in Objective-C (yet?). However, it shouldn't be too hard to make your own color panel. All you technically need is a view with 1-3 text fields and perhaps a color swatch drawn to confirm the color. Then you could fancy it up as you go along. Sliding with your finger to change values would be cool, as would presenting a color gamut and dragging your finger in two dimensions to set hue and saturation.