FROM : Ken Thomases
DATE : Mon Jun 30 22:44:55 2008
On Jun 30, 2008, at 10:53 AM, Jean-Daniel Dupas wrote:
>
> Le 30 juin 08 à 17:27, Jens Alfke a écrit :
>
>>
>> On 30 Jun '08, at 6:23 AM, Толя Макаров wrote:
>>
>>> Yes, that's clear, but how to get this list? I have found 2 ways: ps
>>> -ef and [[NSWorkspace sharedWorkspace] launchedApplications].
>>
>> There are underlying APIs that tools like ps and top use; you can
>> call those. I'm not familiar with the details, however. You can
>> look in the Darwin repository for the source code of either of
>> those tools, or you can ask on the darwin-userlevel mailing list.
>> (Cocoa-dev is off topic for this, since it's not related to any
>> Cocoa APIs.)
>>
>> NSWorkspace isn't going to help, because it's in AppKit, and
>> daemon processes (the only kind that could be running without
>> loginwindow) aren't allowed to link against AppKit.
>
> See QA1123: Getting List of All Processes on Mac OS X.
>
> http://developer.apple.com/qa/qa2001/qa1123.html
>
> To get notification, you can use kevent with the EVFILT_PROC and
> the NOTE_EXIT event. (man kqueue), but it's going off topics too.
More techniques:
Technical Note TN2050: Observing Process Lifetimes Without Polling
http://developer.apple.com/technotes/tn/tn2050.html
Cheers,
Ken_______________________________________________
Cocoa-dev mailing list (<email_removed>)
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/<email_removed>
This email sent to <email_removed>
DATE : Mon Jun 30 22:44:55 2008
On Jun 30, 2008, at 10:53 AM, Jean-Daniel Dupas wrote:
>
> Le 30 juin 08 à 17:27, Jens Alfke a écrit :
>
>>
>> On 30 Jun '08, at 6:23 AM, Толя Макаров wrote:
>>
>>> Yes, that's clear, but how to get this list? I have found 2 ways: ps
>>> -ef and [[NSWorkspace sharedWorkspace] launchedApplications].
>>
>> There are underlying APIs that tools like ps and top use; you can
>> call those. I'm not familiar with the details, however. You can
>> look in the Darwin repository for the source code of either of
>> those tools, or you can ask on the darwin-userlevel mailing list.
>> (Cocoa-dev is off topic for this, since it's not related to any
>> Cocoa APIs.)
>>
>> NSWorkspace isn't going to help, because it's in AppKit, and
>> daemon processes (the only kind that could be running without
>> loginwindow) aren't allowed to link against AppKit.
>
> See QA1123: Getting List of All Processes on Mac OS X.
>
> http://developer.apple.com/qa/qa2001/qa1123.html
>
> To get notification, you can use kevent with the EVFILT_PROC and
> the NOTE_EXIT event. (man kqueue), but it's going off topics too.
More techniques:
Technical Note TN2050: Observing Process Lifetimes Without Polling
http://developer.apple.com/technotes/tn/tn2050.html
Cheers,
Ken_______________________________________________
Cocoa-dev mailing list (<email_removed>)
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/<email_removed>
This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| ???? ??????? | Jun 30, 11:07 | |
| Mike Bellerby | Jun 30, 13:39 | |
| ???? ??????? | Jun 30, 15:23 | |
| Jens Alfke | Jun 30, 17:27 | |
| Jean-Daniel Dupas | Jun 30, 17:53 | |
| Ken Thomases | Jun 30, 22:44 | |
| ???? ??????? | Jul 1, 10:28 | |
| Jean-Daniel Dupas | Jul 1, 10:39 | |
| ???? ??????? | Jul 1, 11:24 | |
| Jean-Daniel Dupas | Jul 1, 11:49 | |
| dreamcat7 | Jul 1, 13:32 | |
| ???? ??????? | Jul 1, 16:07 | |
| Jean-Daniel Dupas | Jul 1, 16:47 | |
| ???? ??????? | Jul 2, 10:01 | |
| Jean-Daniel Dupas | Jul 2, 10:16 | |
| Mike Bellerby | Jul 2, 16:42 |






Cocoa mail archive

