title: Weird NSDictionary crash
body: <p>I have the following code:</p>
  
  <pre><code>NSDictionary *dict = [[NSDictionary alloc]
            initWithObjectsAndKeys:myarray1, @"array1", myarray2, @"array2" nil];
  
  NSArray *shorts =[[dict allKeys] sortedArrayUsingSelector:@selector(compare:)];
  
  for (NSString *dir in shorts) {
      NSArray *tempArr = [dict objectForKey:dir];
      for (NSString *file in tempArr ) {
          NSLog(@"%@", file);
      }
  }
  </code></pre>
  
  <p>Where myarray1 and myarray2 are NSArrays.</p>
  
  <p>When I execute the code the application crashes with:</p>
  
  <pre><code>-[NSCFString countByEnumeratingWithState:objects:count:]: unrecognized selector sent to instance 0x1d134
  </code></pre>
  
  <p>This is apparently the tempArr, which is not recognized as an NSArray. I know that <code>[dicFiles objectForKey:dir]</code> returns an <code>id</code> type object, but as a generic type, I cannot get what I'm doing wrong.</p>