title: Objective C - How to do add/remove structs to array dynamically
body: <p>I need to be able to add and remove an arbitrary number of points to an array. In C++ I could do this easily using <code>vector</code> which allows me to add and remove items of any type. </p>
  
  <p>I know I could store structs in an NSMutableArray using the NSValue class, but I would prefer a faster method than creating and destroy NSValue objects constantly. Is there something similar to the <code>vector</code> class in Objective-C or is there another way to add and remove my structs to arrays (I would prefer not to use Objective C++)? Or am I stuck with NSMutableArray and NSValue.</p>
  
  <p><strong>EDIT</strong>: NSMutableData seems like a possible solution.</p>