Re: Detect the login window is being displayed

2008-11-13 Thread Maggie Zhang
We have login agent and daemon components which do the work regarding user logout. I am trying the SystemConfiguration which we were using a bit in the daemon component. Do you mean I just need to get a callback when somebody logs out? In order to make SCDynamicStoreCopyConsoleUser work, do I nee

Re: Detect the login window is being displayed

2008-11-12 Thread Ryan McGann
Originally, I need to distinguish logging out from shutting down or restarting. Since there isn't an easy way to do that, I am thinking to find a way to tell only when the user is logging out and let the machine do whatever it wants when shutting down or restarting.Do you have a better idea

Re: Detect the login window is being displayed

2008-11-12 Thread Iceberg-Dev
On Nov 12, 2008, at 10:56 PM, Maggie Zhang wrote: Hi, Is there a way (like a notification or API) that the daemon can figure out when the login window is being displayed after the user logs out? SystemConfiguration Framework. ___ Cocoa-dev m

Re: Detect the login window is being displayed

2008-11-12 Thread Kyle Sluder
On Wed, Nov 12, 2008 at 6:22 PM, Maggie Zhang <[EMAIL PROTECTED]> wrote: > Originally, I need to distinguish logging out from shutting down or > restarting. Since there isn't an easy way to do that, I am thinking to find > a way to tell only when the user is logging out and let the machine do > wha

Re: Detect the login window is being displayed

2008-11-12 Thread Maggie Zhang
Originally, I need to distinguish logging out from shutting down or restarting. Since there isn't an easy way to do that, I am thinking to find a way to tell only when the user is logging out and let the machine do whatever it wants when shutting down or restarting.Do you have a better idea how to

Re: Detect the login window is being displayed

2008-11-12 Thread Kyle Sluder
On Wed, Nov 12, 2008 at 4:56 PM, Maggie Zhang <[EMAIL PROTECTED]> wrote: > Is there a way (like a notification or API) that the daemon can figure out > when the login window is being displayed after the user logs out? Why do you need to do this? Your app must be configured for a very special set

Detect the login window is being displayed

2008-11-12 Thread Maggie Zhang
Hi, Is there a way (like a notification or API) that the daemon can figure out when the login window is being displayed after the user logs out? Thanks! ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mode