A small (but essential) part of a program I will soon start coding has me stumped... I'll be creating a 2-d array of integers such that an element is less than the element below it and beside it. (Basically this will be a table of random numbers that are just in ascending order, first to the right, then starting at the front of the next line.) I need a data storage type that is compatible with this method of storage.
Secondly, I need a way to neatly display said array in a tabular manner... by row and column as they're stored. The table is for a searching algorithm, so neatness is essential...
I know that NSTableView likes NSMutableArrays, and I could add NSNumbers to that array, but is it possible to add them in the manner that I need to?
So basically I'm asking, what's the best approach to this? If there is no perfect solution, what are other possibilities to get this working?
Thanks in advance,
-Dogcow "moof!"
Secondly, I need a way to neatly display said array in a tabular manner... by row and column as they're stored. The table is for a searching algorithm, so neatness is essential...
I know that NSTableView likes NSMutableArrays, and I could add NSNumbers to that array, but is it possible to add them in the manner that I need to?
So basically I'm asking, what's the best approach to this? If there is no perfect solution, what are other possibilities to get this working?
Thanks in advance,
-Dogcow "moof!"