• 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: Newbie: basic array questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie: basic array questions


  • Subject: Re: Newbie: basic array questions
  • From: Dustin Voss <email@hidden>
  • Date: Wed, 30 Apr 2003 21:38:38 -0700

On Monday, April 28, 2003, at 11:47 AM, Philip D Riggs wrote:

Forgive this posting of a basic Obj-C question, but I just am not getting
it, even after looking at Apple documentation and several Obj-C programming
books.
[snip]
2. I have a 2-dimensional grid of cells, each with a relative location on a
grid and an idividual value. In C this was implemented as a two-dimensional
array (cell [x] [y]) with the value being stored at that x-y location. How
can I set up a 2-D array in Obj-C?

You can do a matrix just as in C, but Cocoa doesn't provide this data type in class form. But a guy named Kritter wrote one. He describes how he went about in pages linked to http://cocoadev.com/index.pl?DesignMatrix. The class itself is available in http://www.geocities.com/kritter_cocoadev/KTMatrix/.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >Newbie: basic array questions (From: "Philip D Riggs" <email@hidden>)

  • Prev by Date: Re: Disabling NSToolbar toggle via "Pill" White Button??
  • Previous by thread: RE: Newbie: basic array questions
  • Next by thread: embedding a dictionary in a dictionary.
  • Index(es):
    • Date
    • Thread