NSColorPanel changes being reflected in multiple NSColorWells
NSColorPanel changes being reflected in multiple NSColorWells
- Subject: NSColorPanel changes being reflected in multiple NSColorWells
- From: Steve Christensen <email@hidden>
- Date: Thu, 26 Jul 2007 09:26:43 -0700
I'm working on an application plug-in that is configured in a modal
window loaded from the plug-in's nib. The window contains a
NSColorWell to display an item color, and that the user can click on
to bring up the NSColorPanel and change the color.
My color well is correctly tracking the current color panel color,
but unfortunately so is a color well in the application's window. It
wasn't intuitively obvious what I should do to prevent the color
panel from notifying all the color wells of changes instead of just
mine. Should I be setting the NSColorPanel setAction: and setTarget:
methods to point to my window's controller, or what?
steve
_______________________________________________
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