• 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: Ian Kemmish <email@hidden>
  • Date: Fri, 11 May 2007 07:47:58 +0100


On 10 May 2007, at 7:28 pm, cStefan 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".

Or if you're using Cocoa, simply add this method:

- (void) _windowChangedKeyState
{
    [self setNeedsDisplay: YES];
}

to all your NSView subclasses which need to know about this. Then bracket all your highlighting code or whatever with:

if ([_window isKeyWindow]) {
...
}

Using _window instead of [self window] is safe and saves an extra method call.

I use this to make sure all my mock-Aqua controls redraw in blue or grey as appropriate.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Ian Kemmish 18 Durham Close, Biggleswade, Beds SG18 8HZ
email@hidden Tel: +44 1767 601361 Mob: +44 7952 854387
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



_______________________________________________ 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
  • Prev by Date: Re: usb mic problem
  • Next by Date: ExtAudioFileDispose not releasing certain files
  • Previous by thread: Re: How to tell if my AU's UI is in front?
  • Next by thread: Forget my last post
  • Index(es):
    • Date
    • Thread