• 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: Cocoa/Obj-C Restart Computer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa/Obj-C Restart Computer


  • Subject: Re: Cocoa/Obj-C Restart Computer
  • From: Frederick Cheung <email@hidden>
  • Date: Fri, 30 Jul 2004 23:49:07 +0200

On 30 Jul 2004, at 23:41, Matt Jaffa wrote:

Hi,

I was wondering if there was any command in Cocoa/Obj-C to restart the computer, so that my app can do that when they push a button.

Or any other way of doing this would be fine.

Send an appleevent (kAECoreEventClass,kAERestart I believe) to the loginwindow application

Fred
Matt
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Cocoa/Obj-C Restart Computer (From: Matt Jaffa <email@hidden>)

  • Prev by Date: Binding NSTableColumn.textColor to Two Things;
  • Next by Date: Re: Cocoa/Obj-C Restart Computer
  • Previous by thread: Cocoa/Obj-C Restart Computer
  • Next by thread: Re: Cocoa/Obj-C Restart Computer
  • Index(es):
    • Date
    • Thread