NSCell bezel drawing
NSCell bezel drawing
- Subject: NSCell bezel drawing
- From: Keith Duncan <email@hidden>
- Date: Fri, 6 Jul 2007 01:52:56 +0100
What is the best way to draw a rounded bezel like the one
NSSearchFieldCell draws. I'm aware of the private NSTextFieldCell
method that draws it in this case but I need to replicate it without
subclassing NSTextFieldCell.
I've looked at the functions in NSGraphics more specifically
NSDrawTiledRects which would seem to work in for a rectangular bezel
but I need a rounded bezel. So I considered clipping the path to a
rounded rectangular bezier path but the shadow understandably wasn't
drawn at the edge of the clipping path.
- Keith
_______________________________________________
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