 			return currentSlot?.state == .validCard
 		}
 	}
-	
+
 	func createDocumentFromCurrentCard() -> Document {
 		let document = Document()
 		document.address = currentAddress

			}
		}
		
//		Swift.print(try? NSDocumentController.shared.typeForContents(of: url))
//		Swift.print(try? NSDocumentController.shared.defaultType)
		
		return true
	}
	
	@objc func discardDocumentUnless(document: Document, didSave: Bool, with context: Any?) {
		if !didSave {
			document.close()
		}
	}
	
	@IBAction open func duplicateDocument(_ sender: Any?) {
		_ = createDocumentFromCurrentCard()
	}
	
	func applicationShouldOpenUntitledFile(_ sender: NSApplication) -> Bool {
		return false
	}
	
	override func validateMenuItem(_ menuItem: NSMenuItem) -> Bool {
		if (menuItem.tag == 2) {
			return true

		DispatchQueue.main.async {
			self.viewController?.address = nil
			self.viewController?.basicInfo = nil
		}
	}
	
