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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to