• 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
Best approach to long running tasks.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Best approach to long running tasks.
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Problems with Key Observing Registration Performance
  • Next by Date: [moderator] Re: While we're on the subject of DMG's for software distribution...
  • Previous by thread: NSApplication in Carbon application
  • Next by thread: Re: Best approach to long running tasks.
  • Index(es):
    • Date
    • Thread