title: How to detect what class a parameter is from
body: <p>I have two classes, Class A and Class B.  They can both call the same method in a controller. The method they call takes in a <code>CGPoint</code>.  Is there any way I can determine which class the argument came from?</p>
  
  <p>I have tried using the following:</p>
  
  <pre><code>if ([point isKindOfClass:[_territoryPaths class]])
  {
      NSMutableDictionary *territoryPaths = [_territoryPaths territoryPaths];
  }
  
  if ([piont class] == [_territoryPaths class])
  {
      NSMutableDictionary *territoryPaths = [_territoryPaths territoryPaths];
  }
  </code></pre>
  
  <p><code>point</code> is the <code>CGPoint</code> that the method takes in.</p>