Re: Process app.

2008-07-02 Thread Mike Bellerby
If all else fails, maybe you could check the screen to see if the menu bar is being displayed. As this is off topic please reply off list. On 2 Jul 2008, at 09:01, Толя Макаров wrote: By loginwindow.app I meant when there is a user in login window after ScreenSaver. And by "loginwindow.app

Re: Process app.

2008-07-02 Thread Jean-Daniel Dupas
The login window has nothing to do with the authentification panel shown when you want to leave the screen saver. It the same panel than the one you show when you try to move a file that require authorization in the Finder, or the same than the one the installer open when it need perform so

Re: Process app.

2008-07-02 Thread Толя Макаров
By loginwindow.app I meant when there is a user in login window after ScreenSaver. And by "loginwindow.app has finished its work" when user got logged on. GetBSDProcessList has showed me launched process, but only for MAC OS X 10.5. But my appl. should also work in 10.4. Could you give me the s

Re: Process app.

2008-07-01 Thread Jean-Daniel Dupas
AIL PROTECTED]> Кому: Толя Макаров <[EMAIL PROTECTED]> Копия: Apple cocoa Отправлено: Вторник, 1 июль 2008, 12:49:19 Тема: Re: Process app. Le 1 juil. 08 à 11:24, Толя Макаров a écrit : Jean-Daniel Dupas. I want to know if loginwindow.app is started up at the moment, after this my program en

Re: Process app.

2008-07-01 Thread Толя Макаров
There is the same problem with SecurityAgent.app. Are there any other suggestions knowing that loginwindow.app doesn't work? >FROM : Makarov Anatolii >DATE : Tue Jul 01 13:25:46 2008 >I have worked out the issue. Upon user's authorization the application SecurityAgent.app >(/System/Library/Core

Re: Process app.

2008-07-01 Thread dreamcat7
No i dont as i only ever check for process which were created by my own program. Its hard to see why loginwindow wouldnt appear in the array returned because KERN_PROC_ALL is defined in mib which is passed in to sysctl() call. int mib[3] = { CTL_KERN, KERN_PROC, KERN_PROC_ALL };

Отв.: Process app.

2008-07-01 Thread Толя Макаров
I have worked out the issue. Upon user's authorization the application SecurityAgent.app (/System/Library/CoreServices/SecurityAgent.app) works. And this application starts up loginwindow.bundle (/System/Library/CoreServices/SecurityAgentPlugins/loginwindow.bundle). You may check it with the he

Re: Process app.

2008-07-01 Thread Jean-Daniel Dupas
Le 1 juil. 08 à 11:24, Толя Макаров a écrit : Jean-Daniel Dupas. I want to know if loginwindow.app is started up at the moment, after this my program enters a password. Sometimes I enter password myself and my program should know that loginwindow.app has finished its work. Makarov Anato

Re: Process app.

2008-07-01 Thread Толя Макаров
Jean-Daniel Dupas. I want to know if loginwindow.app is started up at the moment, after this my program enters a password. Sometimes I enter password myself and my program should know that loginwindow.app has finished its work. Makarov Anatolii. ___

Re: Process app.

2008-07-01 Thread Jean-Daniel Dupas
Le 1 juil. 08 à 10:28, Толя Макаров a écrit : dreamcat7 The process loginwindow is not shown In the list that is given by the function sysctl. May be this process has another name. Do you know anything about it? Makarov Anatolii Just curious about it. Why do you need to listen loginwi

RE: Process app.

2008-07-01 Thread Толя Макаров
dreamcat7 The process loginwindow is not shown In the list that is given by the function sysctl. May be this process has another name. Do you know anything about it? Makarov Anatolii Вы уже с Yahoo!? Испытайте обновленную и улуч

Re: Process app.

2008-06-30 Thread Michael Hall
On Jun 30, 2008, at 3:44 PM, Ken Thomases wrote: More techniques: Technical Note TN2050: Observing Process Lifetimes Without Polling http://developer.apple.com/technotes/tn/tn2050.html Getting off-topic maybe but I did this from java. For example... CmdJHTML: terminated Firefox /Applications

Re: Process app.

2008-06-30 Thread Ken Thomases
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 u

Re: Process app.

2008-06-30 Thread Jean-Daniel Dupas
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

Re: Process app.

2008-06-30 Thread Jens Alfke
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,

RE: Process app.

2008-06-30 Thread Толя Макаров
Yes, that's clear, but how to get this list? I have found 2 ways: ps -ef and [[NSWorkspace sharedWorkspace] launchedApplications]. 1 way shows in the list loginwindow.app, when it's on and doesn't work. 2 way doesn't show this application at all. What would you suggest? ___

Re: Process app.

2008-06-30 Thread Mike Bellerby
Hi If your process is running as root, you can get a list of all current processes. Cheers Mike On 30 Jun 2008, at 10:07, Толя Макаров wrote: HI. Cocoa, Obj - C. How can know a another program is started? The process is started up not from my program. I check if is started loginwindow.ap

Process app.

2008-06-30 Thread Толя Макаров
HI. Cocoa, Obj - C. How can know a another program is started? The process is started up not from my program. I check if is started loginwindow.app And it is possible to catch event that loginwindow.app was closed? Give me example, please.