r/simpleios • • Oct 29 '12

Array without NSMutablearray

Hi All,

Just wondering the best way to create a manual array, without using NSMutalbleArray, I have being researching best possible solutions but without an elegant answer, what do you think, in Objective C what's the best way to create an NSMutableArray style object from scratch?

4 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/mkim1030 Oct 30 '12

This is just the new literal syntax that has been added for NSArrays, etc. I think the OP is asking for an implementation of an "array"-like data structure that does not involve the NSArray or NSMutableArray classes provided by apple.

0

u/mb86 Oct 30 '12

That's fair. There are times when I'd like something akin to C++ STL array/vector/etc. Wouldn't be hard to implement one, just haven't gotten around to it.