HDTenEightyP/NetNews huggingface dataset:
From: omh@cs.brown.edu (Owen M. Hartnett)
Subject: Re: Developing programs for low-end Macs
Organization: Brown University Department of Computer Science
Date: Tue, 24 Nov 1992 01:39:34 GMT

In article <2828@tau-ceti.isc-br.com> jimc@tau-ceti.isc-br.com (Jim Cathey) writes:
>In article <1992Nov13.181736.25732@udel.edu> sethi@pokey.cis.udel.edu (Adarshpal S Sethi) writes:
>>I am developing a program using Think C that is
>>required to run under both System 6 and System 7
>>as well as on low-end Macs including the 128K and
>>512K Macs. The only machines available to me are
>>the Mac SE and the MAC II. My question is: What
>
>I had heard that Think C 5.0 is unable to do this.  I'm doing exactly
>this (and I've tested down to Sys 3.2 --- I even allow for MFS.  If I
>ever find something older I'll try it on it, too).  I'm using Think C
>4.0, and probably cannot upgrade if I want my program to work in all
>my customer environments. 

Here's the rub on Think C, and why I switched to Think Pascal after
I encountered it.  Think C uses HGetState and HSetState, which only appears
in Volume IV of Inside Mac, not in the original first three.  If you
happen to be running a System prior to this (pre-MacPlus System software),
you are hosed.  At least this is what Think C used to do many years ago, but
at the time a Think engineer (don't think that Think was Symantec then), replied
that they weren't going to change it, you better upgrade to new system
software or crash.  I think they looked at the platform, i.e. if you had a
Plus, they figured you were using a later version of System Software, but
if you weren't, it crashed.  Took a while to find that one out.  That's back
in the days when everyone was shipping system software with their apps
and I wanted a "One version fits all Macs" solution.

-Owen


Owen Hartnett				omh@cs.brown.edu
"FAITH, n. Belief without evidence in what is told by one who speaks
		without knowledge, of things without parallel."
			-Ambrose Bierce - The Devil's Dictionary
From: nyang@bonnie.ics.uci.edu (Nick Yang)
Newsgroups: comp.sys.mac.programmer
Subject: Please help with GrayRgn
Keywords: C
Date: 19 Nov 92 11:02:00 GMT
Article-I.D.: ics.2B0B7428.27432
Organization: Univ. of Calif., Irvine, Info. & Computer Sci. Dept.

Hi!  I am sure this is a very easy question.  Can someone tell he how to
find out the width and height of a region?  Specificly, I am trying to
find out the width and height of the GrayRgn global variable.  Thank you
very much for your help in advance.

Nick Yang   nyang@bonnie.ics.uci
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: Blat
Organization: Kalamazoo College
Date: Sun, 22 Nov 1992 22:59:20 GMT

ksand@apple.com (Kent Sandvik ) writes:
>
>We at DTS have the sources to Blat, and I guess
>one nice night-time hack would be to roll in 040 MMU support
>into the Blat tool.

Can anyone satisfy my curiosity as to why it's so hard to get it to work
on machines with the IIci, LC, or IIsi ROM?  The only thing that I can
think of, is that the ROM accesses those vectors and that Blat would,
therefore, flag errors too often to be useful.  Why can't the "offending"
traps be patched with clean versions, or isn't it that simple, or am I
completely and totally off-base?

I imagine those three machines (plus Quadras) must represent a sizable
number of developers, and hey, just the _thought_ of trapping writes to
NULL with the MMU is making me drool...
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "I don't think we should have to have them wandering the streets
  frightening women and people."                            - Pat Buchanan
Newsgroups: comp.sys.mac.programmer
From: krf@troy.cat.rpi.edu (Keith R. Fieldhouse)
Subject: Re: will ETO include system 7.1 ?
Organization: Rensselaer Polytechnic Institute, Troy, NY
Date: Sun, 22 Nov 1992 14:36:22 GMT

In article <1992Nov20.212652.25684@asterix.drev.dnd.ca> louis@asterix.drev.dnd.ca (Louis Demers) writes:
>
>	Will we continue to get thee latest system software
>	with our subscription to ETO ?


Well,  ETO 9 came with disk images for System 7.1.

Keith
From: miles@emx.cc.utexas.edu (Miles Abernathy)
Newsgroups: comp.sys.mac.programmer
Subject: $$$ Available, Software Niche Identified
Date: 18 Nov 92 21:06:12 GMT
Organization: University of Texas
X-UserAgent: Nuntius v1.1.1d10
X-XXMessage-ID: <A7300A9CF3019F31@mac39.util.utexas.edu>
X-XXDate: Wed, 18 Nov 92 14:58:36 GMT

A couple of days ago I posted this in comp.sys.mac.apps, and so far have
not received any responses.

>Here at work we have some folks who need help keeping their inventory of
>electronic components up-to-date. We can't quite figure out how a simple
>database like FileMaker could do this in a user-friendly manner, so we
>are seeking some dedicated freeware, shareware, or commercial inventory
>software.
>
>For each component, they technicians need to know how many they have in
>stock, how many are on order and when the order is expected. When a
>component's inventory gets low, the software should include it on a
>weekly list of items to be ordered. The software should keep track of how
>long it typically takes for an order to be delivered, as well as a
>typical number of the components used each week, and use that information
>in judging when to order more components.
>
>This is bound to be a common, _a very common_, problem, but we can't find
>any Mac software to handle it. Any suggestions?

MacWarehouse has one package, Shopkeeper. I don't think it is going to do
what we need.

Today I called the National Software Database (free, 704-255-8259, 2400
baud) to see what they had listed. Under the keyword "Inventory," they
had _257_ commercial packages available. Only _one_ is for the Mac,
"POS-IM." It costs $1,795 to to $2,495 from Ensign Systems, 801-546-6490.

For informative purposes, here are the last 10 listings from NSD. They
seem to be representative:
248)    VEHICLE DEALERS                IBM, ALTOS
249)    VENDOR PRODUCT NUMBER          IBM
250)    WAREHOUSE COMMAND              IBM RT
251)    WAREHOUSING                    IBM COMPATIBLES, ALTOS
252)    WHL DISTRIBUTION               IBM RT, PS/2
253)    WHOLESALE DISTRIBUT. SYS.      IBM RT, PS/2
254)    WIN-LINE                       IBM AT, 386, OR COMPATIBLE
255)    WISE V3.6                      IBM PS/2 MODEL 60 OR LARGER
256)    WRIGHT WORKS                   IBM PS/2 MODEL 60 OR LARGER
257)    WSL DISTRIBUTION               IBM, AT&T3B2, CRDS, NCR

