• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>)

  • Prev by Date: Re: NSDate's descriptionwithLocale method output
  • Next by Date: Re: NSDate's descriptionwithLocale method output
  • Previous by thread: NSSTextView
  • Next by thread: Supporting Tiger, using leopard functions when possible?
  • Index(es):
    • Date
    • Thread