title: Array of pointers in Objective-C using NSArray
body: <p>I am writting program for my iphone and have a qestion.<br>
  lets say i have class named my_obj</p>
  
  <pre><code>class my_obj  
  {  
    NSString  *name;  
    NSinteger  *id;  
    NSinteger  *foo;  
    NSString   *boo;  
  }  
  </code></pre>
  
  <p>now i allocate 100 objects from type my_obj and insert them to array from type NSArray.<br>
  then i want to sort the Array in two different ways. one by the name and the second by<br>
  the id.  </p>
  
  <p>i want to allocate another two arrays from type NSArray  </p>
  
  <pre><code>*arraySortByName     
  *arraySortById  
  </code></pre>
  
  <p>what i need to do if i just want the sorted arrays to be referenced to the original array<br>
  so i will get two sorted arrays that point to the original array (that didnt changed!)<br>
  i other word i dont want to allocate another 100 objects to each sorted array.  </p>