Re: cocoa file APIs
Re: cocoa file APIs
- Subject: Re: cocoa file APIs
- From: Graham Cox <email@hidden>
- Date: Sat, 14 Mar 2009 00:52:14 +1100
On 14/03/2009, at 12:44 AM, Roland King wrote:
I was trying to find an API which gives me the correct path for
temporary files, or even a temporary filename, but haven't found one.
NSTemporaryDirectory
Am I looking at the right APIs and thinking about this the right
way, or are there some other cocoa classes I should be looking at.
I'll happily use open() etc but wanted something higher-level and
insulated from the filesystem if cocoa provides
it._______________________________________________
For binary data, one very simple solution is to use NSData -
writeToFile:atomically:
For deletion, copying, etc, NSFileManager is probably the highest level.
--Graham
_______________________________________________
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