FROM : Arthur VIGAN
DATE : Fri Jan 03 15:29:45 2003
This works fine!
Thanks for the quick answers.
Arthur
>> I am programming a Foundation Tool for use with the terminal app, but
>> I have troubles to ouput text in the terminal (the stdout in this
>> case). The problem comes with the NSString. I can't use the printf()
>> function with NSString, so what should I use?
>
> The easiest way is like this:
>
> fprintf(stdout, "%s", [myString cString]);
>
> or you might be able to use different text encodings if Terminal app
> can handle them. The problem is I don't think Terminal app is a
> general unicode output/input device, and it might interpret special
> device commands like VT100 emulation.
>
> -lance
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Fri Jan 03 15:29:45 2003
This works fine!
Thanks for the quick answers.
Arthur
>> I am programming a Foundation Tool for use with the terminal app, but
>> I have troubles to ouput text in the terminal (the stdout in this
>> case). The problem comes with the NSString. I can't use the printf()
>> function with NSString, so what should I use?
>
> The easiest way is like this:
>
> fprintf(stdout, "%s", [myString cString]);
>
> or you might be able to use different text encodings if Terminal app
> can handle them. The problem is I don't think Terminal app is a
> general unicode output/input device, and it might interpret special
> device commands like VT100 emulation.
>
> -lance
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Arthur VIGAN | Jan 3, 14:57 | |
| Yann Bizeul | Jan 3, 15:15 | |
| Finlay Dobbie | Jan 3, 15:21 | |
| Arthur VIGAN | Jan 3, 15:29 | |
| Marcel Weiher | Jan 3, 15:31 |






Cocoa mail archive

