adium 4853:0a50dcf69274: This is an array, enumerate it as an ar...
commits at adium.im
commits at adium.im
Fri Jun 8 10:54:44 UTC 2012
details: http://hg.adium.im/adium/rev/0a50dcf69274
revision: 4853:0a50dcf69274
branch: (none)
author: Thijs Alkemade <thijsalkemade at gmail.com>
date: Fri Jun 08 12:53:55 2012 +0200
This is an array, enumerate it as an array.
Fixes #16026
diffs (17 lines):
diff -r 533e759d7f1a -r 0a50dcf69274 Frameworks/AIUtilities Framework/Source/AIBundleAdditions.m
--- 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) {
More information about the commits
mailing list