title: Fast Enumeration With an NSMutableArray that holds an NSDictionary
body: <p>Is it possible to use fast enumeration with an NSArray that contains an NSDictionary?</p>
  
  <p>I'm running through some Objective C tutorials, and the following code kicks the console into GDB mode</p>
  
  <pre><code>NSMutableArray *myObjects = [NSMutableArray array];
  NSArray *theObjects = [NSArray arrayWithObjects:@"easy as 1",@"easy as two", @"Easy as Three"];
  NSArray *theKeys    = [NSArray arrayWithObjects:@"A",@"B",@"C"];    
  NSDictionary *theDict = [NSDictionary dictionaryWithObjects:theObjects forKeys:theKeys];
  [myObjects addObject:theDict];
  
  for(id item in myObjects)
  {
      NSLog(@"Found an Item: %@",item);
  }
  </code></pre>
  
  <p>If I replace the fast enumeration loop with a traditional counting loop</p>
  
  <pre><code>int count = [myObjects count];
  for(int i=0;i&lt;count;i++)
  {
      id item;
      item = [myObjects objectAtIndex:i];
      NSLog(@"Found an Item: %@",item);
  }
  </code></pre>
  
  <p>The application runs without a crash, and the dictionary is output to the console window.</p>
  
  <p>Is this a limitation of Fast Enumeration, or am I missing some subtly of the language? Are there other gotchas when nesting collections like this?  </p>
  
  <p>For bonus points, how could I used GDB to debug this myself?</p>