title: addObject to NSArray
body: <p>I am a newbe and have been working all day readying/watching/searching for a solution to this. The following code works, but now how do I add an integer to the array?  </p>
  
  <pre><code>    //this works
  
      NSArray *array = [NSArray arrayWithObjects:[NSNumber numberWithInt:10],
          [NSNumber numberWithFloat:25.96], @"Hello World", nil]; 
  
     for (id obj in array)
      NSLog(@"%@", obj);
  </code></pre>
  
  <p>The following returns error: Use of undeclared identifier 'obj'</p>
  
  <pre><code>    NSArray *array = [NSArray arrayWithObjects:[NSNumber numberWithInt:10],
         [NSNumber numberWithFloat:25.96], @"Hello World", nil]; 
  
      for (id obj in array) 
          [array addObject:7];
          NSLog(@"%@", obj);
  </code></pre>