Thread-topic: How to pass cmd line arguments to my carbon app?
User-agent: Microsoft-Entourage/11.2.0.050811
On Thu, 22 Sep 2005 17:02:37 +0200, Jay Vaughan <email@hidden> wrote:
>>I think it makes perfect sense. The Mac has never targeted as its primary
>>market people who would pass command line arguments to applications.
>>Furthermore, all your ranting about standard C behavior aside, the preferred
>>language for Mac development in the early days was Pascal, not C.
>
> ermm .. i'm not ranting, i'm complaining that main(int argc, char
> *argv[]) is useless on mac, whereas quite useful, still, elsewhere..
> and it just looks like a big "Apple says fark you" to anyone who
> still needs to depend on such mechanisms for their **portable**
> **non-Apple-exclusive** apps which are supposed to be supported on
> OSX, among many other target platforms ..
"main(int argc, char *argv[]) is useless on mac"
BUZZ! If you want your users to have to fire up terminal, change their
directory to where your app lives and then type in a long complicated
command line to run your app then guess what? They can. There is absolutely
nothing in our operating system that prevents you from doing this. And we'll
parse all the command line arguments and pass them to your main. Just like
all those other operating systems. Knock yourself (and your users) out. ;-)
Is it user friendly? Nope, but that's a different question.
Meanwhile, for any non-"humor impaired": <http://www.dougdb.net/hammer.html>
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/carbon-dev/email@hidden
This email sent to email@hidden