Re: cocoa file APIs

2009-03-13 Thread Graham Cox
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

cocoa file APIs

2009-03-13 Thread Roland King
Just trying to figure out what the best APIs are to use for some pretty simple file operations. I've found NSFileHandle, NSFileManager, or I could use low-level C-apis or a combination of the two. What I want to do is create and write binary files (and I guess read them again later). I'd al