Le 25 nov. 08 à 18:57, Jordon Hirshon a écrit :
I have a command line tool that outputs to the console. I would
like to rewrite the application and have the output displayed in a
textView window.
What's the best way to go about this?
Jordon
I don't know the best way, but the simplest way is probably to create
a Window with a NSTextView in IB, and then in your application, append
the text at the end of the view instead of writing it in stdout.
[[[myTextView textStorage] mutableString] appendString:myOutput];
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]