• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How to update table while in a method
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to update table while in a method
      • From: Graham Cox <email@hidden>
  • Prev by Date: Re: [Q] copy operation and authorization
  • Next by Date: Re: How to update table while in a method
  • Previous by thread: Re: can't read NSMenuItem titles from NSMenu's below first NSMenu
  • Next by thread: Re: How to update table while in a method
  • Index(es):
    • Date
    • Thread