title: Get all CFBundleTypeExtensions of an Info.plist
body: <p>I would like to get all the extensions of files my app can open. And I'd like to get them from my Info.plist. Right now I have this, but is there a better alternative?</p>
  
  <pre><code>NSMutableArray *types = [NSMutableArray new];
  NSArray *documentTypes = [[NSBundle mainBundle] objectForInfoDictionaryKey: @"CFBundleDocumentTypes"];
  for (NSDictionary *dict in documentTypes) {
      for (NSString *extension in [dict objectForKey: @"CFBundleTypeExtensions"])
          [types addObject: extension];
  }
  return [types autorelease];
  </code></pre>
  
  <p>Thanks in advance.</p>