Re: Canceling NSSavePanel Hang App
No, I have a non-sandboxed app and it works fine. I think the problem is that you are using NSSavePanel:runModal. If you look in the doc'n, it says:
"This method invokes NSApplication's runModalForWindow ..."
If it's doing that, then you need to cancel the modal yourslef (as with any call of runModalForWindow). Try putting a
in your "else" clause.
However, it may be simpler to use a sheet modal:
if (result == NSFileHandlingPanelOKButton)
self.saveFileURL = [[panel URLs] objectAtIndex:0];
You can spin the writing to a file off to a separate thread if it takes a long time.
Hope this helps,