home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.open-look
- Path: sparky!uunet!gumby!smaug!jipping
- From: jipping@cs.hope.edu (Mike Jipping)
- Subject: A Better Programming Interface for OLIT?
- Message-ID: <1992Dec18.145124.28204@cs.hope.edu>
- Sender: news@cs.hope.edu
- Organization: Hope College Dept of CS
- Date: Fri, 18 Dec 1992 14:51:24 GMT
- Lines: 45
-
- I like XView as a toolkit. But as Sun invests its efforts into OLIT and
- not XView, I'm starting to learn and use OLIT. First impressions about
- the toolkit is that it's more *primitive* than XView: it takes lower
- level calls and much more of them to do things that I can do in XView.
-
- Ok Ok...don't flame. Let's call it a "finer grain" programming
- interface.
-
- The developers of Sun's GUIDE seem to agree. Using "golit" on a GIL
- description file produces a file chock full of macro calls -- very
- little "real" C code (if any). For example, to construct a button, the
- following is generated:
-
- ExternWidgetDesc(Testing_button1);
- BeginWidgetDesc(Testing_button1)
- DefineWidgetDesc(
- NullGolitWidgetDescPtr,
- NullGolitWidgetDescPtr,
- NullGolitWidgetDescPtr,
- "Testing_button1",
- oblongButtonWidgetClass,
- ArgListDesc(Testing_button1),
- TypedArgListDesc(Testing_button1),
- CallbackInfoListDesc(Testing_button1),
- _GolitWDDefaultCPList
- )
- EndWidgetDesc(Testing_button1);
-
- Now, my question is: Is there a better programming interface for OLIT?
- Is the GUIDE code part of a "standard" API that Sun will produce? Have
- others sat down and built a set of macros or some higher lever C calls
- that help produce OLIT programs in a cleaner, higher-level manner?
-
- Thanks. I'll summarize.
-
- Mike Jipping
- Hope College Department of Computer Science
- jipping@cs.hope.edu (BITNET: JIPPING@HOPE)
-
- "It was a marketing coup ... to rename SunOS 4.1.X to
- Solaris 1.0. That way, Solaris 2.X could be called
- an upgrade..."
- -- Rob Kolstad, SUG '92
-
-
-