Best approach to long running tasks.
Best approach to long running tasks.
- Subject: Best approach to long running tasks.
- From: "Tom Fortmann" <email@hidden>
- Date: Wed, 10 Sep 2008 07:58:56 -0500
I'm looking for suggestions on how to best handle long running tasks. My
app has a simple button connected to an Objective-C method. When I click
the button the method is called and a series of steps are performed. Each
involves some network activity and may take a second or two. I would like
to update a status message on the screen as each step is performed. I've
tried simply appending text to a text view, but none of the updates get
displayed until the whole method completes. I also tried starting an
NSThread from the method, allowing it to return, and letting the thread
update the text, but again nothing gets displayed until the thread
completes. Can anyone suggest a better way to handle this type of
application?
___________________________________
THOMAS FORTMANN
Director of Development
XCAPE SOLUTIONS, INC.
207 Crystal Grove Blvd.
Lutz, FL 33548
TEL 847 228 9831
<http://www.xcapesolutions.net> www.xcapesolutions.net
<mailto:email@hidden> email@hidden
_______________________________________________
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