Re: Newbie: basic array questions
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 | cocoa-dev@lists.apple.com Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev Do not post admin requests to the list. They will be ignored.
participants (1)
-
Dustin Voss