Re: Instantly delete a directory without recursion?
Re: Instantly delete a directory without recursion?
- Subject: Re: Instantly delete a directory without recursion?
- From: Shawn Erickson <email@hidden>
- Date: Tue, 5 Oct 2010 13:29:08 -0700
On Tue, Oct 5, 2010 at 12:48 PM, Michael Watson <email@hidden> wrote:
> You should /always/ perform I/O on a secondary thread whenever possible. Every I/O you perform on the UI thread is an opportunity for hangs or unresponsiveness. Grand Central Dispatch is your friend here.
Maybe better said in an "you should always perform IO in an async
fashion, aka never block user interaction with IO (or other
potentially long running tasks)". Various APIs provide async modes
without having to deal with threads however the task model of GCD and
the related high-level APIs that have been retooled to use it work
well for this.
-Shawn
_______________________________________________
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