Objective-C Array/List Question -


What is the best practice, even in general programming, when you have undefined, potentially infinite, you need The quantity of objects is not defined in an array but in the range. Can you define an endless array in Objective-C that you can keep things moving forward, like other lanaguages ​​have a list item.

Thanks for any help.

Well, your question reflects purpose-c, but if you are using cocoa frameworks If so, use NSMutableArray class

to use it:

  [NSMutableArray array]; [Array addObject: anObject];  

Check out your Docs here:


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -