title: Shutdown Mac Objective C
body: <p>I need to be able to implement methods of:</p>
  
  <ul>
  <li>Shutdown</li>
  <li>Restart</li>
  <li>Logoff</li>
  <li>Sleep</li>
  </ul>
  
  <p>On a Mac, I am using XCode but can't seem to figure out the code to perform these actions.</p>
  
  <p>Can anyone help me out here?</p>
  
  <p>Thanks</p>