Post

Replies

Boosts

Views

Activity

NSMetadataQueryDidFinishGatheringNotification not posted for some users in macOS 12.3
I have a macOS app that synchronizes some files in the app's iCloud container, outside the Documents folder. Changes to these files are monitored with a NSMetadataQuery using a search scope of NSMetadataQueryUbiquitousDataScope. The NSMetadataQuery instance uses an operation queue for notifications and I'm calling startQuery on the instance's operation queue. As of macOS 12.3, for a subset of my users, the NSMetadataQueryDidFinishGatheringNotification notification is never sent after starting the query. The NSMetadataQueryDidStartGatheringNotification and NSMetadataQueryGatheringProgressNotification notifications are posted. For those affected who have multiple Macs, each of their Macs seems to be affected by this, as if it is a problem specific to the iCloud container for my app, for that user. I'm unable to reproduce the issue on my personal machine. Has anyone else noticed this behavior since macOS 12.3 was released?
3
1
882
Apr ’22
Airplay 2 and device-local video files
Not sure when this started, but with iOS/iPadOS/tvOS 15, I cannot AirPlay a video file stored on my iOS/iPadOS device to an Apple TV using AVPlayer. Local audio files work fine and remote video files work fine. It's only local video files that fail to play. The error I get via a NSNotification.Name.AVPlayerItemFailedToPlayToEndTime notification is AVErrorExternalPlaybackNotSupportedForAsset. This is easily reproduced using the 'Integrating AirPlay for Long-Form Video Apps' sample app found here by adding a video file to the project and playing that rather that the m3u8 streams the sample uses by default: https://developer.apple.com/documentation/avfoundation/media_playback_and_selection/integrating_airplay_for_long-form_video_apps Happens with tvOS 15 & 15.1 Anyone else experiencing this issue?
2
1
2.2k
Oct ’21
UIActivityViewController expand .share category activities with an action
In iOS 14, not sure about iOS 13, Apple's Music app has a 'more' button on the player view above the scrubber. Tapping it appears to present a UIActivityViewController. This UIActivityVC appears to use a configuration that excludes the UIActivityCategory.share category, so we only see actions. One of those actions is labeled "Share". Tapping it appears to reconfigure the UIActivityVC so that it no longer excludes the UIActivityCategory.share category and also hides the "Share" action. The change happens with a smooth animation and does not appear to be the result of dismissing the current UIActivityVC and presenting a new, reconfigured one. I'm not seeing a way to replicate this. I don't believe I've ever seen this in a 3rd party app, but Apple uses it at least in the Music and Podcasts app. So, perhaps it's just Apple using private APIs. Is this a documented behavior of UIActivityViewController?
0
0
858
Feb ’21