Changeset 24117
- Timestamp:
- 06/30/2008 03:14:06 PM (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Frameworks/Adium Framework/Source/AIListOutlineView.m
r24110 r24117 710 710 711 711 if ([[[sender draggingPasteboard] types] containsObject:@"AIListObjectUniqueIDs"]) { 712 [super draggingEntered:sender]; 712 713 return NSDragOperationMove; 714 713 715 } else { 714 716 return [super draggingEntered:sender]; … … 718 720 - (void)draggingExited:(id <NSDraggingInfo>)sender 719 721 { 722 [super draggingExited:sender]; 723 720 724 if (NSPointInRect([sender draggingLocation], [[[self window] contentView] frame])) { 721 725 return; … … 728 732 [[NSNotificationCenter defaultCenter] postNotificationName:@"AIListOutlineViewUnlockGroup" 729 733 object:[NSNumber numberWithBool:unlockingGroup]]; 730 [super draggingExited:sender];731 734 } 732 735 … … 738 741 - (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation 739 742 { 743 [super draggedImage:anImage endedAt:aPoint operation:operation]; 744 740 745 NSArray *dragUniqueIDs = nil; // Items being dragged 741 746 NSEnumerator *idEnumerator = nil; … … 748 753 //The drag was canceled 749 754 //If nothing is being dragged, stop now. (How would this happen? -evands) 750 [[self dataSource] outlineView:self draggedImage:anImage endedAt:aPoint operation:operation];751 [self setNeedsDisplay:YES];752 755 return; 753 756 } … … 786 789 } 787 790 788 dragContent = nil; 789 790 [self setNeedsDisplay:YES]; 791 [[self dataSource] outlineView:self draggedImage:anImage endedAt:aPoint operation:operation]; 791 dragContent = nil; 792 792 } 793 793 … … 804 804 NSArray *objects = [pboard propertyListForType:@"AIListObjectUniqueIDs"]; 805 805 AIListObject *item = [[[AIObject sharedAdiumInstance] contactController] existingListObjectWithUniqueID:[objects objectAtIndex:0]]; 806 if([item isKindOfClass:[AIListGroup class]]) 806 if([item isKindOfClass:[AIListGroup class]]) { 807 AILog(@"objects %@; slideflag %i", objects, slideFlag); 807 808 slideFlag = NO; 808 } 809 809 } 810 } 811 810 812 [super dragImage:anImage 811 813 at:viewLocation