• 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
NSArray usage question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSArray usage question.
      • From: Thomas Lachand-Robert <email@hidden>
    • Re: NSArray usage question.
      • From: Shawn Erickson <email@hidden>
    • Re: NSArray usage question.
      • From: Ondra Cada <email@hidden>
    • Re: NSArray usage question.
      • From: Nick Zitzmann <email@hidden>
    • Re: NSArray usage question.
      • From: Sherm Pendley <email@hidden>
    • Re: NSArray usage question.
      • From: Scott Stevenson <email@hidden>
    • Re: NSArray usage question.
      • From: Seth Willits <email@hidden>
    • Re: NSArray usage question.
      • From: Thomas Davie <email@hidden>
  • Prev by Date: Re: Function to write to one pixel
  • Next by Date: Re: NSOutlineView problem
  • Previous by thread: Re: NSTextView drawing background
  • Next by thread: Re: NSArray usage question.
  • Index(es):
    • Date
    • Thread