iPhone NSColorPanel?

Discussion in 'Mac Programming' started by Darkroom, Mar 24, 2008.

  1. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #1
    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?
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    I'll just say, if you don't see it in the documentation, it's not there.
     
  3. Darkroom thread starter Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #3
    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.
     
  4. HiRez macrumors 603

    HiRez

    Joined:
    Jan 6, 2004
    Location:
    Western US
    #4
    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.
     

Share This Page