Re: Let the runloop process its queue during a long operation
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