command line tool: processing files dropped on it?
command line tool: processing files dropped on it?
- Subject: command line tool: processing files dropped on it?
- From: "Barrie Green" <email@hidden>
- Date: Wed, 1 Oct 2008 11:46:47 +0100
hi all,
Hopefully someone can point me in the right direction.
I have a command line tool, written in c++, that I use on my windows
machine, which allows me to drop files onto it. Windows ensures the
tool receives the paths of the files dropped through the argc/argv
arguments in main.
I have ported my tool over to OS X using xcode and created a command
line tool and all my tests work OK.
But I'm hampered by the fact that finder won't let me drag n drop
files onto my tool! I can't even use it from the "Open With" Context
menu in finder.
I'm sure i've seen other (OS X) tools process files like this,
although I can't remember which.
Is there a way of getting this to work? Or is this just a difference
between platforms that requires a rewrite?
I don't really want to start adding GUI and using drag n drop like that.
Anyway, thanks, and any pointers would be greatly appreciated.
bg
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden