Re: Why is there no -createFileAtPath: with an error return parameter?
Re: Why is there no -createFileAtPath: with an error return parameter?
- Subject: Re: Why is there no -createFileAtPath: with an error return parameter?
- From: Sean McBride <email@hidden>
- Date: Thu, 14 Nov 2013 18:35:36 -0500
- Organization: Rogue Research Inc.
On Thu, 14 Nov 2013 15:22:14 -0800, Quincey Morris said:
>> They deprecated the createDirectory... methods and replaced them with
>ones that return an error, why not the create file method?
>
>Use [NSData writeToURL…] instead.
Including [[NSData data] writeToURL:...] to create an empty file.
Cheers,
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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