diff options
Diffstat (limited to 'Frameworks/PSMTabBar')
-rw-r--r-- | Frameworks/PSMTabBar/PSMTabBarControl.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.m b/Frameworks/PSMTabBar/PSMTabBarControl.m index 5b72f1e6..fdd30396 100644 --- a/Frameworks/PSMTabBar/PSMTabBarControl.m +++ b/Frameworks/PSMTabBar/PSMTabBarControl.m @@ -305,7 +305,7 @@ { delegate = object; - NSMutableArray *types = [NSMutableArray arrayWithObject:@"PSMTabBarControlItemPBType"]; + NSMutableArray *types = [NSMutableArray arrayWithObjects:@"PSMTabBarControlItemPBType", NSStringPboardType,nil]; //Update the allowed drag types if ([self delegate] && [[self delegate] respondsToSelector:@selector(allowedDraggedTypesForTabView:)]) { @@ -1499,6 +1499,12 @@ userInfo:sender repeats:NO] retain]; } + //If user drags a text string to a tab switch to Custom Query Editor + if (![[[cell representedObject] identifier] isCustomQuerySelected] + && [[[sender draggingPasteboard] types] indexOfObject:NSStringPboardType] != NSNotFound) { + [[[cell representedObject] identifier] performSelector:@selector(viewQuery:) withObject:nil]; + NSLog(@"A"); + } } return NSDragOperationCopy; } |