• 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: NSColorPanel changeColor not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSColorPanel changeColor not called


  • Subject: Re: NSColorPanel changeColor not called
  • From: Graham Cox <email@hidden>
  • Date: Thu, 25 Feb 2010 18:30:28 +1100

Ah, your reply prompted me to review the documentation, which I believe is in error.

It's not the delegate that gets sent this message, it's the panel's target. use -setTarget: instead. -changeColor: is also sent to the responder chain regardless.

The documentation lists -changeColor: under "delegate methods" but the panel only inherits the delegate methods of NSWindow, etc.

--Graham





On 25/02/2010, at 6:21 PM, David Blanton wrote:

> Well, no.
>
> I have run it
>
> 	modal from a modal panel
> 	non-modal from a modal panel
> 	non-modal from a non-modal panel
>
> changeColor is never called.
>
> I am stumped and going to pour a glass of wine and play a game of chess !
>
> - db
>
> On Feb 24, 2010, at 11:53 PM, Graham Cox wrote:
>
>>
>> On 25/02/2010, at 5:44 PM, David Blanton wrote:
>>
>>> Am I missing something obvious?
>>
>>
>> Generally apps don't run the color panel modally. I believe there is a way to do it, I've seen it in some apps with an added OK/Cancel button, though it seems rare and weird. It may be that running it this way works differently, or maybe what you're doing is just unsupported.
>

_______________________________________________

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: NSColorPanel changeColor not called
      • From: David Blanton <email@hidden>
References: 
 >NSColorPanel changeColor not called (From: David Blanton <email@hidden>)
 >Re: NSColorPanel changeColor not called (From: Graham Cox <email@hidden>)
 >Re: NSColorPanel changeColor not called (From: David Blanton <email@hidden>)

  • Prev by Date: Re: NSColorPanel changeColor not called
  • Next by Date: Re: Looking for info on anti-piracy and trial-mode techniques for my app . . .
  • Previous by thread: Re: NSColorPanel changeColor not called
  • Next by thread: Re: NSColorPanel changeColor not called
  • Index(es):
    • Date
    • Thread