Custom NSCell and target/action
Custom NSCell and target/action
- Subject: Custom NSCell and target/action
- From: Vincent Habchi <email@hidden>
- Date: Fri, 19 Nov 2010 15:17:23 +0100
Hi there,
I'm beginning to figure out something but I'd like to have some (even terse) comments.
I have created a custom subclass of NSCell that duplicates the behavior of a NSColorWell: It draws a small colored rectangle inside of its frame, and responds to a click by opening the shared color panel.
However, I would have liked to set my custom cell as the target of the shared color panel action, in order to refresh its color as the user moves inside the color panel. It failed. So the question is: is there a way to do this, or is it mandatory to connect the action to the NSControl object responsible for the cell (in my case, a table view).
Thanks a lot,
Vincent
_______________________________________________
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