[comp.sys.mac.programmer] WindChooser question...

dvb@inmet.inmet.com (12/08/89)

I picked the WindChooser from mac.binaries and thought it was swell.
(Alex's shrinker was the one for me...)

However, I noticed it held onto a chunk of memory (especially when
there is only a meg) and was wondering if it would be possible to just
paste the WDEF (or something) into the system and save some the memory
and init-time.

I tried a little, but I am a bit leery of trial-and-error with the
system file...

Thanks...

dvb@inmet.inmet.com
Intermetrics, Inc.

earleh@eleazar.dartmouth.edu (Earle R. Horton) (12/08/89)

In article <32600003@inmet> dvb@inmet.inmet.com writes:
>
>I picked the WindChooser from mac.binaries and thought it was swell.
>(Alex's shrinker was the one for me...)
>
>However, I noticed it held onto a chunk of memory (especially when
>there is only a meg) and was wondering if it would be possible to just
>paste the WDEF (or something) into the system and save some the memory
>and init-time.

     You can do this.  You also have to edit the 'ROv#' resource for your
ROM revision so that the ROM WDEF gets overridden.  On a Mac Plus, for 
instance, open the System File with ResEdit, open 'ROv#' 117, add an
item of "TYPE" WDEF and "RES ID" 0.  It will still use up a chunk of
memory, because normal operation uses the ROM copy of the WDEF.

Earle R. Horton

6600pete@hub.UUCP (12/08/89)

From article <17822@dartvax.Dartmouth.EDU-, by earleh@eleazar.dartmouth.edu (Earle
 R. Horton):
- In article <32600003@inmet- dvb@inmet.inmet.com writes:
 
-- I picked the WindChooser from mac.binaries and thought it was swell.
-- (Alex's shrinker was the one for me...)
 
-- However, I noticed it held onto a chunk of memory (especially when
-- there is only a meg) and was wondering if it would be possible to just
-- paste the WDEF (or something) into the system and save some the memory
-- and init-time.
 
-      You can do this.  You also have to edit the 'ROv#' resource for your
- ROM revision so that the ROM WDEF gets overridden.  On a Mac Plus, for
- instance, open the System File with ResEdit, open 'ROv#' 117, add an
- item of "TYPE" WDEF and "RES ID" 0.  It will still use up a chunk of
- memory, because normal operation uses the ROM copy of the WDEF.
 
I was thinking about taking advantage of ROv#'s to write WindChooser II, but
AltWDEF was released with an eminently better Shrinker WDEF, so I sort of
abandoned WindChooser. (Additionally, no one could tell me where to find the
ROM version without hard-coding it into the cdev and comparing with a Mac
model chart (and the Environs call certainly doesn't work on my SE/30)). I'm
not interested in encouragement to do this thing, but I just thought I would
point out that you cannot do this ROv# business with the newer versions of
AltWDEF, because they require their INIT for support. Not the best strategy,
IMHO, but apparently this was the only practical thing for Alex to do. 
 
P.S. I've now sent AltWDEF off to c.b.m twice, so either somebody doesn't like
it or it gets lost somewhere on the way, the latter of which I doubt.
-------------------------------------------------------------------------------
Pete Gontier   | InterNet: 6600pete@ucsbuxa.ucsb.edu, BitNet: 6600pete@ucsbuxa
Editor, Macker | Online Macintosh Programming Journal; mail for subscription
Hire this kid  | Mac, DOS, C, Pascal, asm, excellent communication skills

mcdan@dtg.nsc.com (Eric McDaniel) (12/08/89)

>- In article <32600003@inmet- dvb@inmet.inmet.com writes:
> 
>-- I picked the WindChooser from mac.binaries and thought it was swell.
>-- (Alex's shrinker was the one for me...)
> 

I, too, thought WindChooser was "swell".  I have one question, however.
The WDEF that allows you to iconify windows (was that Alex's Shrinker?
I forget...) also allows you to drag the icons around.  If I reopen
a window after dragging the icon around, and discover that I've moved
the title bar off the screen, how do I regain control of that window?


-- 

Eric McDaniel
mcdan@dtg.nsc.com

earleh@eleazar.dartmouth.edu (Earle R. Horton) (12/09/89)

In article <389@haydn.nsc.com> mcdan@dtg.nsc.com writes:
>>- In article <32600003@inmet- dvb@inmet.inmet.com writes:
>> 
>>-- I picked the WindChooser from mac.binaries and thought it was swell.
>>-- (Alex's shrinker was the one for me...)
>> 
>
>I, too, thought WindChooser was "swell".  I have one question, however.
>The WDEF that allows you to iconify windows (was that Alex's Shrinker?
>I forget...) also allows you to drag the icons around.  If I reopen
>a window after dragging the icon around, and discover that I've moved
>the title bar off the screen, how do I regain control of that window?

You don't.  Also, if the application saves the window position when you
quit, it could be permanent...  Better to be careful with the Shrinker.

By the way, I have discovered that you can paste any WDEF into WindChooser,
select it from the cdev, and it will come up as the default.  This makes
WindChooser a useful tool for testing WDEFs if you are developing the 
things.  Better set the system heap bit in the resource first, however,
or you can get interesting system errors.

Earle R. Horton