Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Mac OS X Color Picker

Mac OS X Color Picker
Thread Tools
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Jul 30, 2001, 12:00 PM
 
Is it possible to access the floating window color picker in Carbon? And for that matter, is it possible to access the color well control in Carbon?
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 8, 2001, 04:55 PM
 
Does anyone know how to do this?

Now that I think about it, accessing the system Font panel would also be very useful.
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Dedicated MacNNer
Join Date: Apr 2001
Location: San Francisco, USA
Status: Offline
Reply With Quote
Aug 8, 2001, 06:25 PM
 
I've got a color picker related question to tack onto this thread. Has anyone written an HTML custom color picker in Cocoa? Just a simple RGB picker that uses hex values would be nice. Bonus points for identifying "web safe" colors ala Photoshop.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 13, 2001, 07:01 AM
 
*bump*

Does anyone know about this stuff?
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Dedicated MacNNer
Join Date: Jan 2001
Location: Virginia, US
Status: Offline
Reply With Quote
Aug 14, 2001, 01:10 PM
 
I wrote a quickie -- not polished at all -- Cocoa color picker a while back (one that shows hex values for RGB actually). They're not too hard to write, but I was having a really strange problem in that inside some apps it made the color picker window almost the full width of the screen, and wouldn't let me resize it down any. I haven't played with it much since. I'm not sure if this is an Apple bug or my problem. I ought to revisit it though.

Stone Design had a freeware application for the old MacOS X Server 1.2 that did much the same thing (better I'm sure) called Web Colors (http://www.stone.com/WebColors/WebColors.html), but I don't think it's been updated for MacOS X.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 17, 2001, 06:16 AM
 
Does anyone know if the font and color panel can be used in Carbon?
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Forum Regular
Join Date: Aug 2000
Location: the chair in front of my Mac
Status: Offline
Reply With Quote
Aug 17, 2001, 08:53 AM
 
I don't think so.

Both relie on other Cocoa classes to get their jeb done.
     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 17, 2001, 12:55 PM
 
For the Colo(u!)r panel, there is a Carbon one which works just fine

As far as the Font panel goes, you'll have to construct your own, I think (yet another thing the Toolbox API failed to provide, I guess).

You will not be able to use the Cocoa ones in Carbon, I don't think. Especially not the font panel, as that is intertwined with the Cocoa text services.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 18, 2001, 12:37 PM
 
Originally posted by Angus_D:
<STRONG>For the Colo(u!)r panel, there is a Carbon one which works just fine

As far as the Font panel goes, you'll have to construct your own, I think (yet another thing the Toolbox API failed to provide, I guess).

You will not be able to use the Cocoa ones in Carbon, I don't think. Especially not the font panel, as that is intertwined with the Cocoa text services.</STRONG>
Dang. I guess I'll have to wait until the Carbon API is improved by Apple.
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 19, 2001, 03:18 PM
 
Originally posted by graphiteman:
<STRONG>Dang. I guess I'll have to wait until the Carbon API is improved by Apple.</STRONG>
Why's that, then? Just use Cocoa!
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 20, 2001, 02:33 PM
 
Originally posted by Angus_D:
<STRONG>

Why's that, then? Just use Cocoa! </STRONG>
Because I don't have a year to port my app (Cranberry) to Cocoa from REALbasic.

I would if I could.
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 21, 2001, 01:33 PM
 
Getting the CARBON colour picker is very easy in RB. I forget what the exact call is, but it's something like:
dim c as color
c = SelectColor()

or something equally simple. I can't be bothered to fire up RB and check, because I paid for 2.1.2 and don't want to pay another few hundred $$ to use their slow, bloated crap on OS X
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 25, 2001, 06:56 AM
 
I just wanted to use the Cocoa one because it is much more astecially pleasing.
To get the carbon one:
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier>
Dim B As Boolean, C As Color
B=SelectColor(C)
</font>[/code]

On a ccompletely unreleated subject, do you know how to set and clear the little dot in the close box of a window to indicate the document is changed?

[edit: bad ubb code]

[ 08-25-2001: Message edited by: graphiteman ]
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
Addicted to MacNN
Join Date: Mar 2000
Location: London, UK
Status: Offline
Reply With Quote
Aug 25, 2001, 07:01 PM
 
Originally posted by graphiteman:
<STRONG>On a ccompletely unreleated subject, do you know how to set and clear the little dot in the close box of a window to indicate the document is changed?</STRONG>
From RB, no idea. There probably isn't a call. You could find the toolbox call to do it and pass a window.windowRef to it, though.
     
Dedicated MacNNer
Join Date: Jan 2001
Location: Computer Error: Unknown
Status: Offline
Reply With Quote
Aug 26, 2001, 07:06 AM
 
Any idea what that toolbox call would be, or at leat where it would be located in the carbon dcumentation (Window manager, for instance)?
"...Because the people who are crazy enough to think they can change the world,
are the ones who do."
-To the Crazy Ones

     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:47 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2