New to Mac/OSX programming.
In Windows when dropping a file (of which there are no restrictions) on a conole app, it is the equivalent of calling the application's main function with argv[1] as the full path to the file that was dropped on the app. This is pretty convenient.
I've managed to write a console app in CW that I can explicitly call from the terminal, like so:
$myapp <path_to_input_file>
It works fine (though it opens a separate terminal window for cerr output that does not return control to the calling terminal; I have to command+break to close, but that's a separate question).
However, apparently I have to define a value somewhere (.plc file in CW?) that describes what files are droppable onto the application???
Any help, much obliged.
In Windows when dropping a file (of which there are no restrictions) on a conole app, it is the equivalent of calling the application's main function with argv[1] as the full path to the file that was dropped on the app. This is pretty convenient.
I've managed to write a console app in CW that I can explicitly call from the terminal, like so:
$myapp <path_to_input_file>
It works fine (though it opens a separate terminal window for cerr output that does not return control to the calling terminal; I have to command+break to close, but that's a separate question).
However, apparently I have to define a value somewhere (.plc file in CW?) that describes what files are droppable onto the application???
Any help, much obliged.