🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.mac
Article #891

sumacc skeleton and utility routines posted

#891
From: Doug Moen
Date: Sat, 23 Mar 1985 04:17
27 lines
1695 bytes
"Example" is the skeleton of a generic Macintosh editor.
It's larger and more ambitious than the recently posted
"Skel" program (Example contains about 80 lines of Skel).
It has just been posted in 2 parts to net.sources.mac.

Sumacc users may be interested in some of the utility subroutines
included in the posting:

PGetItem() is an interface to the GetItem() rom routine which
returns the menu item name as a Pascal string rather than a C string.
It permits Sumacc programs to open desk accessories whose names
do not begin with a NUL.  This fixes a bug common to most Sumacc programs.
(See pGetItem.s and the AppleMenu() routine in menus.c)

MessageF() accepts printf arguments and displays debugging messages
in the menu bar, restoring the menu bar after you press space or click
the mouse.  This routine is for people who like to put fprintf(stderr,...)
in C programs under Unix for debugging purposes.

CheckHandle() displays an error message if its argument is not a valid
handle (it also tells you what's wrong with it).

Plus lots more.

-----
Doug Moen, watmath!watcgl!kdmoen
University of Waterloo Computer Graphics Lab
Technical Details
Message-ID: <1534@watcgl.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!watcgl!kdmoen

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watcgl.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!watcgl!kdmoen
From: kdmoen@watcgl.UUCP (Doug Moen)
Newsgroups: net.micro.mac
Subject: sumacc skeleton and utility routines posted
Message-ID: <1534@watcgl.UUCP>
Date: Fri, 22-Mar-85 23:17:42 EST
Article-I.D.: watcgl.1534
Posted: Fri Mar 22 23:17:42 1985
Date-Received: Sat, 23-Mar-85 02:02:01 EST
Reply-To: kdmoen@watcgl.UUCP (Doug Moen)
Organization: U of Waterloo, Ontario
Lines: 27