Use kAERestart to Restart Computer
Use kAERestart to Restart Computer
- Subject: Use kAERestart to Restart Computer
- From: Andy Boutte <email@hidden>
- Date: Sun, 19 Jun 2011 22:00:39 -0700
Does any body have some sample code that they can share that will restart the computer? I have looked at the code on these pages:
http://applerr.com/forum/mac/3648/programmatically-put-a-mac-into-sleep.htm
http://developer.apple.com/library/mac/#qa/qa1134/_index.html
What I cant figure out is what code I should put in my IBAction to make the restart happen.
-(IBAction) buttonAction: (id) sender {
}
Any help would be greatly appreciated.
-Andy Boutte
_______________________________________________
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