🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac
Article #43641

Re: What's the NeVR init do?

#43641
From: Murat N. Konar
Date: Thu, 08 Jun 1989 00:48
22 lines
1626 bytes
In article <1406@marvin.Solbourne.COM> dce@Solbourne.com (David Elliott) writes:
>Sadly, MainWDEF looks lousy when you change the colors of the scroll
>bar control on a Mac II.  While NeVR doesn't look as much like the
>NeXT interface, I find it an improvement over the standard Mac title
>bar.
>Does anyone know how these work?  Is it done by installing a new
>WDEF into the system, or by trapping WDEF executions?

It patches GetResource so that when called with a resource type='WDEF' and id=0,
it returns a handle to a custom WDEF.
The custom WDEF is loaded into the system heap and detached from the INITs resource
file (so that it stays around after the file is closed).

For some reason, this INIT also patches LoadResource.  It seems that patching
GetResource ought to be adequate.  Does anyone know why LoadResource is patched
as well?


____________________________________________________________________
Have a day. :^|
Murat N. Konar        Honeywell Systems & Research Center, Camden, MN
mnkonar@SRC.honeywell.com (internet) {umn-cs,ems,bthpyd}!srcsip!mnkonar(UUCP)
Technical Details
Message-ID: <23264@srcsip.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!indri!nic.MR.NET!srcsip!gorby!mnkonar
References: <1308@sdcc7.ucsd.EDU> <11540186@hpsmtc1.HP.COM> <1406@marvin.Solbourne.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!indri!nic.MR.NET!srcsip!gorby!mnkonar
From: mnkonar@gorby.SRC.Honeywell.COM (Murat N. Konar)
Newsgroups: comp.sys.mac
Subject: Re: What's the NeVR init do?
Message-ID: <23264@srcsip.UUCP>
Date: 8 Jun 89 00:48:07 GMT
References: <1308@sdcc7.ucsd.EDU> <11540186@hpsmtc1.HP.COM> <1406@marvin.Solbourne.COM>
Sender: news@src.honeywell.COM
Reply-To: mnkonar@gorby.UUCP (Murat N. Konar)
Organization: Honeywell Systems & Research Center, Camden, MN
Lines: 22