how to make a explorer like logic in Obj C for iphone
Posted
by Ekra
on Stack Overflow
See other posts from Stack Overflow
or by Ekra
Published on 2010-06-02T07:29:34Z
Indexed on
2010/06/02
7:33 UTC
Read the original article
Hit count: 465
Hi friends,
To make the query simple first we can take example:- If we open the explorer in our Windows desktop how it shows us the tree. As we keep on clicking the tree it get expanded and shows the file in it.
The same way I want to show a explorer which gets expanded as the user clicks on it(I want to get the business logic the UI is simple).
The information of the explorer i.e. which folder has what files come in a XML format to me. I have 2 options of getting the XML either I can get the whole XML at one query(but I guess this might slow the application if the XML is quite big).
OR
I can get the XML for every list like first only the root structure then if user clicks on any folder in root I can get the list(the files or folders inside that folder) of that particular folder.
Now the question is What would be the approach to implement both the method and which would be the best.
Should I need to create some dictionary to maintain the link of the files like which file is inside what. I am not able to get as how I would be able to link all the files.
Any hint or direction would be highly appreciated.
Thanks in advance
© Stack Overflow or respective owner