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: "Jaime Rios" <email@hidden>
- Date: Fri, 12 Oct 2007 10:44:59 -0400
Hi,
The value pFP is :
/private/var/tmp/folders.501/Cleanup At Startup/123456
where 123456 is the filename.
--
-Jaime
http://www.jaimerios.com
On 10/12/07, glenn andreas <email@hidden> wrote:
>
>
> 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