If a users wants to reboot to windows from OS X, he/she either needs to:
- a) Reboot holding down the ALT key and select windows
- b) Go to
System->
settingsStartup disk->Select windows->Reboot
(Given that the user has a bootcamp partition and windows installed).
Since I now and then play some games, and prefer doing that directly in Windows and not using e.g. VMWare Fusion. I would like to develop a smarter and easier way of rebooting. I know how to reboot a machine using Objective-c, but how can I choose the boot partition and reboot to it? Basically how the system restart function works in the system settings (choose partition and reboot).
I don’t know if there is a programmatic interface, but you can set the startup disk with the
blesscommand, see “man bless”.