Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stevebartholomew/4c9f43b32d405eb821a1 to your computer and use it in GitHub Desktop.
Save stevebartholomew/4c9f43b32d405eb821a1 to your computer and use it in GitHub Desktop.
func tableView(tableView: NSTableView, writeRowsWithIndexes: NSIndexSet, toPasteboard: NSPasteboard) -> Bool {
var data = NSKeyedArchiver.archivedDataWithRootObject([writeRowsWithIndexes])
toPasteboard.declareTypes([MyRowType], owner:self)
toPasteboard.setData(data, forType:MyRowType)
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment