Re: Multi dimensional arrays, indexing items
Re: Multi dimensional arrays, indexing items
- Subject: Re: Multi dimensional arrays, indexing items
- From: Mark Wridt <email@hidden>
- Date: Tue, 7 Aug 2001 18:29:46 -0700 (PDT)
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
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/