I have a NSSavePanel and I want to handle the "Cancel" button action to prevent closing the sheet. A want to show the confirmation alert above the savePanel sheet like it is done if you want to overwrite file when saving.
What is the best way to implement this?
Thanks
Some thing like this should work for you-
For additional details you can go through this document - Introduction to Sheets