• 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
Re: Can anyone suggest a way to do this?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can anyone suggest a way to do this?


  • Subject: Re: Can anyone suggest a way to do this?
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 14 Feb 2009 17:18:03 -0500

On Fri, Feb 13, 2009 at 10:52 PM, Graham Cox <email@hidden> wrote:
> When stroking a path, I can clip to the inside or the outside of the path to
> get a stroke inside or outside of the path's edge. But if the path is
> open-ended, this doesn't work. Instead what I need is clipping to the "left"
> or "right" of a path, not to the "inside" or "outside".

I'd either use NSShadow like Benjamin said, or if that doesn't work
I'd clip a translated version of the path, draw the stroke, and then
pop the graphics context and draw the original path with no stroke.

--Kyle Sluder
_______________________________________________

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: Can anyone suggest a way to do this?
      • From: Graham Cox <email@hidden>
References: 
 >Can anyone suggest a way to do this? (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSTextField's subclass...
  • Next by Date: Re: NSTreeController - Remove Children
  • Previous by thread: Re: Can anyone suggest a way to do this?
  • Next by thread: Re: Can anyone suggest a way to do this?
  • Index(es):
    • Date
    • Thread