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

Re: Vectors?


  • Subject: Re: Vectors?
  • From: "John C. Randolph" <email@hidden>
  • Date: Fri, 3 Aug 2001 00:16:52 -0700

On Friday, August 3, 2001, at 02:42 PM, stuartbryson wrote:

Hi all,

I am trying to create my own shape classes (sphere, cube etc) with an abstract class called shape in order that I implement polymorphism. I need however a container class. Coming from a C++ background, I would normally use the STL vector class to do this. How might one produce a similar result in Obj-C?

NSArray and NSMutableArray if you care whether things stay in the order in which you added them to the collection, NSSet and NSMutableSet if you want to be able to very quickly test for whether something is in the collection.

-jcr

For every complex problem there is an answer that is clear, simple, and wrong. -- H L Mencken


References: 
 >Vectors? (From: stuartbryson <email@hidden>)

  • Prev by Date: I'm probably missing something, but...
  • Next by Date: What is the best to load a picture....
  • Previous by thread: Re: Vectors?
  • Next by thread: Re: Vectors?
  • Index(es):
    • Date
    • Thread