So the NSSavePanel currently returns a file url complete with extension, and your app has permission to write to that file.
Is there any way to allow the user to select a directory to write to? For example, if the app is exporting a dozen images at once, the names won't be specified by the user in advance.
You need NSOpenPanel.
NSOpenPanel * openPanel = [NSOpenPanel openPanel];
[openPanel setCanChooseFiles:NO];
[openPanel setCanChooseDirectories:YES];
[openPanel setAllowsMultipleSelection:NO];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With