I've been working on a project that changes the desktop image, which I've been accomplishing like so:
[[NSWorkspace sharedWorkspace] setDesktopImageURL:fileURL forScreen:[NSScreen mainScreen] options:[NSDictionary dictionary] error:&error];
This works, but gives me no control over the scaling. I'd like to be able to choose scaling options programatically as you can in the UI (fill screen, fit to screen, stretch to fill screen, center, tile), but I can find no documentation explaining how to do so. Worse than that, calling the above method always resets the scaling to "fill screen".
Any assistance would be greatly appreciated. Thanks for your time and help!