• 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: "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

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

  • Prev by Date: Re: Trouble using createFileAtPath method to create file
  • Next by Date: Memory leaks when running an apple event
  • 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