CodeMirrorView is a Cocoa / Objective-C wrapper for CodeMirror ready to use in your applications.
Simply add the "Distribution" directory as a group to your Xcode project then use the "CodeMirrorView" class where needed as any regular NSView.
See the Application directory for an example app.
CodeMirrorView is available under New BSD License.