I need a background operation to be scheduled every 10 minutes or so. The operation consists of gather objects from core data and uploading their information to a webservice not to change them in any way.
The approach I am thinking of is to create a nstimer inthe app delegate which fires every 10 minute. This will trigger a NSThread which will run the operation in the background not causing any disturbance for the user. The thread wil here after exit normally.
I have been looking into starting a thread and just set it to sleep after each time the operation is executed but the timer approach seemed to be the most clean.
Other suggestion on the web is to use runloops however I cannot see the use in this specific case.
Do anyone have a suggestion or want to tell how they tackle a similar situation.
Regards