Re: Vectors?
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>) |