Sending stdout to NSTextView

Discussion in 'Mac Programming' started by Fedge, May 21, 2008.

  1. Fedge macrumors regular

    Fedge

    Joined:
    Aug 9, 2006
    #1
    I've got a c++ backend that uses cout to display lots of messages on screen. I'd like to send/pipe all of these messages to an NSTextView in the same obj-c++ app. I'm reasonably new to Cocoa, so I've been having some trouble.

    What's the easiest way to pipe stdout into my NSTextView?
     
  2. adrian.oconnor macrumors 6502

    Joined:
    Jan 16, 2008
    Location:
    Nottingham, England
    #2

Share This Page