Cocotron is an incomplete clean-room reimplementation of Cocoa, and includes much of desktop Cocoa's main parts.