Adium

Changeset 24117

Show
Ignore:
Timestamp:
06/30/2008 03:14:06 PM (5 months ago)
Author:
evands
Message:

Call super's implementation of draggingEntered:, draggingExited:, and draggedImage:endedAt:operation:. This breakage brought to you by draggable groups. Fixes drag highlights persisting after a drag ends, among other problems. Fixes #10195

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Frameworks/Adium Framework/Source/AIListOutlineView.m

    r24110 r24117  
    710710 
    711711        if ([[[sender draggingPasteboard] types] containsObject:@"AIListObjectUniqueIDs"]) { 
     712                [super draggingEntered:sender]; 
    712713                return NSDragOperationMove; 
     714 
    713715        } else { 
    714716                return [super draggingEntered:sender]; 
     
    718720- (void)draggingExited:(id <NSDraggingInfo>)sender 
    719721{ 
     722        [super draggingExited:sender]; 
     723 
    720724        if (NSPointInRect([sender draggingLocation], [[[self window] contentView] frame])) { 
    721725                return; 
     
    728732        [[NSNotificationCenter defaultCenter] postNotificationName:@"AIListOutlineViewUnlockGroup" 
    729733                                                                                                                object:[NSNumber numberWithBool:unlockingGroup]]; 
    730         [super draggingExited:sender]; 
    731734} 
    732735 
     
    738741- (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation 
    739742{ 
     743        [super draggedImage:anImage endedAt:aPoint operation:operation]; 
     744 
    740745        NSArray                 *dragUniqueIDs = nil;   // Items being dragged 
    741746        NSEnumerator    *idEnumerator = nil;     
     
    748753                //The drag was canceled 
    749754                //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]; 
    752755                return; 
    753756        } 
     
    786789        } 
    787790         
    788         dragContent = nil; 
    789          
    790         [self setNeedsDisplay:YES]; 
    791         [[self dataSource] outlineView:self draggedImage:anImage endedAt:aPoint operation:operation];  
     791        dragContent = nil;       
    792792} 
    793793 
     
    804804                NSArray *objects = [pboard propertyListForType:@"AIListObjectUniqueIDs"]; 
    805805                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); 
    807808                        slideFlag = NO; 
    808         } 
    809                  
     809                } 
     810        } 
     811 
    810812        [super dragImage:anImage 
    811813                                  at:viewLocation