• 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: using appendBezierPathWithPoints
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: using appendBezierPathWithPoints
      • From: "William Zumwalt" <email@hidden>
References: 
 >using appendBezierPathWithPoints (From: "William Zumwalt" <email@hidden>)
 >Re: using appendBezierPathWithPoints (From: Andrew Farmer <email@hidden>)
 >Re: using appendBezierPathWithPoints (From: "William Zumwalt" <email@hidden>)

  • Prev by Date: Re: using appendBezierPathWithPoints
  • Next by Date: Re: using appendBezierPathWithPoints
  • Previous by thread: Re: using appendBezierPathWithPoints
  • Next by thread: Re: using appendBezierPathWithPoints
  • Index(es):
    • Date
    • Thread