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:
-(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]

Reply via email to