Re: Multi dimensional arrays, indexing items
Re: Multi dimensional arrays, indexing items
- Subject: Re: Multi dimensional arrays, indexing items
- From: Finlay Dobbie <email@hidden>
- Date: Sat, 4 Aug 2001 00:16:49 +0100
On Friday, August 3, 2001, at 10:16 pm, Mark Wridt wrote:
I need to be able to point to and compare or calculate
an element in (C++-like) fields[i][j], that is,
"Bill" is in fields[1][1] and "6550" is fields[2][2]..
Create an NSArray and add other arrays to it. that way, you can do
something like:
[[myBigArray objectAtIndex:i] objectAtIndex:j]
not as neat as myBigArray[i][j], but it'll do :-)
there might be another, better way of doing this, though.
-- Finlay