title: Comparison between a pointer and integer problem
body: <p>I have a conditional statement that I need some help with the syntax:</p>
  
  <pre><code>if (mySegment.selectedSegmentIndex == 0 &amp;&amp; [[[dict objectForKey:[keys objectAtIndex:row]] objectAtIndex:0] == 8 ) {
  NSLog(@"test");
  }
  </code></pre>
  
  <p>I'm getting a <code>comparison between a pointer and integer problem</code> warning. I need a conditional based on a selection of a segment value and then compare that to a value returned from a dictionary object.</p>
  
  <p>thanks for any help.</p>