title: Objective-C : Call a method from another class in addTarget:action:forControlEvents
body: <p>Here is my problem :</p>
  
  <p>I want to assign an Event on an UIButton. I use this method :</p>
  
  <p><pre><code>
  - (void)addTarget:(id)target
  action:(SEL)action
  forControlEvents:(UIControlEvents)controlEvents
  </pre></code></p>
  
  <p>like this :
  <pre><code>
  [newsButton addTarget:self
  action:@selector(myEvent2)
  forControlEvents:UIControlEventTouchUpInside];
  </pre></code></p>
  
  <p>newsButton is my UIButton.</p>
  
  <p>If myEvent2 belongs to the class where I am, the code is compiling and executing fine, everybody is happy.</p>
  
  <p>But if myEvent2 belongs to another class I don't succeed to execute it (the project compiles fine).</p>
  
  <p>I tried out to change my code in that way : 
  <pre><code>
  MyViewController* test = [[MyViewController alloc] init];
  [newsButton addTarget:self
  action:@selector([test myEvent2])
  forControlEvents:UIControlEventTouchUpInside];
  </pre></code></p>
  
  <p>but I get the followings errors :</p>
  
  <blockquote>
    <p>Expected ':' before '[' token</p>
    
    <p>Method name missing in @selector</p>
  </blockquote>
  
  <p>Does someone have any solution to my problem ?</p>
  
  <p>Thanks by advance :)</p>