Re: 2D Arrays
Re: 2D Arrays
- Subject: Re: 2D Arrays
- From: Ben Dougall <email@hidden>
- Date: Sat, 7 Jun 2003 23:29:35 +0100
On Saturday, June 7, 2003, at 10:53 pm, email@hidden wrote:
What would be the best way to implement a 2 dimensional (or
multi-dimensional) array in Obj-C/Cocoa?
I know I could use the C-language multiple subscript feature, eg
array[i][j], and give it a class wrapper; I'm wondering if there is a
consensus on the best way to do this as I'm sure it is a topic that
must have already been approached.
2d arrays are just a bunch of usual (1d) arrays in a usual array. i
find '2d', '3d'.. arrays a misleading concept and not very helpful.
so you just put some NSArrays in an NSArray.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.