Re: Multidimensiaon Arrays in Cocoa
Re: Multidimensiaon Arrays in Cocoa
- Subject: Re: Multidimensiaon Arrays in Cocoa
- From: Rob Rix <email@hidden>
- Date: Sun, 23 Sep 2001 07:56:05 -0400
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am I missing something or are there no multidimensional arrays in Cocoa's
NSArray? What do we do, just implement them the old fashioned way with
Objective-C?
There's no NS2DArray if that's what you're asking, but it's easy enough to
take an array, and fill it with other arrays:
[array addObject:otherArray];
[array addObject:thirdArray];
[otherArray addObject:something];
[otherArray addObject:someOtherThing];
[thirdArray addObject:blah];
[thirdArray addObject:blahBlah];
Of course, loops will probably make the whole deal more straightforward.
- -- Rob
This message will self-destruct.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see
http://www.gnupg.org
iD8DBQE7rc3inZTWcucI1tgRAlHtAJkBSEpRkuoQcS1iUfM8Epm4mh1zDQCfZ8Tn
alVCnKzZt68KdtSnT9LLZ9E=
=rxSe
-----END PGP SIGNATURE-----