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 9/22/05 10:07 AM, Jay Vaughan didst favor us with:

>> argc/argv is the API for command-line tools.  It is not part of the
>> Mac OS X user model for users to provide parameters when
>> double-clicking applications.
> 
> well, if thats the answer, thats the answer .. but i beg to differ
> that argc/argv is an "API for cmd-line tools".  it is standard C, and
> I am using standard C with the Carbon API's to get my
> [cross-platform] app working under OSX, but its not the only run
> environment in the universe on which my code must play...
> 
and

>> He is probably thinking about analog of possibility found in
>> Windows - ability to set command line args in shortcut (alias).
>> Mike
>> (who still uses CW's "ccommand" from time to time.)
> 
> .. well, no .. i'm thinking about how argc/argv has been a standard
> way to pass options into apps, or at least C-based apps, since
> forever, and how it doesn't make any sense that i can use C in
> Apple-land, but not argc/argv, standardly, where i need to.

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.

> i do -not- want to change my args into preferences, just to be
> apple'ized, because my code runs on more than just OSX, but if thats
> the absolute answer from the barrel of technocratic wisdom that is
> the OSX runtime spec, then so ripe and sour be the apples upon which
> i must munch ..

Indeed, the Mac OS is not Windows, which is okay with most of us. ;-)  My
only response to comments about what you can do on other platforms but not
on the Mac is that the last time Microsoft had a "switchers" page it
featured an actress Microsoft had hired and a testimonial written by a
professional ad copywriter. ;-)

> can i be sure that there are -no- ways to get argc/argv from a the
> bundle .plist?

I just have no idea about this one.

Larry

 _______________________________________________
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

References: 
 >Re: How to pass cmd line arguments to my carbon app? (From: Jay Vaughan <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.