home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / openloo / 4870 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.0 KB  |  56 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!gumby!smaug!jipping
  3. From: jipping@cs.hope.edu (Mike Jipping)
  4. Subject: A Better Programming Interface for OLIT?
  5. Message-ID: <1992Dec18.145124.28204@cs.hope.edu>
  6. Sender: news@cs.hope.edu
  7. Organization: Hope College Dept of CS
  8. Date: Fri, 18 Dec 1992 14:51:24 GMT
  9. Lines: 45
  10.  
  11. I like XView as a toolkit.  But as Sun invests its efforts into OLIT and
  12. not XView, I'm starting to learn and use OLIT.  First impressions about
  13. the toolkit is that it's more *primitive* than XView: it takes lower
  14. level calls and much more of them to do things that I can do in XView.
  15.  
  16. Ok Ok...don't flame.  Let's call it a "finer grain" programming
  17. interface.
  18.  
  19. The developers of Sun's GUIDE seem to agree.  Using "golit" on a GIL
  20. description file produces a file chock full of macro calls -- very
  21. little "real" C code (if any).  For example, to construct a button, the
  22. following is generated:
  23.  
  24.         ExternWidgetDesc(Testing_button1);
  25.         BeginWidgetDesc(Testing_button1)
  26.            DefineWidgetDesc(
  27.               NullGolitWidgetDescPtr,
  28.               NullGolitWidgetDescPtr,
  29.               NullGolitWidgetDescPtr,
  30.               "Testing_button1",
  31.               oblongButtonWidgetClass,
  32.               ArgListDesc(Testing_button1),
  33.               TypedArgListDesc(Testing_button1),
  34.               CallbackInfoListDesc(Testing_button1),
  35.               _GolitWDDefaultCPList
  36.            )
  37.         EndWidgetDesc(Testing_button1);
  38.  
  39. Now, my question is:  Is there a better programming interface for OLIT?
  40. Is the GUIDE code part of a "standard" API that Sun will produce?  Have
  41. others sat down and built a set of macros or some higher lever C calls
  42. that help produce OLIT programs in a cleaner, higher-level manner?
  43.  
  44. Thanks.  I'll summarize.
  45.  
  46.       Mike Jipping
  47.       Hope College Department of Computer Science
  48.       jipping@cs.hope.edu  (BITNET: JIPPING@HOPE)
  49.  
  50.       "It was a marketing coup ... to rename SunOS 4.1.X to 
  51.        Solaris 1.0.  That way, Solaris 2.X could be called 
  52.        an upgrade..."
  53.                                     -- Rob Kolstad, SUG '92
  54.  
  55.  
  56.