• 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: Can't create temporary file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't create temporary file


  • Subject: Re: Can't create temporary file
  • From: Rick Mann <email@hidden>
  • Date: Thu, 19 May 2011 14:55:09 -0400

On May 14, 2011, at 2:22 , Quincey Morris wrote:

> On May 13, 2011, at 22:46, Rick Mann wrote:
>
>> Any idea what I'm doing wrong?
>
>
> Well, this seems relevant:
>
> 	http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSFileHandle_Class/Reference/Reference.html
>
> Specifically:
>
>> fileHandleForWritingToURL:error:
> ...
>> Return Value
>> The initialized file handle object or nil if no file exists at url.

Thanks, Quincy. I didn't realize the method didn't also create the file for me. It seems Cocoa is lacking in file-creation APIs (none URL-based, none return an error object).

> Incidentally, what's wrong with 'URLByAppendingPathExtension:'? For that matter, why do you need a temporary extension anyway? I guess it scarcely matters, but I was just wondering.

Nothing, I just didn't know it existed (looked for something like it, too). I got rid of tht extension already.

Thanks!

--
Rick

_______________________________________________

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: Can't create temporary file
      • From: Quincey Morris <email@hidden>
References: 
 >Can't create temporary file (From: Rick Mann <email@hidden>)
 >Re: Can't create temporary file (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: "Use them from only one thread at a time"
  • Next by Date: Re: Can't create temporary file
  • Previous by thread: Re: Can't create temporary file
  • Next by thread: Re: Can't create temporary file
  • Index(es):
    • Date
    • Thread