NSConfused... matrices and NSData

2009-03-29 Thread James Maxwell
Sorry for the long post, but I'm trying to wrap my head around NSData, NSMutableData and matrices. So I made an example to test my (mis)conception of how this all should work. Here it is: - (void)matrixTesting { int numRows = 5; int numCols = 7;

Re: NSConfused... matrices and NSData

2009-03-29 Thread Ken Thomases
On Mar 29, 2009, at 11:43 AM, James Maxwell wrote: Sorry for the long post, but I'm trying to wrap my head around NSData, NSMutableData and matrices. So I made an example to test my (mis)conception of how this all should work. Here it is: - (void)matrixTesting {

Re: NSConfused... matrices and NSData

2009-03-29 Thread Michael Ash
On Sun, Mar 29, 2009 at 12:43 PM, James Maxwell jbmaxw...@rubato-music.com wrote: Sorry for the long post, but I'm trying to wrap my head around NSData, NSMutableData and matrices. So I made an example to test my (mis)conception of how this all should work. There are two ways to store

Re: NSConfused... matrices and NSData

2009-03-29 Thread James Maxwell
Okay, I got it. Thanks, folks. I had seen an example somewhere which, going by Mike's helpful bit of info, must have been in column-major order - so I had things switched around in my head. Actually, when I saw the example it didn't make sense to me, but I just followed it along blindly!