diff options
author | Stuart Connolly <stuart02@gmail.com> | 2017-03-28 23:17:40 +0100 |
---|---|---|
committer | Stuart Connolly <stuart02@gmail.com> | 2017-03-28 23:17:40 +0100 |
commit | 93239c06887d54de204e1cf0c559327c00f06ed1 (patch) | |
tree | 2dbc6e66bbbf5ecca2ef8ccf3f062e2ab0a32339 /Source/SPQueryConsoleDataSource.m | |
parent | ed23600e2539a858b34c52d585830e153593b2b4 (diff) | |
parent | db424ed281c8cf9c99406b248c195f0c8a4a6c38 (diff) | |
download | sequelpro-93239c06887d54de204e1cf0c559327c00f06ed1.tar.gz sequelpro-93239c06887d54de204e1cf0c559327c00f06ed1.tar.bz2 sequelpro-93239c06887d54de204e1cf0c559327c00f06ed1.zip |
Merge branch 'master' of github.com:sequelpro/sequelpro
Diffstat (limited to 'Source/SPQueryConsoleDataSource.m')
-rw-r--r-- | Source/SPQueryConsoleDataSource.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/SPQueryConsoleDataSource.m b/Source/SPQueryConsoleDataSource.m index eaac2151..eb669051 100644 --- a/Source/SPQueryConsoleDataSource.m +++ b/Source/SPQueryConsoleDataSource.m @@ -97,4 +97,15 @@ static NSUInteger SPMessageTruncateCharacterLength = 256; #endif } +- (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rowIndexes toPasteboard:(NSPasteboard *)pboard +{ + NSString *string = [self sqlStringForRowIndexes:rowIndexes]; + if([string length]) { + [pboard declareTypes:@[NSStringPboardType] owner:self]; + return [pboard setString:string forType:NSStringPboardType]; + } + + return NO; +} + @end |