adium/adium

0a50dcf69274
Parents 533e759d7f1a
Children 90ccc4c599df
This is an array, enumerate it as an array.

Fixes #16026
--- a/Frameworks/AIUtilities Framework/Source/AIBundleAdditions.m Fri Jun 08 01:44:28 2012 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIBundleAdditions.m Fri Jun 08 12:53:55 2012 +0200
@@ -40,10 +40,10 @@
- (NSSet *)supportedDocumentExtensions
{
NSMutableSet *supportedDocumentTypes = [NSMutableSet set];
- NSDictionary *documentTypes = [[self infoDictionary] objectForKey:@"CFBundleDocumentTypes"];
-
+ NSArray *documentTypes = [[self infoDictionary] objectForKey:@"CFBundleDocumentTypes"];
+
//Look at each dictionary in turn
- [documentTypes enumerateKeysAndObjectsUsingBlock:^(id key, id documentType, BOOL *stop) {
+ [documentTypes enumerateObjectsUsingBlock:^(id documentType, NSUInteger idx, BOOL *stop) {
//The @"CFBundleTypeExtensions" key yields an NSArray of supported extensions
NSArray *extensions = [documentType objectForKey:@"CFBundleTypeExtensions"];
if (extensions) {