Re: Color Picker implementation error
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