INNER CODE UNIT · Swift

stopServer

gcollazo/mongodbapp · MongoDB/AppDelegate.swift:88

    func stopServer() {
        print("Terminate mongod")
        task.terminate()
        
        let data: Data = self.file.readDataToEndOfFile()
        self.file.closeFile()
        
        let output: String = NSString(data: data, encoding: String.Encoding.utf8.rawValue)! as String
        print(output)
    }
    
    @objc func openDocumentationPage(_ send: AnyObject) {
        if let url: URL = URL(string: "https://github.com/gcollazo/mongodbapp") {
            NSWorkspace.shared.open(url)
        }
    }
    
    @objc func openLogsDirectory(_ send: AnyObject) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…