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

  1. Path: sparky!uunet!usc!zaphod.mps.ohio-state.edu!sample.eng.ohio-state.edu!purdue!mentor.cc.purdue.edu!mace.cc.purdue.edu!haynes
  2. From: haynes@mace.cc.purdue.edu (Carl W. Haynes III)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Adding menus to existing applications (a la Thunder)
  5. Message-ID: <BuH8LA.Crq@mentor.cc.purdue.edu>
  6. Date: 12 Sep 92 17:58:22 GMT
  7. References: <1992Sep12.154540.15753@prism.poly.edu>
  8. Sender: news@mentor.cc.purdue.edu (USENET News)
  9. Organization: Purdue University
  10. Lines: 31
  11.  
  12. In article <1992Sep12.154540.15753@prism.poly.edu> korfhage@weston.poly.edu writes:
  13. >  [ asks how to add menus to existing applications ]
  14. >
  15.  
  16. I wrote an INIT awhile ago which added a menu to SimAnt (SimAnt Cheater)
  17.  
  18. What I ended up doing was tail-patching _SetMenuBar and _MenuSelect.
  19.  
  20. On SetMenuBar, I would check to see if I was dealing with SimAnt and then
  21. Create a new menu and insert it. The patch for _MenuSelect would simply
  22. check to see if my menu was selected and respond accordingly.
  23. I was only worried about making it work with this one application, I don't
  24. know how generalizable this would be to others.
  25.  
  26. If you're only dealing with system 7, I'd suggest looking into how to
  27. add icon menus, like the help and application menu, to all applications.
  28. (I think they call them Finder Menus). I believe that this years
  29. MacHack disk has a couple examples of how to do this. In fact I
  30. believe Dylan Talk (available at the usual archives and the MacHack disk) 
  31. does this also and has source code.
  32.  
  33. carl
  34.  
  35.  
  36. --
  37. Carl W. Haynes III  
  38. Haynes Consulting Services        ||  CWH3@aol.com
  39. PO Box 2715                       ||  haynes@mace.cc.purdue.edu
  40. W. Lafayette, IN 47906            ||  hcs@applelink.apple.com
  41. ----------------------------------------------------------------------
  42.                   Macintosh Programming & Consulting
  43.