• 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: Drawing after CGContextClosePath() still appends line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing after CGContextClosePath() still appends line


  • Subject: Re: Drawing after CGContextClosePath() still appends line
  • From: Graham Cox <email@hidden>
  • Date: Wed, 21 Aug 2013 10:49:37 +0200

On 20/08/2013, at 2:51 AM, Rick Mann <email@hidden> wrote:

> Obviously, it can't be changed now, but AddArc() should never have drawn that first line segment. It's inconsistent with what you probably want, and with other methods like CGContextAddLines() or CGContextAddRect().

Depends. In some cases it's really handy that it adds the line - e.g. for drawing round-cornered rectangles where calculating the actual end point of the arc is tedious - instead just use a centre point and radius and it figures out the rest for you.

I guess the engineer decided that these useful cases outweigh those other cases when it's a nuisance.

--Graham


_______________________________________________

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


References: 
 >Drawing after CGContextClosePath() still appends line (From: Rick Mann <email@hidden>)
 >Re: Drawing after CGContextClosePath() still appends line (From: Roland King <email@hidden>)
 >Re: Drawing after CGContextClosePath() still appends line (From: Rick Mann <email@hidden>)
 >Re: Drawing after CGContextClosePath() still appends line (From: Ken Thomases <email@hidden>)
 >Re: Drawing after CGContextClosePath() still appends line (From: Rick Mann <email@hidden>)

  • Prev by Date: Image classes (Re: How to detect a Retina Mac)
  • Next by Date: Re: Variable Number of Parameters in Method
  • Previous by thread: Re: Drawing after CGContextClosePath() still appends line
  • Next by thread: Re: Drawing after CGContextClosePath() still appends line
  • Index(es):
    • Date
    • Thread