• 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: Notification of Front Process Changed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Notification of Front Process Changed


  • Subject: Re: Notification of Front Process Changed
  • From: Chad Jones <email@hidden>
  • Date: Wed, 27 Aug 2003 19:16:36 -0700

There's a Carbon Event you can use to get notified that the front process switched. Look in CarbonEvents.h for the kEventAppFrontSwitched notification. To my knowledge there is no equivalent Cocoa notification, even in Panther.

I'm looking for a way to be notified when the front process changes
(note that the application I'm writing plans never to be the front
process, so I need a generalized mechanism).

I've looked through the NSWorkspace and Process Manager docs, and I
can't find anything obvious (other than polling GetFrontProcess, which
is bad).
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: NSViews and Distributed Objects
  • Next by Date: Sleep Notification?
  • Previous by thread: Re: NSViews and Distributed Objects
  • Next by thread: Re: Notification of Front Process Changed
  • Index(es):
    • Date
    • Thread