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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to