• 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: 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


References: 
 >Re: Multi dimensional arrays, indexing items (From: Mark Wridt <email@hidden>)

  • Prev by Date: How to log the current user out from within a Cocoa app?
  • Next by Date: Re: NSTextField update and multithreaded app
  • Previous by thread: Re: Multi dimensional arrays, indexing items
  • Next by thread: Re: Multi dimensional arrays, indexing items
  • Index(es):
    • Date
    • Thread