Re: How to distinguish between different MS Teams statuses
Re: How to distinguish between different MS Teams statuses
- Subject: Re: How to distinguish between different MS Teams statuses
- From: Ben Kennedy via Cocoa-dev <email@hidden>
- Date: Thu, 22 Jul 2021 11:24:38 -0700
> On 22 Jul 2021, at 10:45 am, Gabriel Zachmann via Cocoa-dev
> <email@hidden> 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@hidden)
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:
This email sent to email@hidden