Posts

Post not yet marked as solved
0 Replies
318 Views
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?
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
0 Replies
622 Views
In the original SwiftUI, you still used NSWindow and friends, so the older techniques would work. But with SwiftUI 2 taking over all of the command reception and handling, where is printing supposed to be recognized (and the PDF or whatever gets sent back)?
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
0 Replies
141 Views
As seen in the WWDC 2020 videos, the ways Scene instances can be initialized are constrained by what is present in the App instance's definition. Is there a way for a scene to produce another, where the first scene can use the initialization arguments to control how much it shares or doesn't share with the new scene?
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
0 Replies
177 Views
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.
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
1 Replies
230 Views
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.
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
0 Replies
194 Views
(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?
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
3 Replies
1k Views
I found the SASL libraries poking around with "ls." Is there a wrapper library in Apple's frameworks for it? At the Documentation site, I did see a "GSS" framework; does that do all the parts of SASL?
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
0 Replies
523 Views
I want a modeless dialogue panel in Mac OS that has at most one instance on screen at a time. I can figure how to do it with AppKit and/or Swift UI 1. But can the new WindowGroup stuff have its count of active windows limited to one? Alternatively, can we mix in windows made the traditional way along with a Swift UI 2 App/Scene set up?
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
1 Replies
492 Views
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.)
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
3 Replies
412 Views
Exactly as the (current) subject says. We can use URLSession objects to create various tasks, subclasses of URLSessionTask. But if you only have a reference to a task, is there some sort of property to get a reference to its source session?This is a variant of a question I postedlong ago.
Posted
by CTMacUser.
Last updated
.
Post not yet marked as solved
2 Replies
2.7k Views
I was just following links from a forum on the Swift language, and I found a Network.framework library on Apple's documentation pages. The types themselves don't have took mauch documentation. Since I'm just curious and don't have any applicable projects right now, is there some blog pages (or the like) that have insturctions on how to use the various types?
Posted
by CTMacUser.
Last updated
.