Skip to content

Instantly share code, notes, and snippets.

View masonmark's full-sized avatar
🕺
totally

Mason masonmark

🕺
totally
View GitHub Profile
@masonmark
masonmark / gist:1020512
Created June 11, 2011 12:20 — forked from pmuellr/gist:1004413
BBEdit Language Module for CoffeeScript
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!--
BBEdit Language Module for CoffeeScript
Put this file in
~/Library/Application Support/BBEdit/Language Modules
or equivalent.
Based off of the examples shipped in the BBEdit SDK.
// ContextualMenuTableView.j Created by mason on 2010/07/26. This source code is in the public domain.
// NOTES: This subclass adds simple right-click contextual menu support to CPTableView.
// It does not work with Cappuccino 0.8.1, but it works with the latest master branch as of
// 2010-07-27. To use it, just have your table's delegate implement -tableView:contextualMenuForRows:.
// The table view handles updating the selection before invoking the delegate method. This doesn't
// support the cool modern Mac OS X 10.6 style of contextual menus that don't destructively change
// the user selection (discussed by me in this thread: http://groups.google.com/group/objectivej/browse_thread/thread/129dca07459d9325 ),