Saving file to the same location in macOS app
<p>I have a problem of saving file to the same location in macOS app. I receive </p>

<pre><code>ImageIO: IIOImageWriteSession:111: cannot create: '/Users/user/Documents/image.jpg.sb-c437170c-8GQ3pE'
         error = 1 (Operation not permitted)
</code></pre>

<p>I have "Save as" feature and it works well. As far as I understand, you can't just save file without NSSavePanel. So what should I use to save file to the same location?</p>

<p>Thanks!</p>