Adium

Changeset 24079

Show
Ignore:
Timestamp:
06/28/2008 12:46:23 AM (6 months ago)
Author:
evands
Message:

Removed an optimization which has been in place forever and just causes weird behavior. There's no reason to attempt to lump together notifications for attribute changes; at the cost of a few extra redraws of specific rows of the contact list, we lose the ability to reliably respond to changes. This fix is key to address book syncing working properly, among other things.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/AdiumContactPropertiesObserverManager.m

    r24011 r24079  
    162162                        [[adium contactController] sortListObject:inObject]; 
    163163        } 
    164                 
    165         //Post an attributes changed message 
    166                [[adium notificationCenter] postNotificationName:ListObject_AttributesChanged 
    167                                                                                                  object:inObject 
    168                                                                                                userInfo:(inModifiedKeys ? 
    169                                                                                                                  [NSDictionary dictionaryWithObject:inModifiedKeys 
    170                                                                                                                                                                          forKey:@"Keys"] : 
    171                                                                                                                   nil)]; 
    172         } 
     164        } 
     165 
     166        //Post an attributes changed message 
     167        [[adium notificationCenter] postNotificationName:ListObject_AttributesChanged 
     168                                                                                          object:inObject 
     169                                                                                        userInfo:(inModifiedKeys ? 
     170                                                                                                          [NSDictionary dictionaryWithObject:inModifiedKeys 
     171                                                                                                                                                                 forKey:@"Keys"] : 
     172                                                                                                         nil)];         
    173173} 
    174174 
     
    200200                                shouldSort = YES; 
    201201                        } 
    202                         [[adium notificationCenter] postNotificationName:ListObject_AttributesChanged 
    203                                                                                                           object:nil 
    204                                                                                                         userInfo:(delayedModifiedAttributeKeys ? 
    205                                                                                                                           [NSDictionary dictionaryWithObject:delayedModifiedAttributeKeys 
    206                                                                                                                                                                                   forKey:@"Keys"] : 
    207                                                                                                                           nil)]; 
    208202                        [delayedModifiedAttributeKeys removeAllObjects]; 
    209203                        delayedAttributeChanges = 0;