Other/Adium Spotlight Importer/GetMetadataForFile.m
branchadium-1.5.9
changeset 5749 1521cab508bf
parent 5722 4ae85ad012cd
child 5750 dad5f3048dc3
equal deleted inserted replaced
5726:44b2eacffae5 5749:1521cab508bf
   240 			[attributes setObject:otherAuthors
   240 			[attributes setObject:otherAuthors
   241 						   forKey:@"com_adiumX_chatDestinations"];
   241 						   forKey:@"com_adiumX_chatDestinations"];
   242 			//pick the first author for this.  likely a bad idea
   242 			//pick the first author for this.  likely a bad idea
   243 			if (startDate && [otherAuthors count]) {
   243 			if (startDate && [otherAuthors count]) {
   244 				NSString *toUID = [otherAuthors objectAtIndex:0];
   244 				NSString *toUID = [otherAuthors objectAtIndex:0];
   245 				NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] initWithDateFormat:@"%Y-%m-%d" allowNaturalLanguage:NO];
   245 				NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
   246 				[dateFormatter setFormatterBehavior:NSDateFormatterBehavior10_4];
   246 				dateFormatter.dateFormat = @"yyyy'-'MM'-'dd";
   247 				
   247 				
   248 				[attributes setObject:[NSString stringWithFormat:@"%@ on %@",toUID,[dateFormatter stringFromDate:startDate]]
   248 				[attributes setObject:[NSString stringWithFormat:@"%@ on %@",toUID,[dateFormatter stringFromDate:startDate]]
   249 							   forKey:(NSString *)kMDItemDisplayName];
   249 							   forKey:(NSString *)kMDItemDisplayName];
   250 				
   250 				
   251 				[dateFormatter release];
   251 				[dateFormatter release];