Hi,
I'm setting up a web browser with bookmarks & history, I've had a look at this:
http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/TableView_iPhone/TableViewAndDataModel/TableViewAndDataModel.html
And I'm wondering what's the best way to do this. Currently, I'm using NSMutableDictionaries within NSMutableDictionaries.
I.E, NSMutableDictionary root which is the root view; in root will be other NSMutableDictionaries and they will either be a bookmark (holding URL data, title, etc.), or a folder containing other bookmarks.
That makes it easy as I can just do [root writeToFile] and then [root initWithContentsOfFile] to save/load this data.
Would this be a good way to do what I'm doing? Or is there a better way?
I'm setting up a web browser with bookmarks & history, I've had a look at this:
http://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/TableView_iPhone/TableViewAndDataModel/TableViewAndDataModel.html
And I'm wondering what's the best way to do this. Currently, I'm using NSMutableDictionaries within NSMutableDictionaries.
I.E, NSMutableDictionary root which is the root view; in root will be other NSMutableDictionaries and they will either be a bookmark (holding URL data, title, etc.), or a folder containing other bookmarks.
That makes it easy as I can just do [root writeToFile] and then [root initWithContentsOfFile] to save/load this data.
Would this be a good way to do what I'm doing? Or is there a better way?