• 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: Open-file progress dialog with cancel button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Open-file progress dialog with cancel button (From: Daryle Walker <email@hidden>)

  • Prev by Date: Open-file progress dialog with cancel button
  • Next by Date: Re: quicklook audio sample rates
  • Previous by thread: Open-file progress dialog with cancel button
  • Next by thread: A Bucket Full of Memory Leaks
  • Index(es):
    • Date
    • Thread