I have an nsdocument subclass which handles the loading of a binary file (of an existing format, not of my creation.) The file format uses 3 files with the same name for each logical "document" (with different extensions).
I want to be able to have the user select the 3 files in the NSOpenPanel, and then have one NSDocument subclass with its corresponding window created. I know how to set a panel to allow selection of multiple files, but I don't know how to get to the panel that NSDocumentController is using, or what methods to override for loading binary data out of the multiple files.
-[NSDocumentController runModalOpenPanel:forTypes:]
without callingsuper
but running the modal panel yourself? That should allow you to intercept the completion to do the right thing. – danyowdee