Le 30 mai 2012 à 10:30, Arun a écrit :

> Hi All
> 
> Any one has a idea of how we can launch the prompt for Mac reboot from a
> Cocoa / Obj-C code?

You can use AppleEvent to ask the loginwindow to do it:

I'm using the C AppleEvent API to do this, but in AppleScript it is equivalent 
to

tell application "loginwindow" to «event aevtrrst»


-- Jean-Daniel




_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to