Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to pass cmd line arguments to my carbon app?



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.