Passing command line arguments to a carbon app
Uli Kusterer
kusterer at gmail.com
Tue Apr 17 17:15:28 PDT 2007
Am 17.04.2007 um 10:24 schrieb Lothar Scholz:
> No Xcode here. I'm using my own Eiffel compiler from command line.
> Only IB to create NIB's.
Is your app bundled, or not? AFAIK the GUI issues were corrected
for 10.3 or 10.4, but if your app isn't in a bundle or does some
other things in a nonstandard way, you might still get problems that
look similar.
> I need a test control program (a ruby ones) on the command line that
> runs executables with different input values. My next try was to
> store them in a file relative to the current directory, but the
> current directory of a carbon app is always '/'.
Not always. Just when launched by the Finder. Some applications
change their current directory themselves, Xcode sets it to the
Release or Debug folders... in short, you can't rely on the current
directory. Instead, put support files in your bundle's "Resources"
folder and get its URL based on your application's path, or better
via CFBundle or NSBundle.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
More information about the MacOSX-dev
mailing list