Re: Accessing information from applications
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