On Jan 18, 2010, at 5:39 AM, Matthias Schmidt wrote:
> Hello,
> I'm a bit stuck with NSColorPanel, while trying to write a plugin for
> another app, which should open the color picker, select a color, close
> it and return the color.
>
> I use this code here, but as soon as I click in the panel it is crashing:
What is the backtrace of the crash?
-corbin
> -(void)setPicker:(id)sender {
>
> panel = [NSColorPanel sharedColorPanel ] ;
> [ panel setColor: myColor ];
> [ panel setMode: (NSColorPanelMode)pMode ];
> [ panel setContinuous: YES ];
> [ panel setTarget: sender ]; //myColor
> [ panel setAction: @selector( changeColor:) ];
> [ panel makeKeyAndOrderFront: nil ]; //self
> }
>
> I'd be happy, if someone could point me in the right direction
>
> thanks
> Matthias
> _______________________________________________
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]