Re: C and objective C together
Re: C and objective C together
- Subject: Re: C and objective C together
- From: "Craig S. Cottingham" <email@hidden>
- Date: Wed, 3 Apr 2002 12:05:58 -0600
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, April 3, 2002, at 11:15 , Paul Ferguson wrote:
While the answers so far are interesting, I think they've
missed the essence of the question, which is:
How can I capture stdout and/or stderr output (whether from
putc's, printf's, NSLog's, NSAssert's, etc.) and redirect it to
some object inside my app, with little or no modifications to
the app's code?
I don't know the answer, but am interested in this if someone does.
NSTask. It gives you stdout and stderr as separate streams. If
you'd rather have them combined, use NSTask to run a command
line something like
/bin/sh my_application 2>&1
- --
Craig S. Cottingham
email@hidden
PGP key available from:
<
http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41>
ID=0xA2FFBE41, fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F
0CEF A2FF BE41
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (Darwin)
Comment: For info see
http://www.gnupg.org
iD8DBQE8q0SME28M76L/vkERAszhAJ48RIFE1NaNSvz9MC2I3rKeGeem5ACfW2S1
gjfUS4FD9DXWZPIL9uSQgO4=
=WhU+
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.