Re: Newbie Question: Multidimensional NSMutableArray Creation
Re: Newbie Question: Multidimensional NSMutableArray Creation
- Subject: Re: Newbie Question: Multidimensional NSMutableArray Creation
- From: Cyril Godefroy <email@hidden>
- Date: Mon, 14 May 2001 12:18:53 +0200
Here's the translation:
NSMutableArray anArray = new NSMutableArray();
//bla bla bla fill the NSMutableArray...
NSMutableArray anotherArray = new NSMutableArray();
anArray.addObject(anotherArray);
I have not used Cocoa/Java, so here's a twoliner in objc. You should be
able to translate that into java...
NSMutableArray *theRows = [[NSMutableArray array] retain];
[theRows addObject: [NSMutableArray array: 3]];
This is all pretty basic stuff.
Cyril Godefroy
www.macosxfr.com
homepage.mac.com/cgodefroy