• 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
Multidimensional arrays
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multidimensional arrays


  • Subject: Multidimensional arrays
  • From: Julio Cesar Silva dos Santos <email@hidden>
  • Date: Sun, 19 Jun 2005 11:33:48 -0300

I was wondering if it is possible to create a multidimensional array in Objective-C the simple way it can be done in C, like this:

static int table[2][10] = {{0,1,2,3,4,5,6,7,8,9},{0,2,4,6,8,1,3,5,7,9}};

I ask this because NSArray are built with objects so I could create two arrays with the data I want and then a third array to hold the other two. Am I taking the right approach? Or maybe I should work with a dictionary with arrays inside?

Thanks for help,

Julio Cesar Santos
email@hidden
eMac 1GHz ComboDrive
640MB RAM
Linux User #359973

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Multidimensional arrays
      • From: James Bucanek <email@hidden>
  • Prev by Date: Re: Does NSURLConnection automatically decode gzip'd data?
  • Next by Date: Re: Stupid Question: Changing location of application support folder
  • Previous by thread: Re: Stupid Question: Changing location of application support folder
  • Next by thread: Re: Multidimensional arrays
  • Index(es):
    • Date
    • Thread