Re: Vectors?
Re: Vectors?
- Subject: Re: Vectors?
- From: Stefan Arentz <email@hidden>
- Date: Fri, 3 Aug 2001 17:10:27 +0200
On Sat, Aug 04, 2001 at 07:42:21AM +1000, 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?
Whoohaa STL! I'm working on a large project that uses STL, boy is it
difficult to get used to their ugly naming conventions and C++ templates :-)
Ok, Vectors with Cocoa NSMutableArray. Not completely the same as an STL
vector, but probably very ok for your project.
Stefan
References: | |
| >Vectors? (From: stuartbryson <email@hidden>) |