title: MacOS swift why is getting image with path using NSUrl giving error "The file does not exist."
body: <p>I'm trying to get an image from a url path:</p>
  
  <pre><code>    @IBOutlet var pathControl: NSPathControl!
      let imgUrl = NSURL.fileURL(withPath: pathControl.stringValue)
  </code></pre>
  
  <p>which when i print it, it gives gives me:</p>
  
  <pre><code>    file:/Users/tristan/Images/simpson_bg.jpg -- file:///Users/tristanc/Library/Containers/com.parab3llum.Gif-wallpaper/Data/
  Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist.
  </code></pre>
  
  <p>This file is confirmed existing since I use path control. Yet I still get the error:</p>
  
  <pre><code>Error Domain=NSCocoaErrorDomain Code=4 "The file doesn’t exist.
  </code></pre>