title: iOS, create object for array
body: <p>I have JSON data coming in using AFNetworking.
  The <code>responseObject</code> holds an array of objects like so: <code>[{"id":"XX", "description":"XX"}, {"id":"XX", "description":"XX"}]</code>. This content is copied across to an <code>NSArray</code>, where by value access is obtained with <code>objectAtIndex: valueForKey:</code>.</p>
  
  <p>I know object-c is overly complicated so I'm guessing that this is wishful thinking, but how would I go about creating a quick object to use in the event that <code>responseObject</code> is nil?</p>
  
  <p>(any committed object-c coders, you'll have to excuse my bluntness. working with higher level languages causes logical ignorance)</p>
  
  <pre><code>if responseObject is nil
    destinationArray= [{id:XX, description:XX}, {id:XX, description:XX}]
  else
    destinationArray = responseObject
  </code></pre>