title: Mouse Down events in Objective-C
body: <p>I know this question has been asked a lot before, but nothing will work for me. The following code will not do anything at all.</p>
  
  <pre><code>- (void) mouseDown:(NSEvent*)event {
      NSLog(@"It worked!");
  
  }
  </code></pre>
  
  <p>I have tried a lot of different methods to get this to work, including creating custom <code>NSEvents</code> in this way:</p>
  
  <pre><code>NSEvent *someEvent;
  
  - (void) mouseDown:(NSEvent*)someEvent {
      NSLog(@"It worked!");
  
  }
  </code></pre>
  
  <p>This is my .h file:</p>
  
  <pre><code>@interface test : NSWindow &lt;NSWindowDelegate&gt; {
  
  }
  </code></pre>
  
  <p>Would somebody explain how to make this do something?</p>