A command shell for Cocoa implemented as an NSTextView subclass.
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
JBShellView.xcodeproj Added shell classes. Nov 29, 2012
JBShellView
.gitmodules
jbshellview@2x.png
readme.md

readme.md

JBShellView

This class provides a shell or command-line interface. Some features:

  • Cocoa native, it's an NSTextView subclass
  • Supports command history, so you can use up and down arrows, as you'd expect
  • Supports auto-pairing for smarter text editing via JBTextEditorProcessor
  • Supports asynchronous operations so you don't hang the interface.

Demo

Alt text

The demo application shows off the Shell view and lets you enter commands. The only recognized command is search some query, but by checking out the app you can hopefully figure out how to support different commands. It's pretty straightforward.