I need to have my document-based Cocoa application load a file upon double-clicking in the Finder. I understand how to tell Finder to use my application as default for the filetype I need. Currently, I have written the code to open files via the File..Open.. menu, but if I double click an applicable document file, my application starts, but does not load the file.
I know this has got to be a pretty basic question, but I have been unable to find any documentation or other online info out there that tells me how to do this.