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 (Cocoa-dev@lists.apple.com)

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to