I read through NSSavePanel, but I don't see any access to the default panel object that gets created by runModalSavePanelForSaveOperation to get the result?
I just found that my problem was caused by a recent change to my code where I wanted to know when the default save panel was done (for scripting options). I did that by using the documented selector of
document:didSave:contextinfo
It works in Ventura. In Somoma the selector always gets called after panel is done (for delete, cancel, or save), but it seems to prevents standard actions from happen such as closing a deleted file or even closing a file that was saved after clicking a close box. If I removed calls to that selector all is working as expected.
Seems I need a new way to hear when default panel is done? It is easy for saves, but how to hear if the panel save was cancelled?
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: