• 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
NSURLDownload and file quarantine
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSURLDownload and file quarantine


  • Subject: NSURLDownload and file quarantine
  • From: Wim Lewis <email@hidden>
  • Date: Wed, 21 Oct 2009 14:34:54 -0700

Is there any useful documentation on what the behavior of NSURLDownload is supposed to be w.r.t. file quarantine? I'm having a hard time getting consistent behavior out of it. I have a program with LSFileQuarantineEnabled turned on which downloads a file. The sequence of events I see is:
- NSURLDownload creates the destination file, and it is automatically quarantined.
- -download:didCreateDestination: is called. I can see the quarantine attributes on the file.
- NSURLDownload then *removes* the quarantine information (I can see this in the debugger; it's happening in URLDownload::updateQuarantineProperties(), called from the URLConnectionClient run loop callback).
- The download continues and finishes, leaving an un-quarantined file.


More maddeningly, if I try to add (more accurate) quarantine information in -download:didCreateDestination:, it gets obliterated later by NSURLDownload.

This seems like buggy behavior, but since the documentation on file quarantine is so skimpy, who knows? Perhaps this is intended behavior. Anyone know?


_______________________________________________

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


  • Follow-Ups:
    • Re: NSURLDownload and file quarantine
      • From: Wim Lewis <email@hidden>
  • Prev by Date: Re: Reading NSInputStream
  • Next by Date: Re: Beach balling on mach_msg_trap
  • Previous by thread: Re: Reading NSInputStream
  • Next by thread: Re: NSURLDownload and file quarantine
  • Index(es):
    • Date
    • Thread