• 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
Programmatically create a file at ~/Downloads with animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Programmatically create a file at ~/Downloads with animation
      • From: Jens Alfke <email@hidden>
  • Prev by Date: Window animates width but not height
  • Next by Date: Re: Programmatically create a file at ~/Downloads with animation
  • Previous by thread: Window animates width but not height
  • Next by thread: Re: Programmatically create a file at ~/Downloads with animation
  • Index(es):
    • Date
    • Thread