[futurebasic] Re: [FB] Color picker

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2012 : Group Archive : Group : All Groups

From: Bernie <fblist.bw@...>
Date: Fri, 6 Apr 2012 08:14:07 +0100
If using NSColorPanel, one could set up a callback from the changeColor: delegate method.

Bernie
[iPhone]


On 5 Apr 2012, at 23:55, Brian S <fblistserve@...> wrote:

> 
> On Apr 5, 2012, at 2:33 PM, Robert Covington wrote:
> 
>> Is there a callback or other process one can set up for when using the System Color picker?
>> 
>> toolbox fn GetColor( Point where, Str255 prompt, const RGBColor *inColor, RGBColor *outColor ) = Boolean
>> toolbox fn PickColor(ColorPickerInfo *theColorInfo) = OSErr
> 
> If a callback exists for these Carbon calls, it’s not mentioned( even looking at the "unsupported functions in OS X section" ) in the legacy docs for the Color Picker Manager ( but I assume you knew that already ). Given these Carbon calls are "legacy", have you considered the Cocoa calls ( specifically I’m thinking of NSColorPanel class which has a ton of options ). The system guide "Overview of the Color Picker API" ( for Cocoa ) might be a good start. I’m currently working on writing replacement code for other legacy code or I’d jump in. HTH a little.
> 
> 
> Brian S.
> 
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe, send ANY message to: futurebasic-unsubscribe@...
> To access the list archives, go to:  http://freegroups.net/groups/futurebasic/
>