Now, there is bound to be a substantial market here for a software writer
or company. And if you come up with a product, let us know...we really
need something! We are interested in keeping inventory low, yet adequate,
to save money, and we can afford to buy appropriate software.
Newsgroups: comp.sys.mac.programmer
From: Chris McNeil <cmcneil@mta.ca>
Subject: Menus, How do I save checkmark
X-Xxmessage-Id: <A72EDC1971010108@rush.mta.ca>
X-Xxdate: Tue, 17 Nov 92 22: 27:53 GMT
Organization: Mount Allison University
X-Useragent: Nuntius v1.1.1d11
Date: Tue, 17 Nov 1992 21:25:22 GMT

I'm writing an application (think C) that uses a check beside a menu item
under the prefs menu. When I exit my program I want to save the state of
the menu item so I do this:

/* Save the Prefs menu settings */
	ChangedResource(PrefsMenu);
	WriteResource(PrefsMenu);

The next time I fire up the application there are no menu items visible
under the prefs menu, only a blank rectangle appears when I select prefs.
 If I exit my program again and restart it the menu items reappear. Next
restart they disappear etc.

Can anyone tell me what I am doing wrong ? My menus are stored in the
resource file.

Thanks,
Chris McNeil
cmcneil@mta.ca
Newsgroups: comp.sys.mac.programmer
From: ksand@apple.com (Kent Sandvik )
Subject: Re: Bad F-line instruction
Date: Sun, 22 Nov 1992 07:38:17 GMT
Organization: Apple
Followup-To: comp.sys.mac.programmer

In article <BxoCp1.JyE@inews.Intel.COM>, dmills@accvio.intel.com (Dave
Mills) wrote:
> I'm useing THINK C 5.0.3, System 7.0.1, Mac II.  When I build an application,
> it always crashes with the message "Sorry, a system error occured 'Program'
> bad F-line instruction".  The program runs fine from within the THINK
> environment.

The 68 F-line was a 'spurious interrupt' vector until Omega-SANE
started to use this vector for handling FPU instructions not
present in the 040 built-in FPU.

In your case you have a Mac II, so I would personally suspect something
more strange like writing code that overrides the low memory vectors
with bogus values. Check if you by mistake write into low memory
inside your program. Anyway, that'a guess. If you use Think C 5.0.3
it should have the new debugger that should know about the F-line
use.

