• 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: Trouble using createFileAtPath method to create file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble using createFileAtPath method to create file


  • Subject: Re: Trouble using createFileAtPath method to create file
  • From: glenn andreas <email@hidden>
  • Date: Fri, 12 Oct 2007 09:39:41 -0500


On Oct 12, 2007, at 9:27 AM, Jaime Rios wrote:

Actually, that is the older code where I was using a const char* for the
file name. I'm not using that anymore and instead I am using a CFStringRef
for the file name and a CFURLRef for the file path. However, it still fails
to create a file at that path:


NSString* pFP = [(NSString*)CFURLCopyPath(sourcePath)
stringByAppendingPathComponent:
        (NSString*)fileName];

Any ideas? Thanks!

So what value is pFP? Is it actually a valid full file path? I use a similar technique (get the "chewable" folder via FindFolder, and eventually append file names to that) for temporary files with no problems...


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate




_______________________________________________

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: Trouble using createFileAtPath method to create file
      • From: "Jaime Rios" <email@hidden>
References: 
 >Trouble using createFileAtPath method to create file (From: "Jaime Rios" <email@hidden>)
 >Re: Trouble using createFileAtPath method to create file (From: glenn andreas <email@hidden>)
 >Re: Trouble using createFileAtPath method to create file (From: "Jaime Rios" <email@hidden>)

  • Prev by Date: Re: Trouble using createFileAtPath method to create file
  • Next by Date: Re: Trouble using createFileAtPath method to create file
  • Previous by thread: Re: Trouble using createFileAtPath method to create file
  • Next by thread: Re: Trouble using createFileAtPath method to create file
  • Index(es):
    • Date
    • Thread