a simple text editor based on the text system in Cocoa