Post

Replies

Boosts

Views

Activity

Using tvOS apps with Big Sur & AS-Macs
One of the features of Big Sur and ARM-based Macs is that they can run iOS and iPadOS apps. The iOS app format is used for iPhones and iPods Touch. This format is reused for iPadOS apps. But isn't the format used, for the third time, for tvOS apps? I've read descriptions of iPhone/iPad/AppleTV triple-platform apps. So, can AS-Macs run tvOS-only apps too? If not, why? Wouldn't they be easier, since they're designed with taking a non-direct-touchscreen in mind?
0
0
409
Nov ’20
Is there a way to make Scene types with per-instance roots?
Just been watching some WWDC 2020 videos again, specifically "App essentials in SwiftUI". I wondered about the two different scene types shown. Most of the time was WindowGroup, but the end mentioned DocumentGroup. The DocumentGroup scene type allows instances to have separate root objects. But the examples of WindowGroup used a shared root, even though each scene kept independent values of where they were in the interface. Is there a way for a Scene type to be configured to allow independent roots? Can that be added if not? (Like DocumentGroup, a scene type allowing independent roots would need a separate View type to represent the "open-file dialog" equivalent to choose a root.) This is a rewording of a previous post - https://developer.apple.com/forums/thread/655037. I've also added an official feedback for this: FB8307528.
0
0
271
Aug ’20
Is there a way to make a new primitive Scene?
(Note: If it makes a difference, I'm a Mac developer.) In Swift UI 1, you create your application View instances by piecing together various Apple-supplied views. If they weren't sufficient, you could create new primitives with a hosting controller supporting a UIView/NSView setup. Is there a similar method for making new custom primitive Scene instances? What I read about the Apple-supplied ones so far don't cover: Making a mode-less dialog panel, which will have at most one instance. (If you activate the command for the panel when an instance already exists, the current instance is brought to the foreground, instead of making a second instance.) Making a setup similar to the Document system, but the source data are URL/URI/URNs instead of FileWrappers (i.e. the each pseudo-document is an internet download). A web browser would work like this. The ability of a window being made from a command off another window, and you want at least one of the two windows to keep a (weak) reference token to the other. Can this capability be added before the Fall releases if it isn't there already?
0
0
287
Jul ’20
Can't run Xcode 11.5 on Catalina Beta
I still have Xcode 11.0 on my alternate hard drive (SSD) with a Catalina beta installed. I tried installing 11.5, but the Mac App Store refused to do it. I found the general developer downloads site, and grabbed it from there. But the app icon has a white barred-circle around it and won't run. I think I have the latest beta on the hard drive ("10.15 Beta (19A582a)"). I'm also going to try Xcode 12.0 beta 2.
1
0
343
Jul ’20
How to I customize the KVC and KVO methods in Swift?
Normally, you just declare properties in your `NSObject`-derived class as `@objc` and `dynamic`, and Swift automatically makes those properties KVC- and KVO-compliant. But that can't be done all the time. The class's "public properties" may be forwarding to some hidden object, and/or you may want to throw NSError upon a validation failure. (Swift will/did-set accessors cannot error out; you can only `fatalError` if the value is wrong). There are KVC and KVO Guides, that for a given key name we can use methods with special names to get/set/validate keyed values. Those guides are in Objective-C; I'm wondering what the equivalent method name patterns are for Swift.(I want to dabble making a Mac app, planning to use KVC/O to connect the model to any actions affecting it. This means I need to way to transmit errors from trying to submit out-of-range values.)
1
0
620
Apr ’20