home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13145 < prev    next >
Encoding:
Internet Message Format  |  1992-07-29  |  2.4 KB

  1. Path: sparky!uunet!gatech!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: System Extension sample source wanted!!
  5. Message-ID: <55395@mentor.cc.purdue.edu>
  6. Date: 29 Jul 92 09:11:58 GMT
  7. References: <1992Jul28.154357.10360@elroy.jpl.nasa.gov> <1992Jul29.050358.4513@monu6.cc.monash.edu.au>
  8. Sender: news@mentor.cc.purdue.edu
  9. Organization: Purdue University
  10. Lines: 38
  11.  
  12. In article <1992Jul29.050358.4513@monu6.cc.monash.edu.au> ins712r@aurora.cc.monash.edu.au (Heng Chiang) writes:
  13. >minh@inst-sun1.jpl.nasa.gov (Minh Lang) writes:
  14. >: I am looking for some sample source for writing System Extension.
  15. >Me TOO!  I have found a lot of source code for general applications
  16. >but I haven't seen any for control panels / extensions.  I would
  17. >really like to know how people actually start writing extensions (INIT)
  18. >with the horrible lack of documentation.
  19.  
  20. The best piece of documentation I've seen on writing INITs was an article
  21. by Eric Shapiro that I pulled off of AOL called "Writing INITs in Think C".
  22. I'm not sure if it's available in any of the archives. If you can't find
  23. it and don't have access to AOL let me know and I'll e-mail a copy to
  24. any one who wants it. This article has the best INIT shell I've seen.
  25.  
  26. The second edition of Macintosh Programming Secrets also has info on writing
  27. inits, including patching traps. I personally think that someone should write
  28. a whole book on low-level stuff like drivers and inits.
  29.  
  30. If your interested in communications, Programming with AppleTalk has an
  31. example of an INIT.
  32.  
  33. The Macintosh C Programming Primer Vol II has an example of an INIT,
  34. although it does not patch any traps which is usually what you want to
  35. do when you write an INIT. However, it has a good example of a cdev.
  36.  
  37. Personally, I learned how to write INITs by deciding on something that I
  38. wanted to do and posting lots of questions. Like most aspects of Mac 
  39. programming, writing INIT's has a pretty steep learning curve, but the
  40. rewards definately are worth the effort.
  41.  
  42. --
  43. Carl W. Haynes III  
  44. Haynes Consulting Services        ||  CWH3@aol.com
  45. PO Box 2715                       ||  haynes@mace.cc.purdue.edu
  46. W. Lafayette, IN 47906            ||  hcs@applelink.apple.com
  47. ----------------------------------------------------------------------
  48.      Macintosh Programming & Consulting -- I am currently seeking 
  49.         Macintosh development contracts, available immediately.
  50.