• 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: Receive notifications about frontmost application change
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Receive notifications about frontmost application change


  • Subject: Re: Receive notifications about frontmost application change
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Wed, 9 Jul 2008 19:12:48 +0200


Yes, so the bad new is that you have to go Carbon to listen front switched events, the good new is that this part of Carbon is available for 64 bits apps (probably because this is the only public way to do this for now).



Le 9 juil. 08 à 17:49, Matt Gough a écrit :

You can do this (and a lot of other stuff not covered by NSWorkspace ) with a CarbonEvent handler on kEventClassApplication, kEventAppFrontSwitched.

Matt
On 9 Jul 2008, at 5:44pm, Jens Alfke wrote:


On 9 Jul '08, at 3:22 AM, Александр Даровских wrote:


Hi,
Is there any way to subscribe to frontmost application change notification? For example, via NSDistributedNotificationCenter or some other facility? I have managed to get process startup and shutdown notifications, but I cannot get active application change notification. Maybe it is done in somehow another way?

I ran NotificationWatcher, which logs all distributed notifications and workspace notifications, but didn't see anything when I switched apps. So it must be done a different way. I suspect there may be a CoreGraphics API that does this; try looking there.


—Jens_______________________________________________

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:
@agfa.com


This email sent to email@hidden

_______________________________________________

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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Receive notifications about frontmost application change
      • From: Bill Cheeseman <email@hidden>
References: 
 >Receive notifications about frontmost application change (From: Александр Даровских <email@hidden>)
 >Re: Receive notifications about frontmost application change (From: Jens Alfke <email@hidden>)
 >Re: Receive notifications about frontmost application change (From: Matt Gough <email@hidden>)

  • Prev by Date: Re: Overriding v alueForKeyPath
  • Next by Date: Re: Deploying application with Growl support
  • Previous by thread: Re: Receive notifications about frontmost application change
  • Next by thread: Re: Receive notifications about frontmost application change
  • Index(es):
    • Date
    • Thread