OS X - Apps and Games Discussion of applications and games available for Mac OS X.

How to get Restart,Shutdown .... events


Post Reply New Thread Subscribe

 
Thread Tools
sunil

 
Member Since: Jan 02, 2007
Posts: 3
sunil is on a distinguished road

sunil is offline
Hi Guys,

I have written a network application in cocoa.
In my application I want to capture the Logout,Restart,Shutdown events.
Based on these events I want to send some message to my server.


After reading the documentation on internet regarding system events I came to know that whenever user choose "Shutdown" or "Restart" from the Apple Menu the running application gets "KAEQuitApplication" event but not any specific event whether the application is quiting by "Shutdown" or "Restart" or "Log Out". The "KAEQuitApplication" event also get by the user when he/she quit their application by clicking at the top left cross button of the application window.

I m looking to get the specific event related with each action taken by the user i.e. "Shutdown" or "Restart" or "Log Out".
Is it possible to get the different event for each of the action taken by the user i.e. "Shutdown" or "Restart" or "Log Out"?.

suggest me some imp link or sample code.

waiting for the reply.

Thanks,
sunil
QUOTE Thanks

Post Reply New Thread Subscribe


« Best email client | testing automation tools »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
ICAL: list all events on one calendar StevenH OS X - Apps and Games 11 03-09-2008 10:09 PM
How do I order events in iCal for printing. pruppert OS X - Apps and Games 1 01-18-2008 02:26 AM
ICAL - re-occuring events Virusyn OS X - Apps and Games 4 07-07-2007 11:42 PM
Time based events andyw OS X - Development and Darwin 0 05-24-2006 11:14 AM
Myspace events calendar and Safari problem? rcltrh OS X - Apps and Games 5 05-17-2006 10:38 PM

All times are GMT -4. The time now is 10:59 PM.

Powered by vBulletin
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?