0

I am making app with cocoa(Mac desktop application). I have a NSButton in background of an NSView. The button is clicked even if any NSView is added later in NSWindow.

How to stop click on a button that is at background any NSView ?

Please give suggestion!!!

Waiting for reply!!!

Thanks in Advance :)

Marc
  • 6,051
  • 5
  • 26
  • 56

1 Answers1

0

Whenever you add a view above your button, disable your button using

 [button setEnabled:FALSE];
Neha
  • 1,751
  • 14
  • 36