aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTextView.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2011-05-05 19:10:04 +0000
committerstuconnolly <stuart02@gmail.com>2011-05-05 19:10:04 +0000
commit47a1c49e95403e6da6c9e0ae979144fd5c1dff08 (patch)
tree9a2d09926682834c5cffefc85a1d7235849e88b7 /Source/SPTextView.m
parentde27c6e8f75c00cf5f28fdd5d6f8f1acc740320d (diff)
downloadsequelpro-47a1c49e95403e6da6c9e0ae979144fd5c1dff08.tar.gz
sequelpro-47a1c49e95403e6da6c9e0ae979144fd5c1dff08.tar.bz2
sequelpro-47a1c49e95403e6da6c9e0ae979144fd5c1dff08.zip
Small tidy up, mainly the addition of constants.
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r--Source/SPTextView.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m
index fa01709e..cb0e4d9e 100644
--- a/Source/SPTextView.m
+++ b/Source/SPTextView.m
@@ -3444,13 +3444,13 @@ NSInteger _alphabeticSort(id string1, id string2, void *reverse)
}
// Insert selected items coming from the Navigator
- if ( [[pboard types] containsObject:@"SPDragFromNavigatorPboardType"] ) {
+ if ( [[pboard types] containsObject:SPNavigatorPasteboardDragType] ) {
NSPoint draggingLocation = [sender draggingLocation];
draggingLocation = [self convertPoint:draggingLocation fromView:nil];
NSUInteger characterIndex = [self characterIndexOfPoint:draggingLocation];
[self setSelectedRange:NSMakeRange(characterIndex,0)];
- NSKeyedUnarchiver *unarchiver = [[[NSKeyedUnarchiver alloc] initForReadingWithData:[pboard dataForType:@"SPDragFromNavigatorPboardType"]] autorelease];
+ NSKeyedUnarchiver *unarchiver = [[[NSKeyedUnarchiver alloc] initForReadingWithData:[pboard dataForType:SPNavigatorPasteboardDragType]] autorelease];
NSArray *draggedItems = [[NSArray alloc] initWithArray:(NSArray *)[unarchiver decodeObjectForKey:@"itemdata"]];
[unarchiver finishDecoding];