I need to create (and then later open) binary files. I have no problems
creating the binary stream and writing to it (the binary file appears in
Finder, is correct size, and shows my app created it). Later when my app
needs to OpenAsBinaryFile, a nil binary stream is returned.
My prime suspect is CreateBinaryFile, which needs a parameter specifying
file type. I've experimented with variations in the Edit File Type dialog,
searched the documentation, and re-read parts of Matt Neuburg's book. Now
I'm more confused than ever.
Are there any succinct explanations of 1) what to enter in each field when
adding a new file type and 2) how to use that information when creating
and/or opening binary files?
Thanks.
Ron
ron at zutz dot com
|