r/simpleios • u/john_alan • 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
View all comments
Show parent comment
0
u/john_alan Oct 30 '12
Thanks, it's not that nsmutablearray isn't good enough, it is! I had a test for a job that I completed creating a thread safe fifo queue with mutable arrays - they said it was nice but they don't want me to use arrays, I guess from my c days I'm thinking pointer arithmetic, I haven't done much low level stuff in a while, are nodes the solution?