title: How to convert NSIndexpath into NSInteger or simply int?
body: <p>I need to convert a nsindexpath var into NsInteger or simply an int.
  e.g: </p>
  
  <pre><code> int rowIndex = [mGoogleBaseTable selectedRow];
   //mGoogleBaseTable is a NSTable type in Macdevelopement..
  </code></pre>
  
  <p>&amp;&amp;</p>
  
  <pre><code>int rowIndex = [mGoogleBaseTable indexPathForSelectedRow];
  //mGoogleBaseTable is a UITableView type in Iphone (iOS)Development.
  </code></pre>
  
  <p>selectedRow returns NSInteger simply but indexPathForSelectedRow returns a NSIndexPath..</p>
  
  <p>Please help me how can i achieve this.</p>