How to update table while in a method
How to update table while in a method
- Subject: How to update table while in a method
- From: Ashley Perrien <email@hidden>
- Date: Fri, 13 Nov 2009 01:20:01 -0600
I have an application that has a table of various internet resources and information on them. What I would like to be able to do is:
for (netResource *resource in anArrayOfResources) {
[resource updateInfo];
[resultsTable reloadData];
}
But it seems that the table refuses to redraw until after everything has been updated. So when I do this process, I get the spinning cursor for a few second (looks like it hung) and then the table updates. I'd prefer the table to update as information comes in. Note that I'm not using any bindings in this.
I tried spinning off the table update into a new NSOperationQueue and that didn't help so I'm assuming spinning the resource update to another queue also wouldn't help either. Any suggestions?
Ashley
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden