Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MythicFrost

macrumors 68040
Original poster
Mar 11, 2009
3,944
40
Australia
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.