jeudi 26 février 2015

Support closing of a NSWindow presented as sheet via escape key


Vote count:

0




How do I setup an NSWindows (on OS X) to be closed when the user presses the escape key?



  • The window is presented as a sheet via presentingWindow.beginSheet(mySheetWindow, completionHandler:nil)

  • It has a close button (via IB) that has a key equivalent set to 'escape'. This close button is already working

  • Pressing escape leads to the system audio error output ('Funk' - Sound), but no logging and no closing of the window.



asked 2 mins ago







Support closing of a NSWindow presented as sheet via escape key

Aucun commentaire:

Enregistrer un commentaire