• 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: NSGraphicsContext PDF crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSGraphicsContext PDF crash


  • Subject: Re: NSGraphicsContext PDF crash
  • From: Graham Cox <email@hidden>
  • Date: Tue, 4 Jan 2011 12:14:07 +1100


On 04/01/2011, at 11:10 AM, Wesley Smith wrote:

> NSBezierPath *p = [[NSBezierPath bezierPath] retain];
> [p lineToPoint:NSMakePoint(100, 100)];  // <----------------- crashes here


The 'crash' presumably is an exception stating 'no current point for operation' or words to that effect.

You can't do a lineToPoint as the first op in a bezier path - it needs a starting point. The first op needs to be a moveToPoint or something that implies one, such as appending a rect, etc.

--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

  • Follow-Ups:
    • Re: NSGraphicsContext PDF crash
      • From: Wesley Smith <email@hidden>
  • Prev by Date: Re: NSGraphicsContext PDF crash
  • Next by Date: Re: NSGraphicsContext PDF crash
  • Previous by thread: Re: NSGraphicsContext PDF crash
  • Next by thread: Re: NSGraphicsContext PDF crash
  • Index(es):
    • Date
    • Thread