> On 22 Jul 2021, at 10:45 am, Gabriel Zachmann via Cocoa-dev > <[email protected]> wrote: > > is it possible to determine - in my own app - whether or not there is an MS > Teams video call taking place at the moment?
The only correct answer to that depends on whether Microsoft Teams provides API that vends such information. > So far, i have been checking whether or not MS Teams is running by the > following snippet (omitting some of the safety guards): That code is answering the wrong question. It might appear to provide the state of some running apps, but all it actually does is indicate the presence of some particularly-named windows. Consider: - What happens when the user happens to be editing a document in another app (say, TextEdit) whose name happens to be "Microsoft Teams"? (Or "Zoom"? etc.) - What happens when Microsoft revises their UI in a future version such that the window is called something else? The window-enumeration approach is coarse and fragile at best. -ben _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
