title: How can I use NSNotificationCenter to call a method in a second class?
body: <p>I'm trying to use <code>NSNotificationCenter</code> to call a method in a second class but I'm getting an error:</p>
  
  <p>second class method(request.m) :</p>
  
  <pre><code>-(void)getTheRequest:(NSString *)whereToCall;
  </code></pre>
  
  <p>and I'm trying to call it from <code>NSNotificationCenter</code> like this:</p>
  
  <pre><code>request *newRequest=[[request alloc]init];
  [self performSelector:@selector(newRequest.getTheRequest:) withObject:@"mySite"];
  </code></pre>
  
  <p>but I'm getting a error in this part "newRequest.getTheRequest" it says "Expected Expression". Any of you know how I can fix this or how can I use <code>NSNotificationCenter</code> to call a methods in a different classes?</p>