From 4aadb783681e754e78e46eed5496dfa176b58e5e Mon Sep 17 00:00:00 2001 From: Bojan Rajkovic Date: Fri, 12 Jan 2018 14:24:42 -0500 Subject: [PATCH] Mac: Use NSurl.FromFilename when we know Cocoa is handing us a file. Fixes #158. --- Clients/Xamarin.Interactive.Client.Mac/AppDelegate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Clients/Xamarin.Interactive.Client.Mac/AppDelegate.cs b/Clients/Xamarin.Interactive.Client.Mac/AppDelegate.cs index 2afecf43e..26ebe8e87 100644 --- a/Clients/Xamarin.Interactive.Client.Mac/AppDelegate.cs +++ b/Clients/Xamarin.Interactive.Client.Mac/AppDelegate.cs @@ -196,7 +196,7 @@ public override bool OpenFile (NSApplication sender, string filename) { SessionDocumentController .SharedDocumentController - .OpenDocument (new NSUrl (filename)); + .OpenDocument (NSUrl.FromFilename (filename)); return true; }