• 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
Re: Changing color in NSColorPanel without message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing color in NSColorPanel without message


  • Subject: Re: Changing color in NSColorPanel without message
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 16 Jan 2013 21:37:10 +0000

On 16 Jan 2013, at 20:47, Melvin Walker <email@hidden> wrote:

> Is it possible to programmatically change color (using -setColor:) in NSColorPanel without it sending a changeColor: message to the first responder?
>
> We'd like it to just reflect a color change without telling the responder chain about it.
>

see docs Choosing Colors With Color Wells and Color Panels

When you select a color in the panel, NSColorPanel sends a changeColor: message to the first responder. It also sends its action message (set by setAction:) to its target object (set by setTarget:), provided that neither the action nor the target is nil. NSColorPanel also sends its action to its target whenever you select a color in the color panel.

Regards

Jonathan Mitchell
Mugginsoft LLP







_______________________________________________

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

References: 
 >Changing color in NSColorPanel without message (From: Melvin Walker <email@hidden>)

  • Prev by Date: Override runModalSavePanelForSaveOperation
  • Next by Date: Re: Override runModalSavePanelForSaveOperation
  • Previous by thread: Changing color in NSColorPanel without message
  • Next by thread: Re: Changing color in NSColorPanel without message
  • Index(es):
    • Date
    • Thread