Note that there are some explanatory texts on larger screens.

plurals
  1. POOS X app tableview datasource updating but not reloading in tableView
    text
    copied!<p>I have a Mac OS X app which populates a <code>tableView</code> with data from an external web service. If I log into my app, I can add new records, delete them, etc, and my call to <code>[tableView reloadData]</code> works exactly as I would anticipate.</p> <p>Here's what puzzles me. If I log into my app (simultaneous login from two different instances - one running as an app on my machine, and one running in debug mode from Xcode) I can see the data I expected. However, if I create a new record in one instance of the app it does not load when <code>[tableView reloadData]</code> is called. The strange thing is, if I look at the data coming back from the web server it does contain the new or updated records. They just do not display.</p> <p>If I log out of the other instance of the app and sign back in, boom - I see the new record. Again, if I add a record somewhere it appears in the data stream (which I have a method <code>[self getData]</code>) but when the <code>[tableView reloadData]</code> is called it still does not display the entry.</p> <p>What would cause the <code>tableView</code> to not display the new data - despite its source <code>NSMutableArray</code> being updated appropriately? I've confirmed that the app is seeing the appropriate data:</p> <pre><code>2011-12-04 16:12:40.086 Workshop Manager[8591:707] Loading tickets from API 2011-12-04 16:12:40.711 Workshop Manager[8591:707] Load return_data into tickets and filtered_tickets 2011-12-04 16:12:40.711 Workshop Manager[8591:707] App currently has 8 tickets loaded 2011-12-04 16:13:20.437 Workshop Manager[8591:707] Refresh button pushed 2011-12-04 16:13:20.438 Workshop Manager[8591:707] Removing all existing tickets 2011-12-04 16:13:20.438 Workshop Manager[8591:707] Loading tickets from API 2011-12-04 16:13:20.774 Workshop Manager[8591:707] Load return_data into tickets and filtered_tickets 2011-12-04 16:13:20.774 Workshop Manager[8591:707] App currently has 9 tickets loaded </code></pre> <p>Since the app is clearly loading the new dataset, what else am I missing? Any advice would be appreciated.</p> <p>Thanks for your time!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload