title: How make custom view and over it's NSButton is clickable in macOS swift?
body: <p>I've <code>NSButton</code> in <code>NSView</code>. The <code>NSView</code> has <code>NSClickGestureRecognizer</code>. Now I am able to get <code>action</code> from <code>NSView</code> that have <code>NSClickGestureRecognizer</code>. But the problem is <code>NSButton</code> is not able click.</p>
  
  <p>How can I solve this problem?</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>import Cocoa
  
  class ViewController: NSViewController {
  
      @IBAction func actionGesture(_ sender: NSClickGestureRecognizer) {
  
          print("Gesture Clicked!")
      }
  
      @IBAction func actionButton(_ sender: NSButton) {
               print("Button Clicked!")
      }
  
  }
  </code></pre>
  
  <p><strong>Screenshot:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/tU084.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tU084.png" alt="enter image description here"></a></p>
  
  <p><strong>Project Link:</strong>
  <a href="https://drive.google.com/open?id=1HmbKiqdF9z7SH131IyyfJ21j8KOgabzl" rel="nofollow noreferrer">https://drive.google.com/open?id=1HmbKiqdF9z7SH131IyyfJ21j8KOgabzl</a></p>