Suppose I have an NSDocument app that supports dragging-and-dropping of a file onto its icon to launch the app and open that file. My NSApplicationDelegate has implemented
- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename
which is invoked via the file drag-and-drop. I want to be able to break and begin debugging inside application:openFile:
but must start the app out of Xcode to use drag-and-drop launching.
What would be a good way to do this?