diff options
author | bamse16 <marius@marius.me.uk> | 2009-05-14 13:26:16 +0000 |
---|---|---|
committer | bamse16 <marius@marius.me.uk> | 2009-05-14 13:26:16 +0000 |
commit | b60ee8e3720b0dac888f5d542869712a6c16e409 (patch) | |
tree | fae05445d95ed9174fde15390a47d15b5cf5d18b /Source/TableDocument.m | |
parent | d5ab2d92548974758959134bf169c7af33466ac9 (diff) | |
download | sequelpro-b60ee8e3720b0dac888f5d542869712a6c16e409.tar.gz sequelpro-b60ee8e3720b0dac888f5d542869712a6c16e409.tar.bz2 sequelpro-b60ee8e3720b0dac888f5d542869712a6c16e409.zip |
Issue 233: Option to copy field headings from result panels
Implementation of copy with column names menu item
Removal of copy column names
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 3c02e687..3e666cfd 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1023,23 +1023,6 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum notificationName:@"Syntax Copied"]; } -- (IBAction)copyColumnNames:(id)sender -{ - //NSArray *columns; - NSString *columnNames; - //columns = ; - if ([self columnNames]) { - columnNames = [NSString stringWithFormat:@"`%@`", [[self columnNames] componentsJoinedByString:@"`, `"]]; - } - - if([columnNames length]){ - NSPasteboard *pasteBoard = [NSPasteboard generalPasteboard]; - // Copy the string to the pasteboard - [pasteBoard declareTypes:[NSArray arrayWithObjects:NSStringPboardType, nil] owner:nil]; - [pasteBoard setString:columnNames forType:NSStringPboardType]; - } -} - - (NSArray *)columnNames { NSArray *columns = nil; @@ -1553,7 +1536,6 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum // table menu items if ([menuItem action] == @selector(showCreateTableSyntax:) || [menuItem action] == @selector(copyCreateTableSyntax:) || - [menuItem action] == @selector(copyColumnNames:) || [menuItem action] == @selector(checkTable:) || [menuItem action] == @selector(analyzeTable:) || [menuItem action] == @selector(optimizeTable:) || |