Re: NSSTextView
Re: NSSTextView
- Subject: Re: NSSTextView
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 25 Nov 2008 19:15:32 +0100
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 (email@hidden)
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:
This email sent to email@hidden
References: | |
| >NSSTextView (From: Jordon Hirshon <email@hidden>) |