|
@@ -363,9 +363,9 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
|
|
|
}
|
|
|
|
|
|
func applicationWillTerminate(_ aNotification: Notification) {
|
|
|
- if (NSApp.orderedDocuments.count > 0) {
|
|
|
+ if (NSDocumentController.shared.documents.count > 0) {
|
|
|
var filepaths: [String] = []
|
|
|
- for document in NSApp.orderedDocuments {
|
|
|
+ for document in NSDocumentController.shared.documents {
|
|
|
// KMPrint(document.fileURL as Any)
|
|
|
if (document.fileURL?.path != nil) {
|
|
|
filepaths.append((document.fileURL?.path)!)
|