title: NSMutableArray Shared Instance always return just last object
body: <p>i'm confusing about NSMutablearray addobject, i try to make  shared instance nsmutable array like this:</p>
  
  <p>1.Shared instance</p>
  
  <pre><code>+ (netra*)someInstance
  {
      if (sharedObject == nil) {
          sharedObject = [[super allocWithZone:NULL] init];
      }
      return sharedObject;
  }
  </code></pre>
  
  <p>1.1 Method to insert</p>
  
  <pre><code>+(void) setStock:(NSInteger *)stock{
      // Ensure we are using the shared instance
      netra *shared = [netra sharedInstance];
      [shared.stockInits addObject:stock];
  
  }
  </code></pre>
  
  <p>1.3 Method to call nsmutablearray</p>
  
  <pre><code>+(NSMutableArray *) getStock{
      // Ensure we are using the shared instance
      netra *shared = [netra sharedInstance];
       return shared.stockInits ;
  }
  </code></pre>
  
  <p>2.Method to insert</p>
  
  <pre><code>-(void) some{
  for(int x=0;x&lt;=1000;x++){
      [netra setStock:i];
   }
  }
  </code></pre>
  
  <p>3. Method to call from other controller </p>
  
  <pre><code>for (int x=0; x&lt;=[netra getStock].count;x++){
  nslog (@"i--------&gt;%d",x);
  }
  </code></pre>
  
  <p>the log should be show 0-1000 right??? but why its always return 1000......1000 ? is that any wrong in my code?</p>