• 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: Accessing information from applications
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing information from applications


  • Subject: Re: Accessing information from applications
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 02 Jun 2011 11:29:34 -0700

On Jun 2, 2011, at 11:18 AM, Abhinav K Tyagi wrote:

> Is there any method to know what files are opened by any application?

I think you have to use fairly low-level POSIX or BSD APIs. The tool /usr/bin/lsof does this; you could get its source code from the Darwin repository (opensource.apple.com) and see how it does it. (Or more clumsily, you could use NSTask to invoke lsof and parse its output.)

This is kind of off-topic for the Cocoa list, though. People on lists like darwin-userlevel might know more.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: Accessing information from applications
      • From: James Montgomerie <email@hidden>
References: 
 >Accessing information from applications (From: Abhinav K Tyagi <email@hidden>)

  • Prev by Date: Re: What is the point of a host-reachability test that doesn't test the reachability of the host?
  • Next by Date: Re: create custom window - NSMenu bar
  • Previous by thread: Accessing information from applications
  • Next by thread: Re: Accessing information from applications
  • Index(es):
    • Date
    • Thread