I'd like to know how to detect if an application is playing music (I guess audio) and pause it while my app does something and then resume it once it's done.
It seems like I should be able to do that with "Now Playing" or "Media Player", but these appear to be iOS libraries and not fleshed out for the Mac (or I am misunderstanding the documentation).
Control Center appears to be unscriptable, while a user can control Media via the Shortcuts app, it seems like a 3rd Party app can't embed and execute a shortcut.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I think I'm misunderstanding something here, maybe someone could point me in the right direction.
In System Settings, "Correct spelling automatically" is DISABLED, along with all the other options that ruin what you're typing.
In TextEdit, it continues to highlight spelling and grammar mistakes, so does Mail, Safari and others.
Yet SwiftUI made apps, don't.
I can right-click, enable "Check Spelling while typing", but after typing a few characters, words, it becomes disabled again.
I've busted through the view hierarchy to get the hosted NSTextView and overridden "isContinuousSpellCheckingEnabled" but something frequently reverts this to false.
Is my only option to have a large TextEditor with spell checking (but not auto correction) to create my own version of TextEditor by hosting the NSTextView myself. That's a lot of work for something which seems wrong, when I'm hoping that I'm simply missing something here.
Xcode 15.2 on macOS 13.5.
Adding a second "DocumentGroup" to a document based SwiftUI auto converts the "New" menu item into a submenu, with one item "New Document".
I'd like to add a second item to that submenu, to create a new instance of my second doc type. Googling around finds one solution, but that doesn't work as I'd expect it to with Ventura 13.6.5 and Xcode 15.2.
The solution linked to below, adds a menuitem under the "Open Recent" menu, not in the "New" submenu.
https://github.com/Asperi-Demo/4SwiftUI/blob/master/Answers/Handle_different_document_types.md
Changing the position to "before", also doesn't add it to the menu, and if you replace ".newItem", you then have to manually handle the Open dialog and the Open Recent menu.
So what am I missing?
Because the receipt file doesn't exist at the following path, my application exits with error code 173.
/Applications/Notched Up.app/Contents/_MASReceipt/receipt
However unlike in the past where it then re-launches and works, I'm now getting the error message that this application is damaged and must be re-downloaded from the App Store.
In the console I see the following messages.
error 12:35:02.553477+0800 Notched Up (com.apple.libsqlite3) cannot open file at line 45340 of [d24547a13b]
error 12:35:02.553498+0800 Notched Up (com.apple.libsqlite3) os_unix.c:45340: (2) open(/var/db/DetachedSignatures) - No such file or directory
default 12:35:04.481080+0800 storeuid (com.apple.commerce) Fetching missing receipt for sandbox app /Applications/Notched Up.app
default 12:35:04.707374+0800 storelegacy (com.apple.commerce) StoreLegacy: Failed to perform in-line receipt renewal for application at path /Applications/Notched Up.app : 'Error Domain=com.apple.commerce.client Code=500 "(null)"'
My gut is telling me that something internal related to the App Store isn't working correctly as this code was functional a couple of weeks ago and while the first two lines show sql, this app doesn't use sqlite.
App is signed with "Apple Distribution".
Have tested app with "Apple Development".
Have removed entitlements that need a profile and the provisioning profile.
The App Store application shows the correct "Sandbox" tester account (in the preferences).
I've logged the test account out and back in.
I've verified that tester account is the same store locale as my main account.
I've rebooted this i9 16" MBP running macOS 12.0.1, even thought it rebooted itself last night, because ????
Any advice, can you spot something I've done wrong?
Topic:
App Store Distribution & Marketing
SubTopic:
General
Tags:
Mac App Store
In-App Purchase
App Store Receipts