I want to be able to redirect the output from NSLog commands to an NSTextView. A google search came up with ways to redirect to a file. However, I want to be able to redirect that output to a file. How can I do that? My initial thought would be to use an NSInptStream, but I don't know how to proceed further than that..