• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to distinguish between different MS Teams statuses
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: How to distinguish between different MS Teams statuses
      • From: Gabriel Zachmann via Cocoa-dev <email@hidden>
References: 
 >How to distinguish between different MS Teams statuses (From: Gabriel Zachmann via Cocoa-dev <email@hidden>)

  • Prev by Date: How to distinguish between different MS Teams statuses
  • Next by Date: Re: How to distinguish between different MS Teams statuses
  • Previous by thread: How to distinguish between different MS Teams statuses
  • Next by thread: Re: How to distinguish between different MS Teams statuses
  • Index(es):
    • Date
    • Thread