Changeset 24495
- Timestamp:
- 07/31/2008 08:18:16 AM (5 months ago)
- Files:
-
- trunk/Source/AdiumContactPropertiesObserverManager.h (modified) (2 diffs)
- trunk/Source/AdiumContactPropertiesObserverManager.m (modified) (2 diffs)
- trunk/Source/AIContactController.m (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/AdiumContactPropertiesObserverManager.h
r24452 r24495 19 19 20 20 BOOL updatesAreDelayed; 21 NSMutableSet *changedObjects; 21 22 22 23 BOOL informingObservers; … … 41 42 - (void)_updateAllAttributesOfObject:(AIListObject *)inObject; 42 43 43 - (void)noteContactChanged ;44 - (void)noteContactChanged:(AIListObject *)inObject; 44 45 45 46 @end trunk/Source/AdiumContactPropertiesObserverManager.m
r24150 r24495 222 222 } 223 223 } 224 225 [changedObjects autorelease]; changedObjects = nil; 224 226 } 225 227 … … 400 402 } 401 403 402 - (void)noteContactChanged; 403 { 404 - (void)noteContactChanged:(AIListObject *)inObject; 405 { 406 if (!changedObjects) 407 changedObjects = [[NSMutableSet alloc] init]; 408 [changedObjects addObject:inObject]; 409 404 410 delayedContactChanges++; 405 411 } trunk/Source/AIContactController.m
r24332 r24495 484 484 { 485 485 if ([contactPropertiesObserverManager updatesAreDelayed]) { 486 [contactPropertiesObserverManager noteContactChanged ];486 [contactPropertiesObserverManager noteContactChanged:object]; 487 487 488 488 } else { … … 1264 1264 { 1265 1265 if ([contactPropertiesObserverManager updatesAreDelayed]) { 1266 [contactPropertiesObserverManager noteContactChanged ];1266 [contactPropertiesObserverManager noteContactChanged:inObject]; 1267 1267 1268 1268 } else { … … 1551 1551 - (void)account:(AIAccount *)account didStopTrackingContact:(AIListContact *)inContact 1552 1552 { 1553 [contactDict removeObjectForKey:[[inContact class] internalUniqueObjectIDForService:[inContact service] 1554 account:account 1555 UID:[inContact UID]]]; 1553 [[inContact retain] autorelease]; 1554 [contactDict removeObjectForKey:[inContact internalUniqueObjectID]]; 1556 1555 } 1557 1556