title: Passing around sets of data
body: <p>A question that has pondered me for the last while. I am primarily a .net developer who dabbles in Objective-C for iPhone and Mac.</p>
  
  <p>How do you go about sending "datasets" between methods in objective-c. For example in C# you can populate a custom class with data and pass it around in a List of type custom class. EG if you had a customer class you would just do something like:</p>
  
  <pre><code>List&lt;Customer&gt; customers = DataLayer.GetAllCustomers();
  </code></pre>
  
  <p>The only way I can see how this could be done in obj-c would be to populate an NSArray with custom objects? Is this an efficient way to do things? Any other recommendations? I am using sqlite as the database/data I want to return.</p>