Fixed for OSX.  Do not every use TextEditor on code!