• 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
Zero kb file copied
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Zero kb file copied


  • Subject: Zero kb file copied
  • From: Sanri Parov <email@hidden>
  • Date: Thu, 22 Dec 2005 22:01:09 +0100

Hi everybody,

I'm having a little trouble in copying a file from the desktop to the application bundle using NSFileManager.
When it comes to copy the file, it turns out the copied file is in the right location I choose but it's zero KB in size.
Here's a little snippet:

NSString *stringaDiControllo = [NSString stringWithString:[[[NSBundle mainBundle] executablePath] stringByAppendingString:@"/"]];
boolValue=[fm copyPath:[sheet filename] toPath:stringaDiControllo handler:nil];

boolValue returns TRUE, which means the file is copied, but I can't understand why it's empty...
Any clues?

Many thanks.

--
Sanri Parov from iBook



_______________________________________________
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: Zero kb file copied
      • From: Manfred Schwind <email@hidden>
    • Re: Zero kb file copied
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Two little Core Data categories
  • Next by Date: Core Data: Master-Detail question
  • Previous by thread: Two little Core Data categories
  • Next by thread: Re: Zero kb file copied
  • Index(es):
    • Date
    • Thread