Posts

Post not yet marked as solved
1 Replies
511 Views
I'm about to embark on quite a major new software release. It's a time-line based app (like iMovie or Final Cut Pro X) but it's not video editing. It's more like video arranging. (The app arranges video and audio clips for massive multi-screen displays, and then captures metadata from cameras and actors, while the videos are playing.). They don't play from the editor machine - it uploads them to client 'players' and simply controls and synchronises the playback of them. It will be exclusively for macOS (so no Windows or Linux) so I don't need anything which is cross-platform. There will be up to 100 'tracks' in the timeline, and on each track are multiple media clips (videos, animations, audio, etc) and each clip should show a thumbnail preview, and/or audio waveform. There will also be a preview pane in the UI, where any one selected media clip can be previewed, and an asset manager, and optional panes like data visualisers etc. So my questionn is, is SwiftUI a good choice for a complex userinterface, with a time-line style work area like this?
Posted Last updated
.
Post not yet marked as solved
10 Replies
3.4k Views
(Working on macOS and targetting macOS 10.11)I'm having trouble getting my head around decoding a given 'secret message' using a given Public Key.The 'secret message' is obtained from a device SDK call.The public key is given to me by the device manufacturer.The encyptedAPIToken is also gained from a SDK call to the device.The idea is to decode the secret using the public key. This yields a value which is then used to decode another secret using SHA-256, the final result is used as a token in HTTP GET and PUT headers to the device.The instructions from the device manufacturer are as shown in this picture.Since I can't embed images in this post, incase you can't see that, it says :1. Get the Public Key from the manufacturer.2. Decrpyt secret message with public key using RSA algorithm.3. Decrpyt encryptedAPIToken using SHA-256 algorithm using value gained in step 2.So that all seems pretty reasonable.Except I am having real trouble finding a way to decrpyt the secret message with the given public key.All the Objective-C/Swift examples I can find are for iOS which uses SecKeyRef - which is not availble on macOS.I found "Quin The Eskimo"'s CryptoCompatibility sample code from a few years back, but when I run it, like this:./CryptoCompatibility rsa-small-decrypt public.pem sigWhere "public.pem" is my public key, and sig is the secret in a text file, I get this error:CryptoCompatibility: error: NSOSStatusErrorDomain / -25256I am struggling to find examples of how to decrpyt a message using an RSA Public key for Objective-C or Swift, on macOS.
Posted Last updated
.
Post not yet marked as solved
1 Replies
570 Views
In an app I'm starting, I have a horizontal splitview (NSSPlitview) and in the top half of that I have another splitview (this time vertical) to make a 3-pane window. Two panes at the top, one across the bottom. A little bit like, say, FCP.Both NSSplitViews are using the thin-divider style.The issue is, if I resize the app window, or move any of the dividers, then the splitviews re-size correctly, but the original dividers stay on screen, in the original positions! Nothing I do after that will remove the original dividing lines.Here's a screenshot at app launch and here's a screenshot after resizing the app window.How do I remove these artefacts?
Posted Last updated
.