NSColorWell inside a custom NSCell
NSColorWell inside a custom NSCell
- Subject: NSColorWell inside a custom NSCell
- From: Bryan Hansen <email@hidden>
- Date: Wed, 20 Apr 2011 23:17:09 -0700
I'm trying to develop a gradient control using multiple custom NSCells to control the gradient color locations. I'd like to have an NSColorWell contained within each cell. I have the interactions working correctly as they are all handled by the cell itself but can not seem to get the color wells to draw correctly. Using drawWellInside: has no affect and asking the well to drawRect: (which seems like a bad idea anyway) has strange results, drawing just the frame and always at the control frame's origin (it does not move with the cells as they are updated)
Am I on the right track with this? Is there a better way to get a bunch of movable colorwells within a custom control?
Thanks,
Bryan
_______________________________________________
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