• 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
Re: About OS Shutting down / Restarting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About OS Shutting down / Restarting


  • Subject: Re: About OS Shutting down / Restarting
  • From: Jason Coco <email@hidden>
  • Date: Thu, 6 Nov 2008 15:20:38 -0500


On Nov 5, 2008, at 20:40 , Maggie Zhang wrote:

Is there any Mac OS API that will tell whether the OS is shutting down or
restarting?

Yes, but it depends on what you want to do... the basic API is in the User Space
portion of the IOKit Framework. See this tech q&a and the IOKit Framework documentation
for more info:


http://developer.apple.com/qa/qa2004/qa1340.html
http://developer.apple.com/documentation/Darwin/Reference/IOKit/index.html

P.S. - the tech q&a is talking about registering for sleep/wake events but the
process for shutdown events is the same so you can use it as a base reference.


J

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: About OS Shutting down / Restarting
      • From: "Maggie Zhang" <email@hidden>
References: 
 >About OS Shutting down / Restarting (From: "Maggie Zhang" <email@hidden>)

  • Prev by Date: Non standard shape(rectangle) window
  • Next by Date: Re: Non standard shape(rectangle) window
  • Previous by thread: About OS Shutting down / Restarting
  • Next by thread: Re: About OS Shutting down / Restarting
  • Index(es):
    • Date
    • Thread