• 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
Re: NSTextField too slow to update
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField too slow to update


  • Subject: Re: NSTextField too slow to update
  • From: Steve Christensen <email@hidden>
  • Date: Sat, 22 Aug 2009 19:09:00 -0700

On Aug 22, 2009, at 6:41 PM, PCWiz wrote:

I have a large list of files that are being copied in my app, and after each file I need it to update the NSTextField so that it reads something like this:

Processing file X of X

The problem is that the text field is way too slow in updating its value. So slow infact that nothing appears on the text field until all the files have been copied.

Any faster way to do this?

As Kyle has already mentioned, you're asking the same question as in your NSProgressIndicator thread.


Have you thought of changing your code so that your file processing is done in a worker thread? Then you could call - performSelectorOnMainThread:withObject:waitUntilDone: just before processing each file. If you set wait=NO then the UI can update itself without having to jump through hoops and the file processing can run without having to wait for the update to occur.

steve

_______________________________________________

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


References: 
 >NSTextField too slow to update (From: PCWiz <email@hidden>)

  • Prev by Date: Re: checkbox question
  • Next by Date: Re: NSTextField too slow to update
  • Previous by thread: Re: NSTextField too slow to update
  • Next by thread: Re: NSTextField too slow to update
  • Index(es):
    • Date
    • Thread