Carbon events are events. As long as you don't receive one, your app is waiting 
consuming 0% of the CPU.

Le 9 févr. 2011 à 20:05, Mr. Gecko a écrit :

> 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" <grmrge...@gmail.com> 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.
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/devlists%40shadowlab.org
> 
> This email sent to devli...@shadowlab.org

-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to