• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
command line tool: processing files dropped on it?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: command line tool: processing files dropped on it?
      • From: "I. Savant" <email@hidden>
    • Re: command line tool: processing files dropped on it?
      • From: "Sherm Pendley" <email@hidden>
    • Re: command line tool: processing files dropped on it?
      • From: Chris Hanson <email@hidden>
  • Prev by Date: Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today
  • Next by Date: Re: Remove Duplicates in a NSArray
  • Previous by thread: Re: [Moderator] Please hold off on iPhone SDK discussions until the rules are clarified later today
  • Next by thread: Re: command line tool: processing files dropped on it?
  • Index(es):
    • Date
    • Thread