Resolved NSURLErrorCannotOpenFile Question


i wrote code download url disk, using nsurlrequest , nsurldownload. download starts fine (at least, sends downloaddidbegin:(nsurldownload *)download), sends

code:
-(void)download:(nsurldownload *)download didfailwitherror:(nserror *)error  
my implementation of function follows:

code:
{  [download release];    nslog(@"download failed! error - %@ %@",        [error localizeddescription],        [[error userinfo] objectforkey:nsurlerrorfailingurlstringerrorkey]);  }
the logged error is

2011-07-17 01:48:43.194 urldownloader[28031:903] download failed! error - operation couldn’t completed. (nsurlerrordomain error -3001.) [the url in nsurlrequest]

can tell, nsurlerrorcannotopenfile error. cannot find explanation of why error occurs, other "returned when nsurldownload unable open downloaded file on disk." documentation. so, why happening?

fact might helpful(?): nsurlerrorcannotopenfile enumerated kcfurlerrorcannotopenfile. have no idea means either....
 

if problem writing file disk, obvious thing @ how you're specifying file write.

there appears 1 nsurldownload method setting specific destination file on disk, , several delegate methods associated destination file.

if you're using specific location on disk, it? have permission write there? did specify overwriting? post code sets destination.

if you're relying on delegate methods, post code.
 


Forums Macs Mac Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

Comments

Popular posts from this blog

Has to be the funniest headline ive ever seen

Man Brings Goat to Apple Store and has Pizza Delivered

Elusive Ninja: The Shadowy Thief - Can you survive the fast-paced ninja chaos?