• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Trapping user shutdown/logout/restart in Cocoa/Foundation tool
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Trapping user shutdown/logout/restart in Cocoa/Foundation tool


  • Subject: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
  • From: "parag vibhute" <email@hidden>
  • Date: Fri, 4 Jan 2008 20:08:47 +0530

Hi guys,

I want to trap user user shutdown/logout/restart. For that I am using
-(void)workspaceWillPowerOff:(NSNotification *)aNotification. But for this,
it is necessary to have dock icon of an application. I searched the google &
came to know that it is required to have dock icon to trap
shutdown/restart/shutdown. My code is c++ code, but for  trapping
shudown/restart/logout only, I am wrapping that C++ code in cocoa. I have
two questions:
1. Is there any other way to trap shutdown/restart/logout without requiring
to have type of project as Cocoa (i.e. either through Foundation tool or
like that).
2. Is there any way to trap shutdown/restart/logout in cocoa application
without requiring to have dock icon of an application?

Please reply.

Thanks,
Palav


--

There are many things in your life that will catch your eye but only a few
will catch your heart....pursue those'.
_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Set focus on NSView in an NSMenuItem
  • Next by Date: nanotime()
  • Previous by thread: Re: Set focus on NSView in an NSMenuItem
  • Next by thread: Re: Trapping user shutdown/logout/restart in Cocoa/Foundation tool
  • Index(es):
    • Date
    • Thread