Post

Replies

Boosts

Views

Activity

Comment on Drag-and-Drop from macOS Safari to NSItemProvider fails due to URL not being a file:// URL
Drag and dropping the image results in the same. I get one representation that's a public.jpeg from one provider. And when I try to do a LoadData to it, it errors exactly the same. URL SNIP is not a file:// URL. I didn't go further than this in code update since I knew the point was moot anyhow: itemProvider.loadItem(forTypeIdentifier: contentType.identifier, options: nil) { data, error in }
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’25
Comment on Drag-and-Drop from macOS Safari to NSItemProvider fails due to URL not being a file:// URL
The TIFF conversion is simple: If I ask for an (NS/CG/UI/Image) and drags it back, it's in TIFF. If I try to ask for a Data conversion, with the joys of Sendable, with SwiftData, I haven't found an easy way to recompress it, nor would I want to get lossy recompression of a file either. So the best bet is to get the source version. I told about the imperfect code because honestly, before getting a perfect code, I'm merely trying to make it work first, and get it correctly after.
Topic: UI Frameworks SubTopic: AppKit Tags:
Sep ’25
Comment on App Sandbox Xcode launch argument file access
That's pretty much it. The goal is to have some static data I can access at launch, and I can fine-tune every single time I run the app while developing it. Then, this will get picked up by git, so I can make final the changes I made, or discard them. The changes will happen every single run. But by design, not all will be kept once I review the changes. Which server to connect, splash to show, delays, volumes, settings. I could write them to Prefs and copy manually, but my mind is forgetful.
Topic: App & System Services SubTopic: Core OS Tags:
Feb ’23