I would like to create a macOS app without using Interface Builder.How must the Xcode macOS app template be modified after deleting Main.storyboard and its corresponding Info.plist lineto show a single simple window at startup?
Post
Replies
Boosts
Views
Activity
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?
I would like to change the color of the icon and the label of a NSToolbarItem in my Catalyst app, just like assigning a tint color to a UIButton.
How can I do this?
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.
Due to some problems with my app, I would like to make it "invisible" in the App Store for a while to stop acquiring new users, but I would like to be able to publish bugfix updates for the existing users.
Is this possible somehow?