title: How to print the contents of NSSet?
body: <p>I query and get a NSSet which contains customer address from web. Since I'm new to objective c development I don't know how to get country,zip code etc from that set.So I followed <a href="https://stackoverflow.com/questions/15382089/objective-c-how-to-print-nsset-on-one-line-no-trailing-comma-space">Objective-C How to print NSSet on one line (no trailing comma / space)</a> but my output is in the form of object "0x7f99997b7a50". How can I print all the strings in the set? Thanks in advance.</p>
  
  <p>I tried like this </p>
  
  <pre><code>NSArray *ar = [customer.addresses allObjects]; 
  for (int i = 0; i&lt;ar.count; i++) 
  { 
      NSLog(@"arr %@",ar[i]); 
  } 
  </code></pre>
  
  <p>But the output is arr:</p>
  
  <pre><code> &lt;BUYAddress: 0x7fd451f6e050&gt;
  </code></pre>