🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #27315

Exciting questions on Macintosh SE !!!

#27315
From: Newton Lee
Date: Mon, 18 Apr 1988 13:58
26 lines
1633 bytes
Hi, does anyone know the answers to the following questions relating to
the Macintosh SE?

1. I want my program to reside in memory all the time while it launches
   other applications.  I tried placing my program into an INIT resource
   but the system blew up with error ID = 2.  Why?  Could it be the problem
   of relocatable references created by the C compiler?

2. My program has to capture all keyboard and mouse events before they
   get to the other application.  One way to do this is to patch the
   system traps GetOSEvent and OSEventAvail.  Also, I have to install
   a JMP instruction in the system heap to jump to my program in the
   application heap.  Are there any better ways?  Are there any example
   source codes that do this?

3. I want my program to be able to read from some existing .snd resources
   and play the sounds.  However, SndPlay (trap address 0xA805) doesn't seem
   to exist in system 4.1 and I got a run-time error.  On the other hand,
   I don't know how to use StartSound function to interpret .snd resources.
   I couldn't find any book (except Inside Mac vol. 2 and 5) that talks
   about it.  Any ideas?

Thanks. Your help is greatly appreciated.

- Newton (mtund!newton 201/576-3541)
Technical Details
Message-ID: <941@mtund.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!mtunx!mtune!mtund!newton

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!rutgers!mtunx!mtune!mtund!newton
From: newton@mtund.ATT.COM (Newton Lee)
Newsgroups: comp.sys.mac,comp.sys.mac.programmer
Subject: Exciting questions on Macintosh SE !!!
Message-ID: <941@mtund.ATT.COM>
Date: 18 Apr 88 13:58:27 GMT
Organization: AT&T ISL Middletown NJ USA
Lines: 26
Keywords: Macintosh, programming, INIT, snd, events