home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / amiga / programm / 15648 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  2.1 KB

  1. Path: sparky!uunet!portal!cup.portal.com!Lee_Robert_Willis
  2. From: Lee_Robert_Willis@cup.portal.com
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Amiga Application Framework
  5. Message-ID: <69254@cup.portal.com>
  6. Date: Tue, 10 Nov 92 16:13:50 PST
  7. Organization: The Portal System (TM)
  8. Distribution: world
  9. References: <68764@cup.portal.com> <heinz.04d0@edohwg.adsp.sub.org>
  10. Lines: 40
  11.  
  12. >In article <68764@cup.portal.com> Lee_Robert_Willis@cup.portal.com writes:
  13. >>Now if you want to add support for multiple windows, this event loop
  14. >>gets really ugly.
  15. >
  16. >Why? Each window has a UserData field which you can use to point to your
  17. >window-specific project data. With each IntuiMessage you get the window
  18. >ptr. So there's not really a problem.
  19. ...
  20. >>If you want to add support for multiple projects, you can't have all
  21. >>those global gadgets.    (You need new copies for each project)
  22.  
  23. >Global gadgets? What do you mean? global gadget structures? You can't add
  24. >that to multiple windows anyway. 
  25.  
  26. *Exactly*.  Yet that is what you see in RKM examples (esp. 1.3) and the 3rd
  27. party Amiga Programmer books.  All the gadgets are global data.
  28.  
  29. >If you use gadtools or some small wrapper
  30. >functions around gadtools, you get copies of your gadgets for free ;^)
  31. >
  32. >>If you want to add support for multiple screens, you need some
  33. >>way of keeping track of the screens.
  34. >
  35. >True. I keep an exec list for each _used_ screen including the DrawInfo and
  36. >the font sizes I typically need.
  37.  
  38. These are all good techniques.  I use variations on all of them myself.
  39.  
  40. But I had to figure each of them out myself, because they're not in the RKMs
  41. this way.  I took me a-while to catch on to putting all my gadgets into one
  42. big structure and having the Window->UserData point there. How many other
  43. 'better-than-the-RKM-example' technicques are out there? If these aren't
  44. collected somewhere in some "How to build a full-scale Amiga Application"
  45. document, then we're all re-inventing these wheels.
  46.  
  47. My original post was motivated by my intention to start such a document
  48. (and utility library), but I didn't want to do it if such a beast exists
  49. already.
  50.  
  51. Lee      Lee_Robert_Willis@cup.portal.com
  52.