diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-04 15:17:48 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-04 15:17:48 +0000 |
commit | 1ff1b7dd89dfbea772964f347dd43755b5d7d738 (patch) | |
tree | dafd7bf91368077fe07ff49f259b03c386260e15 /Source/TableContent.m | |
parent | 313c5bc247548319dc1f93c9ece04ea4326d37e8 (diff) | |
download | sequelpro-1ff1b7dd89dfbea772964f347dd43755b5d7d738.tar.gz sequelpro-1ff1b7dd89dfbea772964f347dd43755b5d7d738.tar.bz2 sequelpro-1ff1b7dd89dfbea772964f347dd43755b5d7d738.zip |
• replaced the (10.4) deprecated [NSTableView tableView:writeRows:toPasteboard:] method by [NSTableView tableView:writeRowsWithIndexes:toPasteboard:]
• some code cosmetics
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r-- | Source/TableContent.m | 10 |
1 files changed, 5 insertions, 5 deletions
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; } |