title: for object in collection where object inherits
body: <p>In objective-c, is</p>
  
  <pre><code>for (Foo *foo in fooList) ...
  </code></pre>
  
  <p>more like which of the following</p>
  
  <pre><code>@interface Bar : Foo ...
  
  for (Foo *f in fooList) {
      // A:
      if ([f isMemberOfClass:[Foo class]]) ... // dont include Bar's
  
      // B:
      if ([f isKindOfClass:[Foo class]]) ... // both Foos and Bars
  }
  </code></pre>