Correct way to lay out a TableView's data?

Discussion in 'iPhone/iPad Programming' started by MythicFrost, Feb 16, 2011.

  1. macrumors 68040

    MythicFrost

    Joined:
    Mar 11, 2009
    Location:
    Australia
    #1
    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?
     

Share This Page