home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
- From: jpugh@apple.com (Jon Pugh)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Closing AppleTalk
- Message-ID: <jpugh-070992010805@90.20.3.214>
- Date: 7 Sep 92 08:09:35 GMT
- References: <jpugh-050992190641@90.20.3.218>
- Sender: news@gallant.apple.com
- Followup-To: comp.sys.mac.programmer
- Organization: Apple Computer, Inc.
- Lines: 40
-
- In article <jpugh-050992190641@90.20.3.218>, jpugh@apple.com (Jon Pugh)
- wrote:
- >
- > I'm tired of using the Chooser to turn Appletalk on and off on my PowerBook
- > (way too may OK buttons), so I tried writing a simple FKEY to toggle
- > AppleTalk:
- >
- > IF IsMPPOpen THEN
- > err := MPPClose
- > ELSE
- > err := MPPOpen;
- >
- > This seems to work, but someone keeps calling MPPOpen after I close it and
- > everything (like File Sharing) starts back up.
- >
- > Does anyone know what else I need to do to turn AppleTalk off? What does
- > the Chooser do?
-
- Well, I was slightly incorrect in my first posting, but I understand why
- now. My simple FKEY does, in fact, toggle AppleTalk on and off and will be
- an essential PowerBook tool, assuming nothing adverse shakes out in the
- beta test phase. ;)
-
- The trouble appears when I open the Chooser to check if Appletalk is off.
- The Chooser saves the state of AppleTalk and sets it to that state when the
- Chooser is opened. In addition, if you turn Appletalk off in the Chooser,
- calling MPPOpen fails with -98 (Port Not Configured - a PRAM error).
-
- So, it appears that I need to find out what chunks of PRAM I need to set to
- either make AT stay off or allow it to be turned on.
-
- Any clues?
-
- This behavior is all right though. This way AppleTalk always stays on when
- booting regardless of the state the FKEY set, which is desired. I wouldnUt
- mind keeping that behavior. I just like to know whatUs really going on.
-
- Yeah, like they tell me whatUs going on...
-
- Jon
-