From b60ee8e3720b0dac888f5d542869712a6c16e409 Mon Sep 17 00:00:00 2001 From: bamse16 Date: Thu, 14 May 2009 13:26:16 +0000 Subject: Issue 233: Option to copy field headings from result panels Implementation of copy with column names menu item Removal of copy column names --- Source/TableDocument.m | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'Source/TableDocument.m') 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:) || -- cgit v1.2.3