Kent
-------------------
Kent Sandvik (UUCP: ....!apple!ksand; INTERNET: ksand@apple.com)
DISCLAIMER: Private activities on the Net.
From: krk@oit.itd.umich.edu (Kenneth Knight)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Copying a BitMap
Date: 15 Nov 1992 18:45:21 GMT
Organization: Instructional Technology Laboratory, University of Michigan
Distribution: world
NNTP-Posting-Host: helen.oit.itd.umich.edu

In article <yjc-141192221634@b61539.student.cwru.edu> yjc@po.cwru.edu (Jerome Chan) writes:
>How do I copy a BitMap to the DeskScrap? Inside Mac Vol I only shows how to
>do them with 'TEXT' and 'PICT' files. How do I copy a BitMap to the
>DeskScrap?
>
>---
>The Evil Tofu

The easisest way would be to simply create a QuickDraw PICT of the bitmap.
Simply open up a pcture of the proper size, copybits the bitmap to itself,
and close the picture. Then Copy the PICT to the clipboard. You could also
just copy the bit map data straight out, but you will have to figure out
just how big that is by yourself. That is possible, but you'll have to be sure
to get all the various fields. With a BitMap this is not too bad since you 
only need to be sure to copy the raw memory pointed to by BaseAddr. 

Newsgroups: comp.sys.mac.programmer
From: mebhl@wombat.newcastle.edu.au (TUNRA Bulk Solids)
Subject: Handling large matricies
Organization: University of Newcastle, AUSTRALIA
Date: Fri, 20 Nov 1992 05:25:09 GMT

Could someone steer me in the right direction with the following query.
Trying to manipulate large matricies(300x300) of extended, upto 8 at
a time, Using THINK Pascal. Is it posibble to do this on the heap?
Would it be better to do it by making each matrix a read/write file?
Would apprecite any tips, refs to books etc.

Thanks,

Simon.
From: yjc@po.cwru.edu (Jerome Chan)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Copying a BitMap
Followup-To: comp.sys.mac.programmer
Date: 15 Nov 1992 16:03:06 GMT
Organization: The Tofu Society of Singapore
Distribution: world
NNTP-Posting-Host: b61539.student.cwru.edu

In article <yjc-141192221634@b61539.student.cwru.edu>, yjc@po.cwru.edu
(Jerome Chan) wrote:
> 
> How do I copy a BitMap to the DeskScrap? Inside Mac Vol I only shows how to
> do them with 'TEXT' and 'PICT' files. How do I copy a BitMap to the
> DeskScrap?

Additional information: The bitmap is composed of more than 32k QuickDraw
commands. I just want to copy the resulting bitmap out to the desk scrap.



---
The Evil Tofu
Newsgroups: comp.sys.mac.programmer
From: Jim Cook <J.Cook@ENS.Prime.COM>
Subject: Re: Scrollbars in ModalDialog, how to?
Reply-To: <J.Cook@ENS.Prime.COM>
Organization: Prime Computer, Inc.
Date: Fri, 20 Nov 1992 21:50:11 GMT

In article <1992Nov19.192050.10502@rtsg.mot.com> wolfmc@rtsg.mot.com (Michael
Wolf) writes:
>I have a dialog which I have some scrollbars in.  I have the CNTL
>resources as well.  All was done in ResEdit.
>
>I have my own dialog filter proc.  I was wondering, should I handle
>all of the scrollbar interaction in my filter proc?  If I don't
>the standard filter proc will do the TrackControl when in the thumb and
>up/down arrows, but what about the page up/down areas?
>
>So I was wondering what the correct way to handle this is, I want to make
>sure I follow all the nice guidelines from Apple (ie:  should I handle
>it or let the dialog manager it for me).

Mmmm...I was writing a thresholding control in a dialog box.  I "discovered"
that indeed the dialog mgr. would handle a scrollbar, but ResEdit would only
allow me to have the scroll bar of some max. size that was too small for
me (not enough granularity).  I wound up handling it in my filter proc. or
whatever it was.

Just a datapoint.

