Are there any frameworks for placing, for example, in the Terminal.app application in MY, and then displaying the text on it, like normal output in STDOUT? Complete with scrolling, etc.
There are several suggestions in this thread. The first is very UNIX - you use pipe () to map stdout to a new location. Then you need another process or thread that reads this feed and displays it in an NSTextView. Another approach that I liked because it looks cleaner and less resource intensive is to replace the File_writer_t _write file in the FILE stdout () pointer with the required hook, which writes the output to NSTextView.
You can watch iTerm , an open source terminal emulator written in Cocoa. If you really need terminal emulation, you can exit this structure.