Changeset 24074
- Timestamp:
- 06/26/2008 09:11:37 PM (5 months ago)
- Files:
-
- trunk/Source/AIContactController.m (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Source/AIContactController.m
r24013 r24074 1029 1029 AIListContact *listContact; 1030 1030 AIMetaContact *metaContact = nil; 1031 1032 //Look for a n existing MetaContact we can use. The first one we find is the lucky winner.1031 1032 //Look for a metacontact we were passed directly 1033 1033 enumerator = [contactsToGroupArray objectEnumerator]; 1034 1034 while (!metaContact && (listContact = [enumerator nextObject])) { 1035 1035 if ([listContact isKindOfClass:[AIMetaContact class]]) { 1036 1036 metaContact = (AIMetaContact *)listContact; 1037 } else { 1038 metaContact = [contactToMetaContactLookupDict objectForKey:[listContact internalObjectID]]; 1039 } 1040 } 1041 1037 } 1038 } 1039 1040 //If we weren't passed a metacontact, look for an existing metacontact associated with a passed contact 1041 if (!metaContact) { 1042 enumerator = [contactsToGroupArray objectEnumerator]; 1043 while (!metaContact && (listContact = [enumerator nextObject])) { 1044 if (![listContact isKindOfClass:[AIMetaContact class]]) { 1045 metaContact = [contactToMetaContactLookupDict objectForKey:[listContact internalObjectID]]; 1046 } 1047 } 1048 } 1049 1042 1050 //Create a new metaContact is we didn't find one. 1043 1051 if (!metaContact) {