• 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: Let the runloop process its queue during a long operation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Let the runloop process its queue during a long operation


  • Subject: Re: Let the runloop process its queue during a long operation
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 06 Oct 2010 11:36:28 -0700
  • Thread-topic: Let the runloop process its queue during a long operation

On Wed, 6 Oct 2010 15:53:13 +0400, eveningnick eveningnick
<email@hidden> said:
>Hello
>I have an application that transforms a very big file, and during that
>operation i want to give a chance to user to press Esc and cancel this
>transformation.

You're going to use a secondary thread and that's that. I would second the
advice to use NSOperation. I hesitated and hesitated and then went for it,
and it turned out to be very easy, much easier and far less "close your
eyes and think of England" than NSThread. m.


_______________________________________________

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

  • Prev by Date: NanoStore has moved to Google Code
  • Next by Date: what are the scenarios for an app to be terminated?
  • Previous by thread: Re: Let the runloop process its queue during a long operation
  • Next by thread: Re: Let the runloop process its queue during a long operation
  • Index(es):
    • Date
    • Thread