Hi there,
I'm writing an application that has two separate utilities: a main Cocoa app, and a contextual menu item. I'd like the contextual menu item to allow the user to select files for processing in the Cocoa app; it would deliver the file's path into the Cocoa app.
However, as I've learned, contextual menu plugins are written in straight C (see http://www.mactech.com/articles/mactech/Vol.18/18.08/MenuPlugins/index.html for a tutorial). Ultimately you get down to the essential problem: what C function will take a path name and fork it over to a Cocoa app?
I hope this is clearly explained... I barely understand hte problem well enough to phrase a proper Google search! Further explanation forthcoming if required.
Thanks,
Aaron.
I'm writing an application that has two separate utilities: a main Cocoa app, and a contextual menu item. I'd like the contextual menu item to allow the user to select files for processing in the Cocoa app; it would deliver the file's path into the Cocoa app.
However, as I've learned, contextual menu plugins are written in straight C (see http://www.mactech.com/articles/mactech/Vol.18/18.08/MenuPlugins/index.html for a tutorial). Ultimately you get down to the essential problem: what C function will take a path name and fork it over to a Cocoa app?
I hope this is clearly explained... I barely understand hte problem well enough to phrase a proper Google search! Further explanation forthcoming if required.
Thanks,
Aaron.