(Don't call me an expert).

Good luck,
Jim
From: mjohnson@Apple.COM (Mark B. Johnson)
Newsgroups: comp.sys.mac.programmer
Subject: Macintosh Technical Notes on ftp.apple.com
Date: 19 Nov 92 06:10:01 GMT
Organization: Apple Computer Inc., Cupertino, CA


After much too long, the latest Macintosh Technical Notes are now available
again on ftp.apple.com (130.43.2.3) in /ftp/dts/mac/tn/

Enjoy

-- 
Mark B. Johnson                                            AppleLink: mjohnson
Developer Technical Support                         domain: mjohnson@Apple.com
Apple Computer, Inc.         UUCP:  {amdahl,decwrl,sun,unisoft}!apple!mjohnson

"You gave your life to become the person you are right now.  Was it worth it?"
                                                         - Richard Bach, _One_
Newsgroups: comp.sys.mac.programmer
From: megy@ufrima.imag.fr (MEGY stephane)
Subject: printing dialog
Keywords: print
Organization: University of Grenoble (France)
Date: Wed, 18 Nov 1992 11:32:08 GMT

hi!

i need a way to put a code between the printing dialog (exit with 
ok button) and the real print on the printer. because i want to 
count the papersheet used. 
thanks

-- 
*********************************************************
   MEGY Stephane (nicked name: le sudiste)
   e.mail: megy@ufrimag.fr
   MST ESI 2eme annee Universite Joseph Fourier 
Newsgroups: comp.sys.mac.programmer
From: jmk3@crux2.cit.cornell.edu (Jay M. Krell)
Subject: Re: Emacs-like editor for MPW 3.2
Organization: Cornell Information Technologies
Date: 23 Nov 92 21:49:59 GMT

>It even has a GNU:ish name, FRED (Fred Resembles Emacs Deliberately) :-).
>If someone wondered what GNU stands for, it's "GNU is Not Unix".

Recursive acronyms :)

 - jay.krell@cornell.edu

Newsgroups: comp.sys.mac.programmer
From: dawson@cs.cornell.edu (Dawson Dean)
Subject: Claris Apple Events
Organization: Cornell Univ. CS Dept, Ithaca NY 14853
Date: Thu, 19 Nov 1992 03:06:57 GMT


   I want to send an apple event to several third party programs,
particularly some of Claris' programs (MacWrite, FileMaker, etc.).
I looked through the Apple Events Doirectory on ftp.apple.com,
but all that lists is the core events and the QuickDraw events.

