Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSColorPanel changes being reflected in multiple NSColorWells



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.