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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com