• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Color Picker implementation error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color Picker implementation error


  • Subject: Re: Color Picker implementation error
  • From: George Orthwein <email@hidden>
  • Date: Tue, 6 Jun 2006 12:26:31 -0400

What exactly do you want to do?

On Jun 6, 2006, at 9:30 AM, Vinay Prabhu wrote:
I am trying to customize the color picker which I can be used in the
application.
I have created a cocoa bundle with the class that implements
NSColorPickingDefault and Custom.
Also placed the bundle in the proper location.

That will let you add a custom pane to the Color Panel:
http://developer.apple.com/documentation/Cocoa/Conceptual/DrawColor/ Tasks/AddingColorPickers.html


Google "color picker source cocoa" for some code samples. Here's one:
http://wafflesoftware.net/hexpicker/

It sounds like what you really want is to integrate the NSColorPanel Color Wheel into an existing window so it won't popup as a separate panel. I doubt there is a way to do this with the standard NSColorPanel. I don't suppose it would be too hard to write your own... display a color wheel graphic and then come up with a color based on the position of a picker (I wouldn't bother trying to read the screen color of the actual wheel graphic).

But of course, if the standard NSColorPanel will work at all, it will be easier for you and more consistent for the user.

Hope that helps,
George
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • RE: Color Picker implementation error
      • From: Vinay Prabhu <email@hidden>
    • Re: Color Picker implementation error
      • From: "A.M." <email@hidden>
References: 
 >Color Picker implementation error (From: Vinay Prabhu <email@hidden>)

  • Prev by Date: Re: Drive mounting problem
  • Next by Date: Re: Extending the save dialog?
  • Previous by thread: Re: Color Picker implementation error
  • Next by thread: Re: Color Picker implementation error
  • Index(es):
    • Date
    • Thread