I'm rewriting my app that reads and graphs data created by a physics simulation program. The original version reads the data files but doesn't save any type of document. I'd like to add the ability to write a document file that contains presentation state and a path to the original data file. So the user can open either the original data files (let's say it has extension .xxx) or files my program creates (extension .yyy).
If the user opens an xxx file, I don't want the document to consider the xxx file to be its on-disk representation. Is there a way in readFromData:ofType:error:
that I can test to see if the type is xxx and create an Untitled document?