NSArray usage question.
NSArray usage question.
- Subject: NSArray usage question.
- From: "Brian O'Brien" <email@hidden>
- Date: Fri, 6 May 2005 13:24:40 -0600
Is this the correct way to build and use an NSArray?
NSPoint ptArray[plist->getNPolys()];
CPoint p;
for (i=0; i < plist->getNPolys(); ++i)
{
p = plist->getPoint(i);
ptArray[i].x = p.x;
ptArray[i].y = p.y;
}
NSArray *pts = [NSArray arrayWithObjects:ptArray count:i];
NSBezierPath *path = [NSBezierPath bezierPath];
[path appendBezierPathWithPoints:pts count:i];
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden