clone of http://code.google.com/p/nagui-cocoa/