View Full Version : Mutable array for NSRect and similar types.

Aug 14, 2006, 03:35 PM
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.

Aug 14, 2006, 11:25 PM
Good to know. I always wondered what NSValue was used for.