Re: perplexed trying to run/debug my app
Re: perplexed trying to run/debug my app
- Subject: Re: perplexed trying to run/debug my app
- From: Mark Lentczner <email@hidden>
- Date: Wed, 7 Apr 2004 20:01:38 -0700
With the Inspector, I set a Launch Argument to be:
< ss.txt, and
I don't think that Xcode emulates shell style input/output redirection
operators. The Launch Arguments are what really end up in argv/argc to
main(). "< ss.txt" on the command line is actually handled by the
shell and never seen by your application. Gdb just happens to do it
too.
A common idiom is for applications to read from files named on the
command line and only read stdin if there are none. If you implement
that, then you can set your Launch Arguments to "ss.txt".
- Mark
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.