NSColorPanel question
NSColorPanel question
- Subject: NSColorPanel question
- From: Matthias Schmidt <email@hidden>
- Date: Mon, 18 Jan 2010 14:39:56 +0100
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@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