Creating temporary files from Cocoa

I wish NSFileManager had something like Java’s java.io.File.createTemporaryFile, but it doesn’t.

So I added it with a Category. Wonderful thing, Objective-C categories.

The project is up on GitHub, but I thought I’d include just the code here as well:

 

Leave a Reply

Your email address will not be published. Required fields are marked *