Objective C -- property lists or text files?
Posted
by William Jockusch
on Stack Overflow
See other posts from Stack Overflow
or by William Jockusch
Published on 2010-01-21T01:59:19Z
Indexed on
2010/04/12
9:03 UTC
Read the original article
Hit count: 351
I need to import a list of about 40,000 words into my Iphone app. The list will be the same every time the app starts. It seems that property lists and text files are reasonable options.
Any reason to prefer one over the other? For reasons I don't understand, finder says the property list on my mac is 1MB, while the text file is only 328K. The property list is an NSMutableArray of NSMutableArrays of NSStrings. The text file is a plain txt file. But amount of time the app takes to start up is also important. If I read in a text file, my app would have to do some simple processing on it each time it starts.
Thanks.
© Stack Overflow or respective owner