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 (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