• 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
NSData writeToFile:atomically not working right??
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSData writeToFile:atomically not working right??


  • Subject: NSData writeToFile:atomically not working right??
  • From: Scott Mitchell <email@hidden>
  • Date: Tue, 9 Aug 2005 12:41:14 -0600

Ok, this is driving me nuts. I have one place in my code where I call [NSData writeToFile:atomically]. When I call this isWritten comes back as YES (meaning the file was written but when I go and look at the path of where it is to be written, the file is not there???? Can anyone think of a reason why this would be happening. I have looked on the archives, and saw a message about retaining the path string so I added that, but that still makes no difference. I have checked the path at least 20 times in the debugger to make sure it is correct, I have searched my whole HD to see if it was being saved somewhere else, but it is no where to be found. Yet it says that the file was created correctly.

isWritten = NO;
outFile = [outFile stringByExpandingTildeInPath];
[outFile retain];
isWritten = [outData writeToFile:outFile atomically:YES];
[outFile release];

Thanks in advance for any help.


Thanks, Scott Mitchell Macintosh Software Engineer Excelsior Software http://www.excelsiorsoftware.com _______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSData writeToFile:atomically not working right??
      • From: Sherm Pendley <email@hidden>
    • Re: NSData writeToFile:atomically not working right??
      • From: email@hidden
  • Prev by Date: Newbie warning: watch your NSLog data types
  • Next by Date: Re: Newbie warning: watch your NSLog data types
  • Previous by thread: Re: Newbie warning: watch your NSLog data types
  • Next by thread: Re: NSData writeToFile:atomically not working right??
  • Index(es):
    • Date
    • Thread