title: Creating an NSArray initialized with count N, all of the same object
body: <p>I want to create an NSArray with objects of the same value (say NSNumber all initialized to 1) but the count is based on another variable.  There doesn't seem to be a way to do this with any of the intializers for NSArray except for one that deals with C-style array.</p>
  
  <p>Any idea if there is a short way to do this?</p>
  
  <p>This is what I am looking for:</p>
  
  <pre><code>NSArray *array = [[NSArray alloc] initWithObject:[NSNumber numberWithInt:0]
                                             count:anIntVariable];
  </code></pre>
  
  <p>NSNumber is just one example here, it could essentially be any NSObject.</p>