Delphi Mac Digest V4 #23

Info-Mac discussion from 1984 - 2002.
Locked
User avatar
Info-Mac
Administrator
Posts:13716
Joined:December 21st, 1988, 11:00 am
Delphi Mac Digest V4 #23

Post by Info-Mac » December 20th, 1988, 12:23 am

Path: utzoo!attcan!uunet!ncrlnk!ncr-sd!hp-sdd!hplabs!decwrl!ucbvax!sdr.slb.com!SHULMAN
From: [email protected] (Jeffrey Shulman)
Newsgroups: comp.sys.mac.digest
Subject: Delphi Mac Digest V4 #23
Message-ID:
Date: 9 Dec 88 12:45:00 GMT
Sender: [email protected]
Organization: The Internet
Lines: 566
Approved: [email protected]

Date: Fri 9 Dec 88 08:45:00-EDT
From: Jeff Shulman
Subject: Delphi Mac Digest V4 #23
To: Delphi-List: ;
Message-ID:
Mail-System-Version:

Delphi Mac Digest Friday, December 9, 1988 Volume 4 : Issue 23

Today's Topics:
RE: But I wanna use \ for myself!
6.0.2 and Macro Maker
SoftStep SIMMs?
re: Tempo II and INIT macros: Recommenda
re: Re: ShowINIT (was: Re: My 256K ROMs
Re-opening pictures (2 messages)
MPW Editor question (2 messages)
re: Low Memory Globals, a summary
re: Need a clever idea...
re: InitCursor
burning macs (2 messages)
RE: Usenet Mac Digest V4 #162 (2 messages)
RE: Usenet Mac Digest V4 #168
RE: Usenet Mac Digest V4 #169
MacTools 7.2 Bug
PEINT SOFT (3 messages)
word counter upgrade>

----------------------------------------------------------------------

From: DWOOD
Subject: RE: But I wanna use \ for myself! (Re: Msg 2628)
Date: 19-NOV 00:26 Programming Techniques

I have come up with two solutions to my \ problem. The first is to use
pascal strings: Str255. Unfortunately this is a bit awkward when you
are writting in C and you can't use many of the nice utilities for
reading and writting numbers to strings. The second solution is to use
option-\ which produces a From: [email protected] (Alex Nghiem)
>Subject: Tempo II and INIT macros: Recommendations?
>I'm trying to create the equivalent of an MS-DOS AUTOEXEC.BAT file on the Mac.

I've always considered the INIT 31 mechanism to be the equivalent. Each
INIT file (or cdev) is like a line in autoexec.bat.

Tempo is probably the only true macro package, in that it's got
conditional execution. I don't recall that QuicKeys has startup time
sequences.
--
David Dunham "We've got the best government money can buy."
Maitreya Design

------------------------------

From: DDUNHAM
Subject: re: Re: ShowINIT (was: Re: My 256K ROMs (Re: Msg 27827)
Date: 21-NOV 01:19 Network Digests

>From: [email protected] (Matthias Urlichs)
>Subject: Re: ShowINIT (was: Re: My 256K ROMs aren't smart enough)
>If programmers would put their showINIT code into some separate
>resource we could actually upgrade to the new version...

Some of us do. (Of course, my startup icons already are in color...)
--
David Dunham "Efficiency is intelligent laziness."
Maitreya Design

------------------------------

From: DWOOD
Subject: Re-opening pictures
Date: 24-NOV 00:17 Programming Techniques

Since I am fearless at posting messages which reveal my 'hack' style of
programming here goes again: I am now working on recording a picture for
display on the screen. Don't worry, I have figured out how to record pictures
and display them. I have even managed to print them, with excellent results on
a LaserWriter. My probelem is this: I have a single picture that I am using to
repres]x; the content of a page. Periodically I would like to add new QD
elements to it. I read in IM that I can 'turn off' picture recording, but this
only works while the picture is being recorded. Question: How can you open an
existing picture and add elements to it? Do you have to open a new picture and
then draw the old one into it? This seems time consuming since the existing
picture is going to get larger and larger as the user adds things to it. Another approch would be to maintain a list of pictures that compose the whole page, but this seems cumbersome. I really only want to mess with one picture because when I need to up
date the screen I simply have to draw the single picture. It seems
much simpler to me. Is there some trick I can use to open an existing picture
and add stuff to it? Thanks again for putting up with my hairball progamming
problems. -Doug

------------------------------

From: DDUNHAM
Subject: RE: Re-opening pictures (Re: Msg 2639)
Date: 26-NOV 01:29 Programming Techniques

Off the top of my head, a single picture may not be the best design. Let's say
your picture contains 100 rectangles. The user opens the Alarm Clock, which is
a very small window, which only obscures 1 rect. When he closes the DA, you've
got to update that very small area. So you call DrawPicture, letting QuickDraw
clip to the updateRgn for you. This works, but it's real slow, since QuickDraw
has to draw all 100 rectangles, even tho all but 1 are clipped. If you didn't
combine everything into a single picture, you'd be able to test the coordinates
of each object, and only draw it if it's in the updateRgn. Admittedly, for
rectangles QuickDraw's probably faster at this, but you might be dealing with
more complex objects.

Separate objects also seems like it'd lend itself to layered objects.

You might be able to combine two PICTs by reading the tech note which describes
PICT format. This implies a minimal amount of opcode decoding, which I'd prefer
to stay away from. (Of course, you can include a DrawPicture inside a PICT
def...)

------------------------------

From: JEFFS
Subject: MPW Editor question
Date: 24-NOV 07:24 Macintosh Developers

There are times when debugging I want to effectively comment out a section of
code. For example I want to turn

program line 1
program line 2

into

#ifdef FOO
program line 1
program line 2
#endif

I want to do this be selecting the lines of code and issue a single replace
command. The problem is that I haven't figured out how to make the Replace
command imbed the selection in the replacement. I have come up with the
following macro that works:

alias HIDE 'Mark -y XYZZY "{Active}";
replace XYZZY "#ifdef FOOn" "{Active}";
replace XYZZY "#endifn" "{Active}";
Unmark XYZZY "{Active}"'

but "Undo" will only undo the last replace. Has anyone figured out if it is
possible to do an embeded replace?

Jeff

------------------------------

From: MACEQUATION
Subject: RE: MPW Editor question (Re: Msg 2640)
Date: 27-NOV 13:45 Macintosh Developers

Dear Jeff,
Command substitution is the paradigm you seek. I think you will find the
solution pleasantly terse.

Regular expression tagging will not work because the current selection can not
be specified within a regular expression.

I have only tested it a little (as a menu command), but I would guess that it
will work anywhere within a context-free grammar. (though it may become
difficult to read because of the imbedded RETURNs)

Replace "#ifdef FOOn`Catenate
"{active}."`n#endifn" "{active}"

The Catenate command can also be command substituted to define shell variables
from window selections.

Michael J Daniel
Daniel Scientific

------------------------------

From: DDUNHAM
Subject: re: Low Memory Globals, a summary (Re: Msg 27870)
Date: 30-NOV 03:44 Network Digests

>From: [email protected] (David Phillip Oster)
>Subject: Low Memory Globals, a summary
>>From [email protected] Wed Nov 2 20:35:44 1988
>>CurApName is unnecessary. Get the refNum of the application, and call
CurApName is the handiest global ever invented. How else can I tell which
program died under MultiFinder?

David Dunham "We've got the best government money can buy."
Maitreya Design

------------------------------

From: DDUNHAM
Subject: re: Need a clever idea... (Re: Msg 27899)
Date: 4-DEC-02:00: Network Digests

>From: [email protected] (David HM Spector)
>Subject: Need a clever idea...
>I am writing and DA (and later an application) that I want the user to
>be able to add functionality to by adding some files containing code
>resources of some kind into the system folder

Read my DA article in the Jan 88 MacTutor. I called this "feature drivers,"
tho my article specifically dealt with implementing "format drivers," which
handle file format conversion for Acta.

David Dunham "Efficiency is intelligent laziness."
Maitreya Design

------------------------------

From: DDUNHAM
Subject: re: InitCursor (Re: Msg 27899)
Date: 4-DEC-02:01: Network Digests

>From: [email protected] (Robert George Johnston, Jr.)
>Subject: InitCursor
>Does anybody know of anything that a call to InitCursor does except
>set the cursor to the standard Arrow?

Yes, it resets the cursor level, which makes the cursor visible if it wasn't.

David Dunham "If it doesn't have Undo, it's not a Mac program."
Maitreya Design

------------------------------

From: DRITTNER
Subject: burning macs
Date: 4-DEC-02:17: MUGS Online

Well, I've written about it and heard about it, but Friday was experience first
hand. I was going to demonstrate to a new Macker the benefits of telecommuni-
cating. As we sat down, I placed my fingers on the keyboard and immediately
smoke started to gush from the tops vents of my Mac. I have been known to type
some lines at record speed but I didn't think I was fast enough to make my Mac
smoke. Sure enough, the smoke got darker, sweeter in smell and the top of the
Mac turned yellow brown. I quickly turned it off - another Mac bites the dust.
In defense, it is a 512E,originally born as a 128. It was spinning for months
without a fan I might add, but it has taught me a lesson. My BBS at home is no
longer a 24 hour BBS. It will not be on while I'm at work or away. My home is
just a little more important. Hopefully this will serve as a warning to all Mac SYSOPS who, like me, have placed too much confidence in that little grey box.
Don

------------------------------

From: NWOLF
Subject: RE: burning macs (Re: Msg 27904)
Date: 4-DEC-03:08: MUGS Online

If your Mac was originally a 128 it's not a little grey (silver, platinum, etc.,
etc) box at all, but, oh well, almond, tan, beige, olive, what-have-you. Anyway,
these older 512s especially, have an inferior (and smaller) version of the
flyback transformer. One can easily tell if you have this smaller version: there
are 2 sets of holes for the pins to mount the flyback transformer on most power
boards for the older machines. If yours is mounted in the inner circle of holes,
then it is the kind that is more likely to crash and burn. The sturdier variety,
which mounts in the outer holes, also has a little arm which kind of extends out
and over the top of the transformer. It LOOKS like a stronger unit, even. If you
have one of the smaller, weaker transformers, it's probably not a good idea to
wait much longer to get it replaced. The presence or absence of a fan is not
assurance that the thing will not burn anyway. Many fans do not adequately vent
the case. And most do not draw cool air in from the top vents, especially the
one most proximate to this transformer. Rather, they exhaust the hot air through
them. I would submit that pushing heated air from your logic board(s) past the
hottest part of the power board is not an effective means of providing cooling.
There are several other parts which apple used to save a few cents and which are
likely to cause trouble. There are a couple of caps - don't remember the numbers
without looking - but they are somewhat fat squat little things which are
located in the upper left-hand corner of the board. These are also known to
overheat and die, although there is little fire hazard if they do so. There's
also a resistor which should be routinely replaced which is associated with the
same area of the board. I'll se if I can find the part numbers and the
recommended replacements. It's been a while since these things have come up, as
most people are running Plusses and SEs and this problem went away with the
512e, in which they used the beefier flyback transformer.

Neil

------------------------------

From: MACLAIRD
Subject: RE: Usenet Mac Digest V4 #162 (Re: Msg 27827)
Date: 4-DEC-17:25: Network Digests

>From: [email protected] (John Norstad)
>Subject: Viral Resources
>Date: 16 Nov 88 20:20:09 GMT

Having recently been bitten by nVIR (having recently gone to a dealer for
an update to HyperCard, which apparently was the vector), I have to note
that you omitted one small point:

nVIR patches CODE 0 in infected APPLs to point to CODE 256 resource. It
does not always do this; I think that the ones that were not patched had
only two or three CODE resources.
--
Laird J. Heal Programmers do it for money.
Delphi: MACLAIRD Hackers do it for fun.
MaBell: (603) 898-1406

------------------------------

From: NWOLF
Subject: RE: Usenet Mac Digest V4 #162 (Re: Msg 27907)
Date: 4-DEC-21:26: Network Digests

I believe there is a newer strain of nVIR about. From what I've heard it
operates somewhat differently than the original, though I'm not sure of the
specifics. If memory serves, the original either patched or created CODE 0 and
then created a high number CODE resource - usually 256, although I think there
was something about creating another, higher resource - say 264 - if 256 was
already present, which is extrememly unlikely. Other resources were also
created. Rumor has it that the new strain is not fooled by installing empty nVIR
resources in the system, and that it also messes with Apple's Rx as well as
Interferon and possibly other detection/eradication hacks.

If anyone has further information about this latest scourge I'd sure like to find
out more.

Neil

------------------------------

From: MACLAIRD
Subject: RE: Usenet Mac Digest V4 #168 (Re: Msg 27897)
Date: 4-DEC-17:27: Network Digests

>From: [email protected] (Saiid Paryavi)
>Subject: Help with Lisa
>Date: 29 Nov 88 21:40:34 GMT
>Organization: Kansas State University,
> Dept of Computing & Information Sciences

>I need help from someone who has experience with the Lisa.

>I have layed [sic] my hands on a Lisa and don't know anything about it. I
>think it is one of the earlier models, since it has two 5 1/4" drives
>and no 3 1/2". It does have 1 meg of RAM and a hard disk of unknown
>size!

You will have very great difficulty finding boot disks for the "Twiggy"
drives. Your cheapest shot would be to find someone with a Lisa in your
area and format the hard disk with their software. The Operating System
options would be: SCO Xenix, Lisa Office System, Lisa Pascal Workshop,
and MacWorks Plus, in order of worst to best. It would also be possible
to use MacWorks 3.0 either on a Lisa 2 or in conjunction with the Multi-
Port Install utility on a Lisa 2/10 with a parallel card.

I personally am located a little too far away from you to help you out. I
would guess, however, that your machine will run fine. The hardware is
really quite robust; the only problems I have had have been with the video
board (which I munged) and the ROMSwitcher I used to help munge the video.

You can get replacement drives from Sun Remarketing. They will sell you
a cage to slip into the drive bay, together with a replacement ROM. They
are also selling 30 MB hard drives and DS floppies, for a fair price. Tell
them you want to see if the machine works first, and they should be able to
get you a SS drive. You can also get MacWorks (3.0 or Plus) from them.

Another possible problem is that the hard disks can "lose factory format".
The ProFile controller has a built-in self-test. Sometimes it tests itself
without being connected to the Lisa, but normally you power the disk and then
turn the Lisa on shortly thereafter. A properly functioning drive will blink
quite deliberately for two or three minutes, apparently reading each track.
If your disk has lost factory format, after you power it up it should blink
about twice and then the drive light should stay on or off. The ProFile
controller expects very specific control information on the disk, and an
interleave of 7 or something like that: this is not at all to say speedy.
It still beats the pants off a floppy or the HD20.

Got any more questions?
--
Laird J. Heal The 1980's: the decade of hype.
P.O. Box 1485
Salem, NH 03079
(603) 898-1406
Delphi: MacLaird
Sorry no UUCP - but I'm a-working on it!

------------------------------

From: MACLAIRD
Subject: RE: Usenet Mac Digest V4 #169 (Re: Msg 27898)
Date: 4-DEC-17:30: Network Digests

>From: [email protected] (Seymour Joseph)
>Subject: MacXL compatible spreadsheet?
>Date: 1 Dec 88 22:21:57 GMT
>Organization: Rutgers Univ., New Brunswick, N.J.


>Some friends and I are using 1MB Macintosh XL computers at home. These
>are actually converted Lisa 2/5 systems. Can anyone recommend a good
>spreadsheet that runs on these beasties. Current versions of Excel
>don't, I don't expect WINGZ to work and I don't know of any others.

Get ahold of MacWorks Plus. It is Macintosh Plus emulation for the Lisa.
I would advise getting the double-sided floppy drive as well, and you can
also buy an internal hard disk drive.

In New York, Dafax Processing Corp. have been very active in the support of
the Lisa. However, they just returned my $15 update prepayment for MacWorks
Plus with no other comment; I will call on Monday to see why. They are in
Malba/Queens at (718) 746-8220. In my experience, Sam Neulinger, who runs
Dafax, is a rock-bottom decent businessman. He will try to talk you out of
what he thinks you don't need. He deserves support, as he has stood by the
Lisa during some very lean years. The toll-free number is (800) 782-7823.

The Lisa Shop, who have been a hardware and software developer, are now
moving from Minneapolis to Silicon Valley. I spoke with them on Friday,
and their new address is P.O. Box 969, Woodland, CA 95695. Their old
telephone number was (612) 874-8596, and I expect there will be a message
on that number with the new one. I sent them a card asking for a product
list, and I encourage you to do the same. They were in the middle of all
their moving as I called; it made me wish I were in Minnesota to pick up
all the pieces.

One of their products is a
Date: 9-DEC-00:20: Public Domain

Is there an upgrade to Andrew Page's WordCounter DA? I've been using it for a
couple of years, and it's been great for both MacWrite and text files, but under
System 6.0.2 it won't run under Multifinder (it worked fine under MF is System
5) -- in fact, it crashes spectacularly. Anyone know if ther's been an upgrade
or a comparable program by someone else?

Thanks, Paul Lehrman


------------------------------

End of Delphi Mac Digest
************************
-------
Locked