• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSColorPanel changeColor not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSColorPanel changeColor not called
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: Embedded frameworks and hard links
  • Next by Date: Re: NSColorPanel changeColor not called
  • Previous by thread: Re: Embedded frameworks and hard links
  • Next by thread: Re: NSColorPanel changeColor not called
  • Index(es):
    • Date
    • Thread