• 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
printing the standard output in a NSTextview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

printing the standard output in a NSTextview


  • Subject: printing the standard output in a NSTextview
  • From: Martin Marier <email@hidden>
  • Date: Sun, 4 Jan 2004 22:22:52 -0500

I'm trying to display the stdout of a shell command (whatever command, I'm testing with ls) in a NSTextview. I can do the system call with NSTask and pipe it into a NSData. How can I get the data held in NSData to be displayed in my NSTextView ? Should I do a type cast ? Or should I use a different type of NSView ?


Thank you

Martin Marier.

PS I know this is a very beginner question. If you know a better place for a beginner to ask questions, please let me know.
_______________________________________________
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.
  • Follow-Ups:
    • Re: printing the standard output in a NSTextview
      • From: Nick Zitzmann <email@hidden>
  • Prev by Date: NSDrawer contentView
  • Next by Date: Re: NSDrawer contentView
  • Previous by thread: Re: NSDrawer contentView
  • Next by thread: Re: printing the standard output in a NSTextview
  • Index(es):
    • Date
    • Thread