title: How to get values of a specific key from an array of custom model objects
body: <p>I have an array of custom objects which contains a custom object Address with properties street, area, state, country. </p>
  
  <p>I need to get all the the names of the areas from that array so i did some thing like this.</p>
  
  <pre><code>NSMutableArray *areas = [[NSMutableArray alloc]init];
      for (Address *item in addresses) {
          [areas addObject:item.area];
      }
  </code></pre>
  
  <p>Now areas contain all the names of the area. </p>
  
  <p>Is there any other way to get the all the areas of address items with out looping through the array of addresses (as above), using predicates or some other way.</p>