• Hello MLAers! We've re-enabled auto-approval for accounts. If you are still waiting on account approval, please check this thread for more information.

Replicate Finder shutdown

nil

6502
Hi I'm trying to make my own Finder.
Implementing the apple events now.
I'm reading the inside macintosh docs on how the finder shuts the machine down.

  1. Checking for and executing custom shutdown procedures installed by calls to ShutDwnInstall. (This step occurs three times during the shutdown process.)
  2. Checking the Device Manager’s unit table to determine whether any drivers or desk accessories are open and, if so, notifying them of the impending shutdown or restart.
  3. Saving the desk scrap, if any.
  4. Unmounting mounted volumes.
  5. Turning off the computer.
In my Finder I have implemented, 1. QuitAllApplications, 5. UnmountAllVolumes and 6. PowerOff.
Am I doing it right? Thanks
 
I think you're going to have to give us more details, but it looks like you're missing 1 and 2 here - also, what system software version(s) are you aiming for?
 
Yeah, and under 7+ I'm fairly sure you can get away with pretending Desk Accessories are just applications. So if you just do the 'quit all applications politely by apple event or fake quit click' and then call the shutdown manager you're probably OK.
 
Back
Top