• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Multi dimensional arrays, indexing items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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/


  • Follow-Ups:
    • Re: Multi dimensional arrays, indexing items
      • From: Brendan Younger <email@hidden>
References: 
 >Re: Multi dimensional arrays, indexing items (From: Finlay Dobbie <email@hidden>)

  • Prev by Date: CGPDFContext
  • Next by Date: Re: Anyone have a fix?: How to make NSButton not invert (gray) when tracking mouse?
  • Previous by thread: Re: Multi dimensional arrays, indexing items
  • Next by thread: Re: Multi dimensional arrays, indexing items
  • Index(es):
    • Date
    • Thread