Correct way to lay out a TableView's data?

Discussion in 'iOS Programming' started by MythicFrost, Feb 16, 2011.

  1. macrumors 68040


    Mar 11, 2009

    I'm setting up a web browser with bookmarks & history, I've had a look at this:

    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