• 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: Andy Lee <email@hidden>
  • Date: Wed, 16 Jan 2013 19:45:19 -0500

On Jan 16, 2013, at 6:09 PM, Melvin Walker <email@hidden> wrote:
[...]
>> 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.
>
> Yes, and this is the behavior I want to avoid.
>
> I can turn off the send-to-target behavior easily enough, but I can't turn off the send-a-changeColor:-message behavior.

It looks like Apple really, really doesn't want you to do this. Every sneaky kludge I've thought of is thwarted by limitations of the API.

This makes sense to me. I like that the standard color panel is always synced with the color of the first responder for a consistent user experience at all times in all apps.

So we come to the old question: what are you really trying to do? If it doesn't reveal too much about your project, what are the meanings of the colors in question, and what use case do you have that warrants deviating from the standard behavior?

--Andy

_______________________________________________

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: Changing color in NSColorPanel without message
      • From: Melvin Walker <email@hidden>
References: 
 >Re: Changing color in NSColorPanel without message (From: Melvin Walker <email@hidden>)

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