Programmatically create a file at ~/Downloads with animation
Programmatically create a file at ~/Downloads with animation
- Subject: Programmatically create a file at ~/Downloads with animation
- From: Nick <email@hidden>
- Date: Tue, 3 Oct 2017 01:51:19 +0300
In my application I download a file, and would like to save it into
Downloads. The file is downloaded using NSURLSessionDataTask (because the
actual downloaded data is a base64 encoded string, and is a field inside an
XML file - so I cannot download it directly into a file).
Currently I simply download and base64-decode the file into an NSData
object and then call -[NSData writeToURL:atomically:]. However this simply
creates a new file, it doesn't give the user a feeling that the file has
been downloaded.
Is it possible to create a file with an animation of a flying file into the
Downloads "Fan" directory in Dock, like Safari does when it downloads a new
file?
_______________________________________________
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