Re: Trouble using createFileAtPath method to create file
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