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 (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