Take the 2-minute tour ×  I have a Cocoa program that is editing
hundreds (sometimes thousands) of third-party files and I want
to create a log-type output for the end user to see (although I
don't need things like timestamps). Currently I am simply
appending strings to the outlet:  @property (unsafe_unretained)
IBOutlet NSTextView *finalText; self.finalText.string =
[self.finalText.string stringByAppendingFormat:@"Final
results:\n"];  but this is extremely inefficient. When I run
that code on 700 files with the above code (all of the
commenting) turned off it takes 4 seconds to execute, with the
above code turned on it takes 40 seconds to create the necessary
8,000 lines of output. Oh, and did I mention that Xcode says
that my memory usage spikes to over 2GB during the processing?
Yikes!  I understand that what I am doing is inefficient but I
don't know the best way to be efficient. What is the best way to
create 8,000 lines of text that the end-user can see at the end?
Would something like Lumberjack be the