Re: Open-file progress dialog with cancel button
Re: Open-file progress dialog with cancel button
- Subject: Re: Open-file progress dialog with cancel button
- From: Kyle Sluder <email@hidden>
- Date: Fri, 10 Jun 2016 11:40:15 -0500
On Fri, Jun 10, 2016, at 11:03 AM, Daryle Walker wrote:
> I don't need this (yet), but it popped up in my head. Usually,
> readFromData: ofType: processes the data in place. But what if the
> process take a while, or you otherwise want to provide a progress window
> (maybe with a cancel button)? I guess you could handle the parsing in an
> NSOperation, but how do you establish the window and make sure
> readFromData for that instance doesn't deadlock the rest of the program?
Check out +[NSDocument canConcurrentlyReadDocumentsOfType:].
--Kyle Sluder
_______________________________________________
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