🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Doug Moen Sat, 23 Mar 1985 04:17
sumacc skeleton and utility routines posted
#891
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads