Post

Replies

Boosts

Views

Activity

Copying files via UIPasteboard in Catalyst - Sandbox problem?
Hi everybody,in my app I would like to provide the ability to copy files stored inside the app to the Files app or the Finder in macOS using Catalyst.On iOS, everything works fine with the following code: if let provider = NSItemProvider(contentsOf: url) { provider.suggestedName = pdfFilename UIPasteboard.general.url = url UIPasteboard.general.itemProviders = [provider] }But on macOS this doesn't work, if I execute this code I get the messages:[sandbox] CreateSandboxExtensionData failed: url null[general] Sandbox extension data required immediately for flavor public.file-url, but failed to obtain.Does anyone have an idea what I have to do here?
0
0
1.7k
Jun ’20
User interface style for NSToolbar on Catalyst
Hi, in my app the user can choose between a light and a dark appearance. This is done by setting the overrideUserInterfaceStyle of the window. On macOS (Catalyst) the app uses an NSToolbar, which always appears in the mode set for the system, regardless what ist set for the overrideUserInterfaceStyle of the window (see screenshot). Since this is not a good visual impression, I would like to know how I can set light/dark mode for the NSToolbar too.
2
0
1.5k
Dec ’21