Encerrado

iPhone Background Threads or NSOperation

I almost have a completed iPhone application and I have one remaining design defect to tackle.

My application parses an XML blogger feed and is supposed to pass data to a UITableView in batches of 5. This way the first 5 items show in the screen quickly while the remaining can be filled in the table as updated.

I have a model object which contains information about the blogger, feed URL, etc. This object is also responsible for handling the parsing and will post a notification when a batch has been parsed. The view controller that is observing the notification picks up the notification and is supposed to refresh the tableview.

If I set two breakpoints in the debugger: one where the notification is posted, and one where the notification is received what happens is something like this:

Stopped at notification issue (when batch is parsed)

Stopped at view controller observer (to update the tableview)

Stopped at notification issue (when batch is parsed)

Stopped at notification issue (when batch is parsed)

Stopped at notification issue (when batch is parsed)

Stopped at notification issue (when batch is parsed)

Stopped at notification issue (when batch is parsed)

Stopped at view controller observer (to update the tableview)

Stopped at view controller observer (to update the tableview)

Stopped at view controller observer (to update the tableview)

Stopped at view controller observer (to update the tableview)

Stopped at view controller observer (to update the tableview)

I must not have something right with the threading. I also took a stab at using an NSOperation / NSOperationQueue but I couldn't get that working either.

I'm looking for an assessment of the current code and either a good description of what I need to do to get this working properly or an actual code fix.

## Deliverables

I've been struggling with this issue for several weeks and have been unable to resolve on my own.

If we could do a Skype/Teamviewer session to work through the issue that would be fantastic.

Habilidades: Engenharia, MySQL, PHP, Gestão de projetos, Arquitetura de software, Teste de Software

Ver mais: what do i need to do to be a blogger, php 5 assessment, design observer, blogger management, teamviewer 3, project object model, threads, tackle, tableview, model view controller, post batch, object background, looking skype model, post threads, iphone screen fix, data model xml, iphone code update, data feed project using xml, iphone update code, teamviewer code, skype teamviewer, current url code project, blogger xml, data iphone php, xml feed url

Acerca do Empregador:
( 1 comentário ) United States

ID do Projeto: #3016898