Does Claris publicize these things? I`ve seen demos where their
programs work closely together, so there is an extensive set of
Apple Events, but do they tell developers about these?

Does anybody at Claris read this group? How about it? Is there
something like a claris ftp site (my local yp has no idea of
claris.com). Is there an 800 number? 

How about becoming a registered Claris-cadet-developer-scout?
Is there some contact that tells me about this? I remember when
the MacWrite/Draw TN's went over to Claris (#15 and 16 if I
remember correctly) and there was some note about calling Claris'
own developer support or something. Does this exist?

Does Apple release this kind of stuff about 3rd party apps?

Any information would be a great help,
Thanks mucho,

Dawson Dean
dawson@cs.cornell.edu
-- 
__________________________________________________________________
Dawson Dean                       Internet: dawson@cs.cornell.edu
Cornell Computer Science          Office:   (607) 255-1068
__________________________________________________________________
From: d.olson@apple.com (Donald Olson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: File ID questions!
Date: 21 Nov 92 04:40:16 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer Inc.

In article <20NOV92.22500823.0068@VM1.MCGILL.CA>, news@sifon.cc.mcgill.ca
wrote:
> 
> 
>     Hi, all!
> 
>     I'm writing an INIT/CDEV that is supposed to watch user-specified
> folders for activity (new files, removing files, etc) and take follow-
> up action. I'm trying  to code an efficient way of "snapshot"ing the
> folder at regular intervals to detect adn pinpoint file movement.
> 
>     a) would it be healthy to just maintain a list of file IDs for
> all files within a folder? How would this work for sub-folders? (Since
> one cannot create a file ID for them) IM VI says that the
> PBCreateFileIDRef function "creates a record to hold the file vRefNum
> and directory ID). If I demand large volumes of FileIDs from the system,
> will I be filling up disk directory space? Where is this information
> stored and how efficiently?
> 
>     b) Is there an easier, more kocher way of keeping track of the
> coming and going of files in specific folders? Any help is appreciated.
> 
> CXEO@musica.mcgill.ca

I'm not sure if this is what you asked, but...

The way I'd go about it is to catalogue folder in question as you suggested
and then track the modDate of the folder. Any modifications will cause the
mod date of the folder to change and then you can iterate through to see
what changed.

You'll need to track the mod date of the files inside the folders in your
'catalogue' for the case where a user replaces a file with one of the same
name. I think you could also check to see if the file id has been created
for a file. If you've created a fileID for a file and the file gets
replaced, the new file will not have a fileID associated with it. 

Of course, fileIDs only work on Sys 7 >

Donald
From: louis@asterix.drev.dnd.ca (Louis Demers)
Newsgroups: comp.sys.mac.programmer
Subject: will ETO include system 7.1 ?
Date: 20 Nov 92 21:26:52 GMT
Organization: Defence Research Establishment Valcartier


	Will we continue to get thee latest system software
	with our subscription to ETO ?
-- 
| Louis Demers              | DREV, Defence Research Establishment,Valcartier |
| louis@asterix.drev.dnd.ca | POBox 8800, Courcelette,Quebec, CANADA, G0A 1R0 |
|            (131.132.48.2) | Office: (418) 844-4424       fax (418) 844-4511 |
+---------------------------+-------------------------------------------------+
Newsgroups: comp.sys.mac.programmer
Subject: Re: Fixing Apples serial drivers. How?
From: chergr@lure.latrobe.edu.au
Date: Wed, 18 Nov 1992 02:20:53 GMT
Organization: VAX Cluster, Computer Centre, La Trobe University 

Here is some more background on my serial driver. 

The serial driver on the micro I have been talking to at 38400 baud
is interrupt driven with recieve and transmit buffer $80 in size.
The current implementation of this sends an xoff for every character recieved
that fills the buffer behond a certain size. I have looked into this
driver very thoroughly. It does have some potential problems which I fixed
to do with the interrupt routine stealing the xoff which was a polled
routine within the recieve interrupt handler. Fixing other potential
problems similar to this appeared to have very little effect. 

I eventually got the thing working properly by changing the character
limit to a higher value ($30->$70) so that the xoff is sent when the buffer
has a lot more characters in it. The person who wrote the serial handler
for the micro was trying to solve what may have been another proble
by setting the character limit so low. The mac plus can now send the
data without artificial delays being inserted. 

So why doesn't it work with such a small buffer size??? My hypothesis is
that the Mac ends up recieving twice as many characters as it is sending.
That is each echoed character plus an xoff. The recieve interrupt on the
mac has a higher priorty than the transmit. Could it be that the transmit
buffer on the mac is overflowing???


Thanks for everones contributions

Richard Rothwell


Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Determining modifier key status without an event record
Organization: University of Delaware
Date: Thu, 19 Nov 1992 04:30:22 GMT

The orthodox method of determining the status of the modifier keys is
by looking at an event record.  The modifier bits are even set correctly
for null events, so within the event loop, it is always possible to
determine the status of the modifier keys.

However, I need to find the status of the modifier keys in contexts
where no reliable event record is available.  Specifically:

1.  I want to know what the status of the modifier keys at the earliest
    possible moment when the application starts up.  I have an optional
    short-cut which is invoked if the user holds down the command key
    when starting the application.

2.  I want to know what modifier keys are down when the user has selected
    something from a menu.  The original mousedown event in the menu
    bar is not a reliable source, because the user might have pressed
    the mod keys after clicking the mouse and while viewing the menus.
    (I have another shortcut which I want to invoke if the user holds
    down certain modifier keys while making certain menu selections).

Is there some way to find out the status of the mod keys in these contexts?
If the answer is something really risky and unsupported, I'd be more
inclined just to scrap these shortcuts, but I'd like to make them
available if it's possible.

--Kurisuto
From: mark@prepress.com (Mark S. Bubien)
Newsgroups: comp.sys.mac.programmer
Subject: DES encryption algorithm for Mac???
Date: 18 Nov 92 21:37:49 GMT
Organization: Pre-Press Technologies, Carlsbad Ca.


I need a function that generates a DES encryted string given
a salt and a key.  Specifically, I am looking an equivalent to
the UNIX crypt() function on a Mac:

	char *crypt(char *salt, char *key);

Does anyone have an implementation of "crypt" that I can use
(it's for an in-house thing, so it doesn't have to be blazingly
fast, and it won't go into any of our products)?

-Mark
--
==========================================================================
Mark S. Bubien		|                                                |
mark@prepress.com	|  I was there when they crucified my Lord.      |
                        |  I held the scabbard when the soldier drew     |
Pre-Press Technologies	|       his sword.                               |
2443 Impala Dr.		|  I threw the dice when they pierced his side.  |
Carlsbad, Ca 92008	|  But I've seen love conquer the great divide.  |
(619) 931-2695		|			- Bono Vox               |
                        |                                                |
==========================================================================
Newsgroups: comp.sys.mac.programmer