Path: utzoo!attcan!uunet!zephyr.ens.tek.com!gvgpsa!treehouse!andyp From: andyp@treehouse.UUCP (Andy Peterman) Newsgroups: comp.sys.mac.misc Subject: Re: Sleep entry in Special menu in Finder Message-ID: <612@treehouse.UUCP> Date: 26 Oct 90 22:14:23 GMT References: <929@h.cs.wvu.wvnet.edu> <3603@idunno.Princeton.EDU> Organization: The Tree House Lines: 45 In article <3603@idunno.Princeton.EDU> bskendig@shine.Princeton.EDU (Brian Kendig) writes: >In article <929@h.cs.wvu.wvnet.edu> parker@cs.wvu.wvnet.edu (James Parker) writes: >>>In <1990Oct25.205254.18675@cec1.wustl.edu> jyp@wucs1.wustl.edu (Jerome Yvon Plun) writes: >>>>The Finder contains a Menu ID=15 which has a Sleep entry below ShutDown. >>>>What is this menu used for? (A/UX?). >> >>>I'm pretty sure that's for the portable, which goes to 'sleep' to conserve >>battery power. >> >>Seriously, the menu with sleep in it is added by Pyro 4.0. Obviously, >>you copied a finder that belongs with a system that once had (or has) >>Pyro installed. > >The Sleep menu item under Special is really threre. When the System >senses that you're running on a Mac Portable, it makes the selection >become available. > >I'm not sure how Pyro 4 does it; I haven't gotten a chance to play >with Pyro recently. It might just add a menuitem of its own and >ignore the Sleep that's already available. The sleep menu exists in all recent Finders (I'm not sure when it started, but since the Portable came out anyway). If a System trap called _Sleep exists, then the Finder displays the Special menu with the Sleep item instead of the normal Special menu. Selecting Sleep in this menu simply calls the _Sleep trap. Finder doesn't actually know what Sleep will do. The portable has a _Sleep trap built into it, probably in ROM. Pyro simply checks to see if this trap already exists and if it doesn't, then adds one of its own, which calls its own "Sleep" routine. The interesting thing is that the Finder that runs under A/UX has a third Special menu that has a Logout item instead of Sleep. It checks for a certain A/UX trap and supplies a logout function if it exists. It's a good thing A/UX doesn't run on the Portable :-). -- Andy Peterman | Opinions expressed treehouse!andyp@gvgpsa.gvg.tek.com | are definitely those of (916) 273-4569 | my employer!