Drill Down Array created at runtime with Persistence
Hey. I have bought and read 3 books- Beginning Iphone 3 Dev, iPhone SDK, and Programming in Objective C 2.0. I have learned a lot, but am completely frustrated and am asking for some help. All these books give great starting points, but I want to move further in my development and have hit a brick wall.
What I want to do is this:
Create a Root Level array that will contain folders that will be created during runtime by the user. Each of these folders, then in turn, needs to be able to house an array of items. If the user would like, they should be able to house both folders and items within each folder. The folders will be mutable arrays, and the items will be dictionaries. Also, this information created at runtime needs to be saved. The idea behind this is much like the "bookmarks" setup on the iphone.
What I have been able to do thus far:
Create the Root Level array with the user adding more folders to the array at runtime. I can add, delete, and move all the items within the Root Level array, and I can save the data. However, when I go to the next drill down, I can add and delete the items, but I can not save the information.
I am at my wits end and have sunk days into this problem. I am pretty sure it shouldn't be this complicated. At least I hope so. Im sure many of you struggled with this when you began as well. I don't think buying another book will do any good in the near future, so I am turning to the masses for support.
Thanks
Nate
|