title: How to add contents of "key" to a NSMutableArray?
body: <p>I have this code (which works just fine):</p>
  
  <pre><code>    [customServicesArray addObject: userPreferences.aCustomServices1];
      [customServicesArray addObject: userPreferences.aCustomServices2];
      [customServicesArray addObject: userPreferences.aCustomServices3];
      [customServicesArray addObject: userPreferences.aCustomServices4];
      [customServicesArray addObject: userPreferences.aCustomServices5];
      [customServicesArray addObject: userPreferences.aCustomServices6];
      [customServicesArray addObject: userPreferences.aCustomServices7];
      [customServicesArray addObject: userPreferences.aCustomServices8];
      [customServicesArray addObject: userPreferences.aCustomServices9];
      [customServicesArray addObject: userPreferences.aCustomServices10];
      [customServicesArray addObject: userPreferences.aCustomServices11];
      [customServicesArray addObject: userPreferences.aCustomServices12];
      [customServicesArray addObject: userPreferences.aCustomServices13];
      [customServicesArray addObject: userPreferences.aCustomServices14];
      [customServicesArray addObject: userPreferences.aCustomServices15];
      [customServicesArray addObject: userPreferences.aCustomServices16];
      [customServicesArray addObject: userPreferences.aCustomServices17];
      [customServicesArray addObject: userPreferences.aCustomServices18];
      [customServicesArray addObject: userPreferences.aCustomServices19];
      [customServicesArray addObject: userPreferences.aCustomServices20];
      [customServicesArray addObject: userPreferences.aCustomServices21];
      [customServicesArray addObject: userPreferences.aCustomServices22];
      [customServicesArray addObject: userPreferences.aCustomServices23];
      [customServicesArray addObject: userPreferences.aCustomServices24];
  
      unsortedCustomArray = customServicesArray;
  </code></pre>
  
  <p>that I'm trying to "streamline" by using this code:</p>
  
  <pre><code>    unsortedCustomArray = [NSMutableArray new];  //  initialize the array
      for (NSUInteger i = 0; i &lt; 24; i++) {
          NSString *key = [NSString stringWithFormat:@"userPreferences.aCustomServices%u",i+1];
      }
  </code></pre>
  
  <p>I want the "contents" of userPreferences.aCustomServices<em>n</em> in the array, but what I'm getting is this in the array:</p>
  
  <pre><code>userPreferences.aCustomServices1,
  userPreferences.aCustomServices2,
  userPreferences.aCustomServices3,
  userPreferences.aCustomServices4,
  userPreferences.aCustomServices5,
  userPreferences.aCustomServices6,
  userPreferences.aCustomServices7,
  userPreferences.aCustomServices8,
  userPreferences.aCustomServices9,
  ... and so on...
  </code></pre>
  
  <p>How do I change the code so it adds the <em>contents</em> of the userPreferences.aCustomServices objects?</p>