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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]