home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15076 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.9 KB

  1. Path: sparky!uunet!sun-barr!ames!data.nas.nasa.gov!taligent!apple!mumbo.apple.com!gallant.apple.com!NewsWatcher!user
  2. From: jpugh@apple.com (Jon Pugh)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Closing AppleTalk
  5. Message-ID: <jpugh-070992010805@90.20.3.214>
  6. Date: 7 Sep 92 08:09:35 GMT
  7. References: <jpugh-050992190641@90.20.3.218>
  8. Sender: news@gallant.apple.com
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: Apple Computer, Inc.
  11. Lines: 40
  12.  
  13. In article <jpugh-050992190641@90.20.3.218>, jpugh@apple.com (Jon Pugh)
  14. wrote:
  15. > I'm tired of using the Chooser to turn Appletalk on and off on my PowerBook
  16. > (way too may OK buttons), so I tried writing a simple FKEY to toggle
  17. > AppleTalk:
  18. > IF IsMPPOpen THEN
  19. >    err := MPPClose
  20. > ELSE
  21. >    err := MPPOpen;
  22. > This seems to work, but someone keeps calling MPPOpen after I close it and
  23. > everything (like File Sharing) starts back up.
  24. > Does anyone know what else I need to do to turn AppleTalk off?  What does
  25. > the Chooser do?
  26.  
  27. Well, I was slightly incorrect in my first posting, but I understand why
  28. now.  My simple FKEY does, in fact, toggle AppleTalk on and off and will be
  29. an essential PowerBook tool, assuming nothing adverse shakes out in the
  30. beta test phase.  ;)
  31.  
  32. The trouble appears when I open the Chooser to check if Appletalk is off. 
  33. The Chooser saves the state of AppleTalk and sets it to that state when the
  34. Chooser is opened.  In addition, if you turn Appletalk off in the Chooser,
  35. calling MPPOpen fails with -98 (Port Not Configured - a PRAM error).
  36.  
  37. So, it appears that I need to find out what chunks of PRAM I need to set to
  38. either make AT stay off or allow it to be turned on.
  39.  
  40. Any clues?
  41.  
  42. This behavior is all right though.  This way AppleTalk always stays on when
  43. booting regardless of the state the FKEY set, which is desired.  I wouldnUt
  44. mind keeping that behavior.  I just like to know whatUs really going on.
  45.  
  46. Yeah, like they tell me whatUs going on...
  47.  
  48. Jon
  49.