• 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 changes being reflected in multiple NSColorWells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: [OT] Re: Is pointer syntax logical?
  • Next by Date: Re: Document-based cocoa application with 2 .nibs
  • Previous by thread: Re: Filling bezier path with the image
  • Next by thread: Absolute path to the Application
  • Index(es):
    • Date
    • Thread