• 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 tell if my AU's UI is in front?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to tell if my AU's UI is in front?


  • Subject: Re: How to tell if my AU's UI is in front?
  • From: Michael Hopkins <email@hidden>
  • Date: Thu, 10 May 2007 09:14:40 -0700

BJ,

It also depends if your view is carbon or cocoa. Stefan's solution works for carbon. For cocoa, your window's delegate will receive a windowDidBecomeKey: notification.

-Michael

On May 10, 2007, at 7:59 AM, B.J. Buchalter wrote:

Thanks Stefan.

I assume that based upon your advice, this will work in Logic. The reason I
didn't go down this route is that some hosts seem to use windows that don't
activate. For example, if you open the AUGraphicEQ (the Apple supplied one)
in AULab, the sliders are never disabled. I would think that this is because
the owning window is never being activated and deactivated.


I will try this though and report back if it is reliable in a variety of
hosts.


Thanks for the info!!

Best regards,

B.J. Buchalter


On 5/10/07 4:21 AM, "Stefan Gretscher" <email@hidden> wrote:

Hi B.J.

I think the Carbon event kEventClassWindow/ kEventWindowActivated
is what you want to listen for.

Best,
Stefan

Am 10.05.2007 um 03:24 schrieb B.J. Buchalter:

Hi Folks,

Does anyone know if there is a reliable way to determine if my UI
has been
"activated". For example, if I test in AULab, if the plugin UI is
open but
other windows are in front of it, and I click on the insert tile
for my
plugin, the UI window is brought to the front. I would like to find a
reliable way to get notified that this has just happened (reliable
in the
sense that it is likely to work in all hosts).


Obviously I can tell when the UI component is opened, but it I am
unsure of
how to capture this "user focus" event (or if it is even possible).
Any
suggestions greatly appreciated!!

Best regards,

B.J. Buchalter



------------------------------------ Stefan Gretscher plug-in development & 3rd party developer support

phone: (+49)-4101-495-586 (Central European Time)
AU developer support: email@hidden
TDM developer support: email@hidden

Apple GmbH
Geschäftsführung: Freddie Geier, Georges Guyon de Chemilly
Sitz der Gesellschaft: München
Amtsgericht München, HRB 66158




B.J. Buchalter

Metric Halo
5 Donovan Drive
Hopewell Junction, NY 12533 USA
tel +1 845 223-6112
fax +1 603 250-2451


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Coreaudio-api mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: How to tell if my AU's UI is in front?
      • From: "B.J. Buchalter" <email@hidden>
References: 
 >Re: How to tell if my AU's UI is in front? (From: "B.J. Buchalter" <email@hidden>)

  • Prev by Date: conversion needed for syncing audio and video
  • Next by Date: is there a more active list on this subject?
  • Previous by thread: Re: How to tell if my AU's UI is in front?
  • Next by thread: Re: How to tell if my AU's UI is in front?
  • Index(es):
    • Date
    • Thread