• 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: Get ProcessSerialNumber of last front application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get ProcessSerialNumber of last front application


  • Subject: Re: Get ProcessSerialNumber of last front application
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 9 Feb 2011 10:55:55 -0800

On Wed, 9 Feb 2011 09:23:45 -0600, "Mr. Gecko" <email@hidden> said:
>Hello, I am wondering how I can get the last front application ProcessSerialNumber so I can use SetFrontProcess to bring it back to front after they close the window to my application.

You can track applications as they come to the front using Carbon Events.

<http://www.cocoabuilder.com/archive/cocoa/155984-detecting-frontmost-application.html>

m.

--
matt neuburg, phd = email@hidden, <http://www.apeth.net/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.apeth.net/matt/default.html#applescriptthings_______________________________________________

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: Get ProcessSerialNumber of last front application
      • From: "Mr. Gecko" <email@hidden>
  • Prev by Date: Initializing NSError **, again Re: CoreData Migration Problems
  • Next by Date: Re: Initializing NSError **, again Re: CoreData Migration Problems
  • Previous by thread: Re: Get ProcessSerialNumber of last front application
  • Next by thread: Re: Get ProcessSerialNumber of last front application
  • Index(es):
    • Date
    • Thread