Re: Contains class?
Re: Contains class?
- Subject: Re: Contains class?
- From: Chris Ridd <email@hidden>
- Date: Tue, 27 Apr 2004 12:34:52 +0100
On 27/4/04 12:06 pm, Ondra Cada <email@hidden> wrote:
>
Hi,
>
>
is there an easy way to enquire a running application _from outside_
>
programmatically whether it contains some class (i.e., whether that
>
class is loaded into it)?
>
>
The goal is to write a tool which lists all running applications, which
>
have loaded a specified bundle, so if there is another, easier way to
>
do that, let me please know.
I was going to suggest using the lsof program, as the program ought to have
some sort of file descriptor open to the bundle, or perhaps a file inside
the bundle somewhere. Maybe the OS loads bundles in some other subtle way
though, because the lsof output doesn't quite seem to tally with the output
of otool.
But perhaps it is a good place to start.
Cheers,
Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.