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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to