Re: using appendBezierPathWithPoints
Re: using appendBezierPathWithPoints
- Subject: Re: using appendBezierPathWithPoints
- From: Andrew Farmer <email@hidden>
- Date: Fri, 13 Jul 2007 17:52:17 -0700
On 13 Jul 07, at 17:40, William Zumwalt wrote:
1. Your code treats 'points' as an array of arrays of NSPointArrays.
This is almost certainly wrong.
2. calloc().
I've been looking at pointers to arrays trying to figure out where
I've gone
wrong. I'm still not sure if I've got the correct number of
pointers here. I
think it is. But I'm still having a problem showing the correct
values in my
graph.
This is how I'm stuffing NSPoints into an NSPointArray which is
typedef'd to
NSPoint *.
<...>
NSPointArray points;
<...>
// And I populate them as such ...
NSPoint point = NSMakePoint(x, y);
points[pointCount] = &point;
pointCount++;
The second line should be throwing a type warning. Fix it and your
code will probably start working.
_______________________________________________
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