home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / mac / programm / 21008 < prev    next >
Encoding:
Text File  |  1993-01-08  |  3.6 KB  |  84 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!sunic!kth.se!dront.nada.kth.se!d88-jwa
  3. From: d88-jwa@dront.nada.kth.se (Jon WΣtte)
  4. Subject: Re: Win 3.1 vs. Mac Toolbox Messaging (Question)
  5. Message-ID: <1993Jan8.174134.29088@kth.se>
  6. Sender: usenet@kth.se (Usenet)
  7. Nntp-Posting-Host: dront.nada.kth.se
  8. Organization: Royal Institute of Technology, Stockholm, Sweden
  9. References: <93008.105210REE700A@MAINE.MAINE.EDU>
  10. Date: Fri, 8 Jan 1993 17:41:34 GMT
  11. Lines: 71
  12.  
  13. In <93008.105210REE700A@MAINE.MAINE.EDU> <REE700A@MAINE.MAINE.EDU> writes:
  14.  
  15. >  I have just deceided to migrate from the University owned 386 to my SE/30
  16. >for some software development.  I have ordered Think C 5.0...
  17.  
  18. That's nice for single use. If you're used to Borland, you'll
  19. feel right at home.
  20.  
  21. >  I have been reading some of the Mac revealed series (Mac Plus edition)
  22. >and was aghast at the lack of API calls that Win 3.x supports.  Then it
  23.  
  24. Well, I do both, and the difference is actually not as large,
  25. since Win 3.x doesn't support a lot of stuff that Mac 4.1 does...
  26. There's just a difference between emphasis.
  27.  
  28. >   So, my question is:  Does system 7.x provide a more complete degree of
  29. >support.  Specifically - are there more than 16 Event classes?
  30.  
  31. Why would there be? (Well, yes, there's an additional class now,
  32. called kHighLevelEvent)
  33.  
  34. The OS messages are user interaction message primitives, and these
  35. are by definition simple and few. However, with HighLevelEvents, you
  36. can compose and send any kind of events to any process - yourself,
  37. another program, or even something completely different half a world
  38. away. Instant easy networking! There's also a comprehensive suite
  39. of protocols to be used. Note that the AE calls are made very easy for
  40. the programmer, you talk about tags and data associated with the tags;
  41. the rest is done by the Toolbox.
  42.  
  43. >                       - does 7.x handle most scroll-bar and other controls
  44. >                         itself now?
  45.  
  46. Not more than 4.1 (or 1.0 for that matter) If you use the dialog
  47. manager, it's quite easy. Even better, Think C comes with a class
  48. library that's better than OWL or MFC for windows; that library
  49. makes such things trivially easy.
  50.  
  51. >                       - Am I still responsible for updating parts of a
  52. >                         window that actually belong to the system?
  53.  
  54. I suppose you're talking of the size box? However, that's something
  55. YOU put there; you don't have to draw it if you don't want to.
  56. Same thing goes for controls etc. You draw them if you want them,
  57. and that's only one call (DrawControls, DrawGrayRgn or whatever)
  58.  
  59. Again, the Think Class Library does a lot for you if all you want
  60. is the basic run-of-the-mill application functinoality.
  61.  
  62. >Oh yeah,  What is the largest array (mem alloc) I can have?  I heard in some
  63. >Mac vs. PC fight that the Mac had a 64K data block limit, but even system 4
  64. >used longint's for the alloc size...
  65.  
  66. Yes, the Mac has always had a limit of available memory for
  67. memory allocations. However, for resources, there was a 32K
  68. limit, but it's long since gone. Mac resources are also much
  69. more flexible than Windows resources; you can dynamically create
  70. and read/write them, both in your own application (discouraged)
  71. and in data files. Simple but not fast "database."
  72.  
  73. The way you should write a new-spiffy Mac application is take
  74. in the user action events, do the graphical UI stuff, then
  75. create an AppleEvent specifying that operation and send it
  76. to yourself, and let the AppleEvent handler do the actual
  77. data manipulation; this will make your application recordable,
  78. scriptable, and generally very spiffy.
  79.  
  80. -- 
  81.  -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
  82.  
  83.    There's no sex act that can't be made better with Yell-O.
  84.