• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How can I draw a custom bezel/background for an NSSegmentedCell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Returning value from detached NSThread selector with multiple arguments.
  • Next by Date: Re: Returning value from detached NSThread selector with multiple arguments.
  • Previous by thread: Re: Returning value from detached NSThread selector with multiple arguments.
  • Next by thread: Tiger vs Leopard Printing
  • Index(es):
    • Date
    • Thread