What would be a convenient way to store text files, such that it would make it easy to create objects from them in iOS?
For example:
- spreadsheets -> XML -> NSObject subclass (the problem with this one is that Google Docs Spreadsheets can only be exported to OpenDocument Spreadsheets XML files, which are very inconvenient to parse)
- csv -> NSObject subclass (csv is too error-prone)
Sample data to be stored:
- Name – Number – Email
- Alice – 012345 – Alice@Alice.com
- Bob – 78910 – Bob@Bob.com
Sample class to be created:
@interface Person : NSObject
{
NSString *name;
NSString *number;
NSString *email;
}
Thank you
Assuming you only have plaintext data here’s what I would do:
This process can also be automated using AppleScript.