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

Re: Zero kb file copied


  • Subject: Re: Zero kb file copied
  • From: Manfred Schwind <email@hidden>
  • Date: Fri, 23 Dec 2005 16:27:05 +0100

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];

I know this may not be the problem here, but please be aware that applications very often don't have write access to their own application bundle, e.g. if your application is launched by a user without administrator privileges from the regular Applications directory, or if the application is on a CD or a write-only DMG etc.

Regards,
Mani

_______________________________________________
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
References: 
 >Zero kb file copied (From: Sanri Parov <email@hidden>)

  • Prev by Date: print a downloaded jpg
  • Next by Date: Re: Does NSButton wrap long titles?
  • Previous by thread: Re: Zero kb file copied
  • Next by thread: Re: Zero kb file copied
  • Index(es):
    • Date
    • Thread