• 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: Obtaining the foreground application's path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Obtaining the foreground application's path


  • Subject: Re: Obtaining the foreground application's path
  • From: Ivan C Myrvold <email@hidden>
  • Date: Tue, 25 Mar 2008 14:50:15 +0100

This will give you an NSDictionary with a lot of information about the active application:

[[NSWorkspace sharedWorkspace] activeApplication];

Ivan

Den 25. mars. 2008 kl. 08:12 skrev Matt Burnett:

Im sure this is not the right list, but it is the closest one i could think of for this topic (or maybe carbon-dev).

I am looking to obtain the current foreground application. The applications path, bundle identifier, or application name would be fine, however the path would be ideal. I want to do this to track application usage for statistical purposes for a product somewhat similar to Altiris's Application Metering on windows. How could i go about doing this? Also how could i deal with scenarios where there may be more than one foreground application such as if Spaces or Fast User Switching is enabled?
_______________________________________________


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


_______________________________________________

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: Obtaining the foreground application's path
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Obtaining the foreground application's path (From: Matt Burnett <email@hidden>)

  • Prev by Date: Re: Writing a preference pane that configures hotkeys?
  • Next by Date: Re: Debugging an input manager that refuses to load
  • Previous by thread: Obtaining the foreground application's path
  • Next by thread: Re: Obtaining the foreground application's path
  • Index(es):
    • Date
    • Thread