diff options
author | stuconnolly <stuart02@gmail.com> | 2010-10-28 15:35:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2010-10-28 15:35:40 +0000 |
commit | f48b5ba6410a5d449fad026e870e2c3e5e0fcf53 (patch) | |
tree | a358fb72201d9c70f2a7d05909cab9fc7eabe8c0 /Source/SPTableStructureDelegate.m | |
parent | c48e2762b6906f4751f9918af379d01b42647e46 (diff) | |
download | sequelpro-f48b5ba6410a5d449fad026e870e2c3e5e0fcf53.tar.gz sequelpro-f48b5ba6410a5d449fad026e870e2c3e5e0fcf53.tar.bz2 sequelpro-f48b5ba6410a5d449fad026e870e2c3e5e0fcf53.zip |
Add SPDefaultPasteboardDragType constant.
Diffstat (limited to 'Source/SPTableStructureDelegate.m')
-rw-r--r-- | Source/SPTableStructureDelegate.m | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/SPTableStructureDelegate.m b/Source/SPTableStructureDelegate.m index 377fd7b3..d3954df7 100644 --- a/Source/SPTableStructureDelegate.m +++ b/Source/SPTableStructureDelegate.m @@ -160,8 +160,8 @@ if ( ![self saveRowOnDeselect] ) return NO; if ([rows count] == 1) { - [pboard declareTypes:[NSArray arrayWithObject:@"SequelProPasteboard"] owner:nil]; - [pboard setString:[[NSNumber numberWithInteger:[rows firstIndex]] stringValue] forType:@"SequelProPasteboard"]; + [pboard declareTypes:[NSArray arrayWithObject:SPDefaultPasteboardDragType] owner:nil]; + [pboard setString:[[NSNumber numberWithInteger:[rows firstIndex]] stringValue] forType:SPDefaultPasteboardDragType]; return YES; } else { @@ -184,11 +184,11 @@ NSInteger originalRow; // Ensure the drop is of the correct type - if (operation == NSTableViewDropAbove && row != -1 && [pboardTypes containsObject:@"SequelProPasteboard"]) { + if (operation == NSTableViewDropAbove && row != -1 && [pboardTypes containsObject:SPDefaultPasteboardDragType]) { // Ensure the drag originated within this table if ([info draggingSource] == tableView) { - originalRow = [[[info draggingPasteboard] stringForType:@"SequelProPasteboard"] integerValue]; + originalRow = [[[info draggingPasteboard] stringForType:SPDefaultPasteboardDragType] integerValue]; if (row != originalRow && row != (originalRow+1)) { return NSDragOperationMove; @@ -212,7 +212,7 @@ NSDictionary *originalRow; // Extract the original row position from the pasteboard and retrieve the details - originalRowIndex = [[[info draggingPasteboard] stringForType:@"SequelProPasteboard"] integerValue]; + originalRowIndex = [[[info draggingPasteboard] stringForType:SPDefaultPasteboardDragType] integerValue]; originalRow = [[NSDictionary alloc] initWithDictionary:[tableFields objectAtIndex:originalRowIndex]]; [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryWillBePerformed" object:tableDocumentInstance]; |