Re: NSColorPanel question
Re: NSColorPanel question
- Subject: Re: NSColorPanel question
- From: Corbin Dunn <email@hidden>
- Date: Mon, 18 Jan 2010 08:53:57 -0800
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@hidden)
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:
This email sent to email@hidden