title: Objective-C error... Cannot convert to pointer type (int)
body: <p>I am attempting to use the TouchXML library and followed the example with the following code</p>
  
  <pre><code>for (CXMLElement node in nodes) {
              NSMutableDictionary *item = [[NSMutableDictionary alloc] init];
              int counter;
              for (counter = 0; counter &lt; [node childCount]; counter++ ) {
                  [item setObject:[[node childAtIndex:counter] stringValue] forKey:[[node childAtIndex:counter] name]];
              }
  
              [rst addObject:item];
              [item release];
  
          }
  </code></pre>
  
  <p>The compiler however is complaining about <code>counter</code> and throwing the following error for <code>counter = 0</code> and both occurances in the <code>setObject</code> call.</p>
  
  <p>Cannot convert to pointer type</p>
  
  <p>Any help with my rusty C/ObjC would be appreciated</p>