Created
June 9, 2015 11:15
-
-
Save stevebartholomew/4c9f43b32d405eb821a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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