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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to