• 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
NSCell bezel drawing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: NSCell bezel drawing
      • From: glenn andreas <email@hidden>
    • Re: NSCell bezel drawing
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: Re: How to support an Application with International languages.
  • Next by Date: Re: NSCell bezel drawing
  • Previous by thread: Re: NSNumberFormatterSpellOutStyle and localization
  • Next by thread: Re: NSCell bezel drawing
  • Index(es):
    • Date
    • Thread