Post

Replies

Boosts

Views

Activity

Request review without having a view controller?
SKStoreReviewController.requestReview() is deprecated in favor of AppStore.requestReview(in:). The problem is that AppStore.requestReview(in:) requires passing in a NSViewController, and in some contexts, this is not possible. For example, a menu bar app that only has a NSMenu when you click it. It has no NSViewController that could be passed in. How are we supposed to request a review for such apps? FB14887376
1
1
429
Aug ’24
Detect if the active keyboard on macOS has a physical `Fn` key in Swift
I want to use the Fn modifier key if available, and if not, offer the user a different modifier. But only offer it to users without a Fn key. Some external keyboard do not have a Fn key. Is there any way to detect whether the active keyboard has a physical Fn key? (I am not asking how to detect a Fn key press) I'm looking for a solution in Swift that works within a sandboxed app. I already tried asking on Stack Overflow.
0
1
734
May ’22