views:

13

answers:

2

I am very new to Objective C and decided to jump in the deep end. I need to create an narrated ebook app that highlights words as they are spoken. I have all the pieces for my program, I think. I just need to clarify my overall logic before I start totally down the wrong path.

Here is my thought process:

1.Use NSstring to read the text from the text file

2.Store the word timings in an array, (also from a text file?)

3.Use NStimer to highlight the words using the timecodes from the array

4.???

5.Profit.

Am I on the right track, or is there a glaring noob error in my logic?

A: 

just try your logic. If you succeed then let me know too. I also want to create exactly as you.

Rahul Vyas
A: 

sounds feasible, but how are you going to get the timings on the words? Purely by timing it before hand? That is going to be a lot of work if you are dealing with a non trivial amount of words. I wouldn't use a text file to store word timings either, I would use a binary file of time offsets.

Woody