• 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 22:38:30 -0700

Hi Scott,

Apparently there is in Panther

NSWorkspaceSessionDidBecomeActiveNotification
NSWorkspaceSessionDidResignActiveNotification

Unfortunately, the notifications you list aren't "front process changed" notifications. Instead, the notifications let applications know when the front user has switched via the "Fast User Switching" feature present in Panther.

If you would like "front process changed" notifications to be vended from Cocoa I'd suggest filing a enhancement request using bugreporter.apple.com. A change filed now, I doubt would get into Panther's initial release but should make it into a future release of MacOSX. Also, let me know the bug number if you file one.

At 10:51 PM -0400 8/27/03, Scott Anguish wrote:
Apparently there is in Panther

NSWorkspaceSessionDidBecomeActiveNotification
NSWorkspaceSessionDidResignActiveNotification


On Aug 27, 2003, at 10:16 PM, Chad Jones wrote:

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.

References: 
 >Re: Notification of Front Process Changed (From: Chad Jones <email@hidden>)

  • Prev by Date: Re: [ANN] HyperSpell 1.0
  • Next by Date: Re: Notification of Front Process Changed ?
  • Previous by thread: Re: Notification of Front Process Changed
  • Next by thread: Re: Sleep notifications
  • Index(es):
    • Date
    • Thread