Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gekko513

macrumors 603
Original poster
Oct 16, 2003
6,301
1
What are good options for storing types that aren't NSObjects in an array type structure with dynamic size?

I guess I could use NSMutableArray and box the types in objects for instance with the NSStringFromRect type functions, but that sounds like quite some overhead and I need this to go fast.

Edit: Found the answer:
Wrap each NSRect in an NSValue, and use an NSMutableArray as usual.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.