Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Darkroom

Guest
Original poster
Dec 15, 2006
2,445
0
Montréal, Canada
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?
 

HiRez

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.