1. Welcome to the new forums. See our announcement and read our FAQ

iPhone NSColorPanel?

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

  1. Guest

    Darkroom

    #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. Moderator emeritus

    kainjow

    #2
    I'll just say, if you don't see it in the documentation, it's not there.
     
  3. Guest

    Darkroom

    #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. macrumors 601

    HiRez

    #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