• 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 11:45:10 -0800

You're optimizing prematurely. Try it and see! m.

On Feb 9, 2011, at 11:05 AM, Mr. Gecko wrote:

> The only question I would have is if I were to track the applications all the time, how much time on the processor would it require, would it 1. require enough that will slow down the user noticeably, or 2. would it be like just 0.1% of cpu in a few milliseconds. I try to be considerate of the customer and not do things that'll cause slow downs and all. One reason for this is I'm stuck with my older mac and I don't like things that slow me down. My big guess is number 2.
>
> On Feb 9, 2011, at 12:55 PM, Matt Neuburg wrote:
>
>> 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.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring & Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com


_______________________________________________

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

References: 
 >Re: Get ProcessSerialNumber of last front application (From: Matt Neuburg <email@hidden>)
 >Re: Get ProcessSerialNumber of last front application (From: "Mr. Gecko" <email@hidden>)

  • Prev by Date: Re: 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: indeterminate progress bar animation and CALayer-backed sibling view
  • Index(es):
    • Date
    • Thread