Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
Reading, displaying and quering data from file using objective-c
I am working on a story book app which contains multiple pages & multiple character dialogues per page. I have to dynamically display the character dialogues as dynamic speech bubbles. I am thinking of storing the narration text and character dialogue(s) text into a text or xml file in following format:
[Page1_NARRATION] text=This is the narration text for Page 1. audio=Audio/Page1_STORY_NARR.mp3
[Page1_Character1_Dialogue1] text=This is the Page1 Character1 Dialogue1. audio=Audio/Page1_Character1_Dialogue1.mp3
[Page1_Character1_Dialogue2] text=This is the Page1 Character1 Dialogue2. audio=Audio/Page1_Character1_Dialogue2.mp3
[Page1_Character2_Dialogue1] text=This is the Page1 Character2 Dialogue1. audio=Audio/Page1_Character2_Dialogue1.mp3
[Page2_NARRATION] text=This is the narration text for Page 2. audio=Audio/Page2_STORY_NARR.mp3
[Page2_Character1_Dialogue1] text=This is the Page2 Character1 Dialogue1. audio=Audio/Page2_Character1_Dialogue1.mp3
[Page2_Character1_Dialogue2] text=This is the Page2 Character1 Dialogue2. audio=Audio/Page2_Character1_Dialogue2.mp3
[Page2_Character2_Dialogue1] text=This is the Page2 Character2 Dialogue1. audio=Audio/Page2_Character2_Dialogue1.mp3
Now I would have to read this file and populate and display character dialogues on every page appropriately. What is the best approach to do so? Should I be storing these in Text file or XML file? I think reading the file every time I am displaying the dialogues would be too much, how can I read once and cache it and query some array/dictionary/something-else every time I have to display the text?