• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Two dimensional array
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Two dimensional array
      • From: Prachi Gauriar <email@hidden>
  • Prev by Date: What's NSError **?
  • Next by Date: Re: Two dimensional array
  • Previous by thread: Re: Two dimensional array
  • Next by thread: Re: Two dimensional array
  • Index(es):
    • Date
    • Thread