[Mono-osx] Getting filename of the file double clicked on in mono application

rrussell rrussell at franticfilms.com
Wed Jan 28 12:13:10 EST 2009


I'm trying to make my mono application a default application for a particular
file type. This way, when I double click the file in Finder, it will open it
with my application. While the application starts up fine, it's not getting
the file I clicked on as an argument (it's just getting a -psn_xxxxxxxx
argument).

I found this article that provides some additional info:
http://forums.macosxhints.com/archive/index.php/t-94959.html

It looks like if I was using Cocoa, this would be a breeze, but I'm using
WinForms. I guess I have two questions:

1) Is it possible to get the filename of the file that was double clicked on
when using WinForms?

2) Is it possible to listen for specific Apple Events when using WinForms?

I'm currently using Mono 2.2 on OSX 10.4.

Thanks!
- Ryan
-- 
View this message in context: http://www.nabble.com/Getting-filename-of-the-file-double-clicked-on-in-mono-application-tp21710180p21710180.html
Sent from the Mono - OSX mailing list archive at Nabble.com.



More information about the Mono-osx mailing list