How can I draw a custom bezel/background for an NSSegmentedCell?
How can I draw a custom bezel/background for an NSSegmentedCell?
- Subject: How can I draw a custom bezel/background for an NSSegmentedCell?
- From: Jim Correia <email@hidden>
- Date: Wed, 7 Jan 2009 20:17:04 -0500
I have an NSSegmentedControl for which I'd like to draw a custom
background or bezel for the overall control.
Normally I'd do this by overriding -drawWithFrame:iinView: or -
drawInteriorWithFrame:inView: to do this.
However, if I do this for NSSegmentedCell, I also bypass all the extra
work the superclass does for me (including laying out the segment
items, setting up tooltip rects, etc.)
Based on the comment above -interiorBackgroundStyleForSegment: in the
header, which says:
This is both an override point and a useful method to call. A segmented
cell that draws a custom bezel would override this to describe that
surface.
it seems that someone things I should be able to draw a custom bezel
for the segmented cell.
How should I do this?
- Jim
_______________________________________________
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