tags:

views:

47

answers:

1

I have built a color well using objective c and cocoa but I am having trouble getting the color out using takeColorFrom:. My example would not be useful because I am writing all this in lisp with an objective c bridge. Could someone link me to an example of how to do this in objective C and I can easily translate from that.

+3  A: 

'takeColorFrom:' is to set the color of your well from an external object. You probably want the 'color' method, which returns the color of your NSColorWell object.

From the documentation:


color
Returns the color of the receiver.

- (NSColor *)color

Return Value
The color of the receiver.


takeColorFrom:
Changes the color of the receiver to that of the specified object.

- (void)takeColorFrom:(id)sender

Parameters
sender The object from which to take the new color.

Carl Norum