Re: Can't create temporary file
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