From 1ff1b7dd89dfbea772964f347dd43755b5d7d738 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Mon, 4 Jan 2010 15:17:48 +0000 Subject: =?UTF-8?q?=E2=80=A2=20replaced=20the=20(10.4)=20deprecated=20[NST?= =?UTF-8?q?ableView=20tableView:writeRows:toPasteboard:]=20method=20by=20[?= =?UTF-8?q?NSTableView=20tableView:writeRowsWithIndexes:toPasteboard:]=20?= =?UTF-8?q?=E2=80=A2=C2=A0some=20code=20cosmetics?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableContent.m | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Source/TableContent.m') diff --git a/Source/TableContent.m b/Source/TableContent.m index 6b8ecf0e..cacccc97 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -2907,9 +2907,9 @@ /** * Enable drag from tableview */ -- (BOOL)tableView:(NSTableView *)tableView writeRows:(NSArray*)rows toPasteboard:(NSPasteboard*)pboard -{ - if (tableView == tableContentView) { +- (BOOL)tableView:(NSTableView *)aTableView writeRowsWithIndexes:(NSIndexSet *)rows toPasteboard:(NSPasteboard*)pboard +{ + if (aTableView == tableContentView) { NSString *tmp; // By holding ⌘, ⇧, or/and ⌥ copies selected rows as SQL INSERTS @@ -2917,7 +2917,7 @@ if([[NSApp currentEvent] modifierFlags] & (NSCommandKeyMask|NSShiftKeyMask|NSAlternateKeyMask)) tmp = [tableContentView selectedRowsAsSqlInserts]; else - tmp = [tableContentView draggedRowsAsTabString:rows]; + tmp = [tableContentView draggedRowsAsTabString]; if ( nil != tmp && [tmp length] ) { @@ -2930,7 +2930,7 @@ return YES; } } - + return NO; } -- cgit v1.2.3