To declare its support for file types, your app must include the CFBundleDocumentTypes key in its Info.plist
Then implement
- application:openFile: (for single file drag-drop)
or
- application:openFiles: (multiple files drag-drop)
Have a look at Complete the Information Property List section in Document-Based App Programming Guide for Mac