Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 | 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>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.