NSColorPanel changeColor not called
NSColorPanel changeColor not called
- Subject: NSColorPanel changeColor not called
- From: David Blanton <email@hidden>
- Date: Wed, 24 Feb 2010 23:44:33 -0700
changeColor is listed as a delegate method for NSColorPanel
Here is my code
- (IBAction)color:(id)sender {
NSColorPanel* cp;
cp = [NSColorPanel sharedColorPanel];
[cp setDelegate:self];
[cp setContinuous:YES];
NSLog(@"%@",[cp delegate]);
[NSApp runModalForWindow:cp];
[cp orderOut:cp];
}
- (void)changeColor:(id)sender {
NSLog(@"changeColor");
}
and console output showing the delegate
2010-02-24 23:40:33.810 Customize It[7097:813] <MDlgGrid: 0x1300de80>
but changeColor is never called
Am I missing something obvious?
-db
_______________________________________________
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