• 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: Querying the front application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Querying the front application


  • Subject: Re: Querying the front application
  • From: Rosyna <email@hidden>
  • Date: Sun, 9 Jul 2006 01:05:48 -0700

Call GetFrontProcess() to get the front process and install a carbon event handler for kEventClassApplication/kEventAppFrontSwitched.

Ack, at 7/9/06, Alexander Powell said:

Is there a currently recommended way for a Cocoa app to register for a notification or something when the front-most application changes?

After that's done, how could one query what application is now the front-most?

I have a need to write a simple faceless utility that only does its thing when a particular application is in the foreground.

--


Sincerely, Rosyna Keller Technical Support/Holy Knight/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Querying the front application
      • From: Uli Kusterer <email@hidden>
    • Re: Querying the front application
      • From: email@hidden
    • Re: Querying the front application
      • From: Alexander Powell <email@hidden>
References: 
 >Querying the front application (From: Alexander Powell <email@hidden>)

  • Prev by Date: Querying the front application
  • Next by Date: Re: Querying the front application
  • Previous by thread: Querying the front application
  • Next by thread: Re: Querying the front application
  • Index(es):
    • Date
    • Thread