Re: Action isn't sent
Re: Action isn't sent
- Subject: Re: Action isn't sent
- From: Björn Carlström <email@hidden>
- Date: Sun, 4 Jul 2004 21:06:23 +0200
2004-07-04 kl. 20.10 skrev j o a r:
Are you asking why the action method is not called when you call
"setColor:" at the end of the "colorWellClick:" method? I don't think
that the action method is supposed to be called in response to a
programmatic setting of the color, only in response to a user action.
No
If that's not a problem you might try a different approach that I've
used. Set the action method on the color well instead of on the color
panel. When the color well is clicked it will per default open the
color panel and set it to have the same color as the color well - IIRC
- so you don't need to write extra code for that. When the color is
changed in the color panel, it's also changed in it's associated color
well, and at that time the action method on the color well is triggered
- allowing you to perform any custom logic you need at that time.
I'm not using a colorwell. I'm just bringing up the color panel from my
custom cell. As far as I understand the action should be sent as soon
as the user selects a color. I have tried to set continuos to YES so
the action message should be sent all the time while the user changes
the color. The documentation mentions an Apply button in the color
panel that will send the action. I have never seen this Apply button.
I suppose I could use your aproach and keep an hidden colorwell
somewhere but that sounds like a last resort.
Bjvrn
j o a r
On 2004-07-04, at 01.28, Bjvrn Carlstrvm wrote:
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.