Re: Two dimensional array
Re: Two dimensional array
- Subject: Re: Two dimensional array
- From: "Jay Rimalrick" <email@hidden>
- Date: Thu, 13 Nov 2003 19:27:12 -0500
What if I wanted to float values like 1.2, 3.4 instead of the arrays? I can't seem
to get it to work with
NSArray *root;
root = [[NSArray alloc] initWithObjects:
[[NSArray alloc] initWithObjects: 1.1, 2.2, 3.3, 4.4, 5.5, nil],
[[NSArray alloc] initWithObjects: 10.10, 9.9, 8.8, 7.7, 6.6, nil],
...
nil ];
-jay
>
also you could get rid of the contained array pointers buy doing:
>
>
NSArray *root;
>
root = [[NSArray alloc] initWithObjects:
>
[[NSArray alloc] initWithObjects: @"a", @"b", @"c", @"d", @"e", nil],
>
[[NSArray alloc] initWithObjects: @"f", @"g", @"h", @"i", @"j", nil],
>
...
>
nil ];
>
>
________________________________________________________________
Sent via the WebMail system at 1st.net
_______________________________________________
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.