My app generates many files as large as 12 GB (limited by memory) and I use Picker() to select which to reload with FileManager(). The larger files can take three minutes to load (M2 Mini Pro) and it would be nice to have progress indication like Apple's App Store downloads with the mini spinner, file size and bytes loaded.
From what I've read in "Developer Documentation", I must use a URLdelegate instance I have created, not the shared delegate, when effecting a URL download. "Downloading files in the Background" shows iOS code, not macOS, and it also uses a "shared" delegate.
A post, here, dated years ago said what I seek is not possible and I have not found recent sample code to show otherwise.
Can anyone shed light on this?
Thanks
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
SceneKit SCNScene MacOS 15.1 Xcode 16.0
SceneView(scene: , options:[autoenablesDefaultLighting, allowsCameraContol]
there is:
.rootNode.cameraNode
.rootNode.camera
.rootNode.nestedChildNodes each with its own animation
when the object is animated and dragged by mouse to change the view point, I can't return the view to the previous view.
I have reinstated a clone of the original cameraNode, positions of all childNodes, removed and re-activated all animations... in vain.
I have also cloned, removed and replaced .rootNode.camera, in vain.
The documentation states the camera is "attached" to an SCNNode but does not say how. I make no declaration to associate .rootNode.cameraNode to .rootNode.camera yet if either is absent there is no scene to view.
What am I missing?
Thanks
Topic:
Graphics & Games
SubTopic:
SceneKit
I accidentally added my ContentView for my project into my local Developer Documentation and I cannot get rid of it.
The Edit/delete menu item is dim when my file is selected.
Topic:
Developer Tools & Services
SubTopic:
Xcode
I have "http://localhost:8080" showing the index page I've created but php is not handled though an extension is running.
Haven't even tried mySQL yet but since there is no reference to it in https.conf the same problem will exist. Homebrew extension running also.
https.conf:
#PHP was deprecated in macOS 11 and removed from macOS 12
#LoadModule php7_module libexec/apache2/libphp7.so
There are no php.so files on my machine and again no mention of mysql
What should I enter in http.conf to activate these functionalities?
Thanks.
PS could you reference a tutorial on using Safari and Web inspector
by selecting Help under my Help menu item or cmd-h no window appears until the menu bar is touched.
myApp.swift file:
import SwiftUI
import QuickLook
@main
struct myApp: App {
@Environment(\.openWindow) var openWindow
@State var helpURL: URL? = nil
var body: some Scene {
WindowGroup {
ContentView()
}
.commandsReplaced {
CommandGroup(before: .appInfo) {
Button("Quit") {
NSApp.terminate(nil)
}.keyboardShortcut("q")
}
CommandGroup(before: .help) {
//FIXME: only shows help if the menu bar is touched again.
Button("Help") {
helpURL = Bundle.main.url(forResource: "help", withExtension: "txt")
}
.keyboardShortcut("h")
.quickLookPreview($helpURL)
}
}
}
}
How should this be coded for proper action?
Thanks
Topic:
App & System Services
SubTopic:
General
it may not deliver what you expect. For example:
if you are using NASA/JPL/Standish equations of heliocentric planetary motion, it requires:
"3. Modulus the mean anomaly (M) so that -180deg<=M<=+180deg and then obtain the eccentric anomaly, E, from the solution of Kepler's equation..."
If you attempt to use the Swift "Modulo operator, %" you'll get the Xcode directive to use truncatingRemainder instead.
Which IS better than % because of this note in "The Swift Programming Language (Swift 5.3)":
"“NOTE
The remainder operator (%) is also known as a modulo operator in other languages. However, its behavior in Swift for negative numbers means that, strictly speaking, it’s a remainder rather than a modulo operation.”
Excerpt From
The Swift Programming Language (Swift 5.3)
Apple Inc.
https://books.apple.com/us/book/the-swift-programming-language-swift-5-5/id881256329
This material may be protected by copyright.
But you should try truncatingRemainder in your playground!
Let: 0deg = 12 O'clock, 180/-180deg = 6 O'clock, -90deg = 9 O'clock and +90deg = 3 O'clock
Now run this on your playground:
let M = -181.25
var M180 = M
while M180 > 180.0 { M180 -= 360.0 }
while M180 < -180.0 { M180 += 360.0 }
print("M = \(M)\t\tM180 = \(M180)\t\tM.truncatingRemainder(dividingBy: 180.0) = \(M.truncatingRemainder(dividingBy: 180.0))\t\tM.truncatingRemainder(dividingBy: 360.0) = \(M.truncatingRemainder(dividingBy: 360.0))")
and you'll get this result:
M = -181.25
M180 = 178.75
M.truncatingRemainder(dividingBy: 180.0) = -1.25
M.truncatingRemainder(dividingBy: 360.0) = -181.25
Thus, truncatingRemainder(dividingBy: 180.0) puts your planet 180deg away from where it should be, while M180 keeps the planets moving without quantum leaps.
MAGMA API runs on NVIDIA or AMD GPU's via CUDA.
Are there plans to code Accelerate for Metal?
Thanks
I have a small .mov I created using screenshot and I want to use it as a preview. I have managed to resize it to the required 1920x1080, added a sound track using ffmpeg (home-brew), drop it into an iMovie App preview project, share it as a file, drag that file to App Store Connect/Apps/myApp/"App previews and Screenshots" only to have it rejected for "frame rate too high", 30 fps required. There appears to be no way to specify frame rate in "Screenshot" nor iMovie during "share". Aside from using a third party app "Handbrake" to edit the file, what can be done?
Maybe more importantly, why is 30 fps required when it isn't a standard output of screenshot nor iMovie/AppPreviewProject ?
btw: iMovie/AppPreview/Help shows submittal of non-1920x1080 files to AppStoreConnect
Topic:
App Store Distribution & Marketing
SubTopic:
App Store Connect
Tags:
Image I/O
Media Player
App Store Connect