title: No visible interface for nsmutabledictionary declares the selector setobject:forkey:
body: <p>Can anyone point out why am i receiving the compile error for</p>
  
  <pre><code>[objToSend setObject:self.pathidEdit forkey:@"PathId"];
  [objToSend setObject:indexData forkey:@"data"];
  </code></pre>
  
  <p>in the following code?</p>
  
  <pre><code>NSMutableArray *indexData = [[NSMutableArray alloc]init];
  
          NSMutableDictionary *dict = [NSMutableDictionary dictionary];
          NSMutableDictionary *objToSend = [NSMutableDictionary dictionary];
  
          for(int i=0;i&lt;myPathvideoArray.count;i++)
          {
  
  
          NSString *vId=[[myPathvideoArray objectAtIndex:i]valueForKey:@"videoId"];
      NSNumber *indexNum = [NSNumber numberWithInt:i+1];
  
              [dict setObject:vId forKey: @"VideoId"];
  
              [dict setObject:indexNum forKey: @"index"];
  
              [indexData addObject:dict];
  
  
  
          }
  
          [objToSend setObject:self.pathidEdit forkey:@"PathId"];
          [objToSend setObject:indexData forkey:@"data"];
  </code></pre>