| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hmmm, well the terminal command: "shutdown -r now" will do that. All you need to do is call that from Objective-C. I don't remember how to call terminal commands off the top of my head, but worst comes to worst you can stick it in an applescript.
Try a "man shutdown" to see all the options and do a search on the apple docs to see how to put a terminal command in a Cocoa app.
| References: | |
| >Cocoa/Obj-C Restart Computer (From: Matt Jaffa <email@hidden>) | |
| >Re: Cocoa/Obj-C Restart Computer (From: Shalev NessAiver <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.