Re: Multi dimensional arrays, indexing items
Re: Multi dimensional arrays, indexing items
- Subject: Re: Multi dimensional arrays, indexing items
- From: Brendan Younger <email@hidden>
- Date: Thu, 9 Aug 2001 00:55:35 -0500
On Tuesday, August 7, 2001, at 08:29 PM, Mark Wridt wrote:
Finlay.
Your method seems resonable, but produces a
"[NSConstantString objectAtIndex:]: selector not
recognized" error.
Any clue why?
Mark
--- Finlay Dobbie <email@hidden>
wrote:
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
myBigArray should be filled with NSArrays which are in turn filled with
NSStrings. myBigArray -> myLittleArray -> myString.
Brendan Younger