HDTenEightyP/NetNews huggingface dataset:
From: jmatthews@desire.wright.edu
Newsgroups: comp.sys.mac.programmer
Subject: Re: Dynamic Change of Mouse Tracking Speed
Date: 16 Oct 92 02:16:10 EST
Organization:  Wright State University 

> ralex@tigger.cs.Colorado.EDU (Repenning Alexander) writes:
> : 
> : I am dealing with the visual representation of complex data structures.
> : I like to experiment with the Mouse Tracking Speed to make it easier
> : for users to track on important information: "soft snapping".
> : 
> : Is there some simple way to change the mouse tracking speed (e.g. via
> : a trap)?  What I need is a function allowing me to adjust mouse
> : tracking to speeds like the ones avaivable in the MOUSE CDEV (very
> : slow, .., fast). How is the MOUSE CDEV doing it?
> : 
> : Any ideas, clues?

Alley & Strange, _ResEdit Complete_, from the Macintosh Inside Out series,
discusses mouse thresholds stored in 'mcky' resources. There's a nice
explanation of what the values mean, but nothing about how to change
them on the fly (except to edit the active system file and touch the
control panel).

I notice that booting System 5.1 messes up mouse tracking, as does the
return to System 7 after fixing it in 5.1. I'm going to go out on a limb
here and speculate that mouse tracking is system dependent.

After many folks begged to be able to change screen depth on the fly,
DTS produced HasDepth and SetDepth. I wonder if something analogous
for mouse tracking might be possible.

o----------------------------------------------------------------------------o
| John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
|      "Whom the gods would destroy, they first invite to program in C"      |
o----------------------------------------------------------------------------o
Lines: 7
Date: Thu, 15 Oct 92 19:54:22 MDT
Newsgroups: comp.sys.mac.programmer
Subject: Drawing a string vertically?
Distribution: usa
Organization: Brigham Young University, Provo UT USA
From: qiaok@bones.et.byu.edu (Kun Qiao)

Is there any way to draw a string vertically in a window?  I am writing a plot
program and would like to draw my y axis label vertically.  Currently, I have to
draw each character one at a time.  I wonder if I can draw the whole string at
once.  

Any help is greatly appreciated.

Newsgroups: comp.sys.mac.programmer
From: Steve Christensen <stevec@apple.com>
Subject: Re: Bug in Mac ROMs
X-Useragent: Nuntius v1.1
Date: Wed, 14 Oct 1992 01:48:49 GMT
Organization: Apple Computer, Inc.

In article <1992Oct14.091914.59@otago.ac.nz> , michael@otago.ac.nz writes:
>I have just found this little gem being executed in the ROM of my IIsi
(System
>7.0.1, TuneUp 1.1)
>
>408177A6:  MOVE.L A0,-(A7)
>           _LoadResource
>           _HLock
>
>Unless I'm hallucinating again, this is a bug. It relies on A0 being
preserved
>across the _LoadResource call, something it has no right to do. It only
works
>because it so happens that the present _LoadResource does preserve A0.
Or it
>did until I patched it...
>
>I want new ROMs. Immediately :-).

Well, it's obvious that you've read the Resource Manager chapter of Inside
Macintosh volume 1.  At the very top of page I-120 is the following:

    Assembly-language note: LoadResource preserves _all_ registers.

What more can I say?

steve
(ROM guy)
Newsgroups: comp.sys.mac.programmer
From: neath@brazil.psych.purdue.edu (Ian Neath)
Subject: Source to convert sound files from IBM to Mac
Organization: Purdue University
Date: Wed, 7 Oct 1992 13:56:06 GMT

Has anybody tried converting sound files from the IBM to the Mac?
Specifically, I want to convert output from a Klatt synthesizer
that runs on IBMs to any Mac sound format (e.g., 'SND ', SoundEdit).
The obvious nondigital solution (to record using the Mac's sound
input abilities) adds noise to the sound.

Any sample source, hints, info, possible sources of info would
be greatly appreciated.  If you email, I'll post a summary.

--
    Ian Neath, PhD     | There are four kinds of people in this world:
neath@psych.purdue.edu | cretins, fools, morons and lunatics - U. Eco
Xref: sparky comp.sys.mac.programmer:16648 comp.sys.mac.apps:15444 comp.sys.mac.wanted:9275
Organization: Valencia University (Universitat de Valencia) SPAIN
Date: Thursday, 8 Oct 1992 13:56:12 EST
From: Werenfried Spit <SPIT@EVALUN11.BITNET>
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.apps,comp.sys.mac.wanted
Subject: MPW C / MPW C Bundle

Hello,

In the APDA price list I found `MPW C v3.2.3' for $150 and `MPW C Bundle v3.2.3
for $450. Could anyone explain me the difference. What is in the `bundle' that
is not in the other thing? What do I need?

Any comments appreciated,
------------------------------------------------------------------------
Werenfried Spit                         tel: +34-6-386 4551
  Departamento de Fsica Terica        spit@vm.ci.uv.es
  Universidad de Valencia               spit@evalun11.bitnet
From: mxmora@unix.SRI.COM (Matt Mora)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Help w/Retrace and Animation - LSP
Date: 7 Oct 92 16:15:28 GMT
Organization: SRI International, Menlo Park, California

In article <1992Oct5.234306.7335@iscsvax.uni.edu> ingles2135@iscsvax.uni.edu writes:
>I am doing some animation in Think Pascal. The animation is very jerky. I am
>almost positive that it is a retrace problem.
>Isn't there a procedure that waits for the next vertical retrace to start? I
>thought there was one, but I can't seem to find it anywhere.


Page 372 of the Think Pascal Manual:

10.9.8 The Synch Procedure

"The Synch procedure is used to synchronize your programs actions with the
Macintosh screen's drawing cycle, which occurs every 60th of a second.

bla bla bla"

It doesn't state whether it works with the color monitor systems.
But I can't imagine Symantec being so brain dead as to include
a procedure that only works with old compact macs. :-)


Matt





-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________
Organization: Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.mac.programmer
Date: Wed, 14 Oct 1992 00:51:15 -0400 
From: "Edward B. Rodgers" <er1u+@andrew.cmu.edu>
Subject: Graph Programming Environment

I am looking for a commercial quality graph programming environment.  By
that I mean something like a C library of graphing functions. I aware of
only one product called OGP, Object Graph Programming.  Unfortunately,
it is quite inadequate.  I'm would prefer a product that's usable in
Think C and is object oriented.  However, at this point anything would
be acceptable.

If anyone has any knowledge or experience of a product like this, could
you please send me mail.  Thanks in advance, any help would be greatly
appreciated.

Briscoe Rodgers
Newsgroups: comp.sys.mac.programmer
From: griswoldj@bntley.bntley.ingr.com (John Griswold)
Subject: Re: Think C and sizeof() ???
Followup-To: comp.sys.mac.programmer
Organization: Bentley Systems (Development)
Date: Tue, 13 Oct 1992 17:58:52 GMT

In article <dang.718983733@cserver>, dang@cserver.plexus.com (Dan Gardner)
wrote:
> 
> I just installed Think C on my IIci and patched
> it to 5.0.3. Everything seems fine. I wrote this simple
> program to list the data sizes and got some unexpected
> results.  (project included the ANSI lib)
> 
> #include <stdio.h>
> 
> main()
> {
> 	printf("The size of char is %d\n", sizeof(char));
> }
> 
> This resulted in  "The size of char is 0".
> 
> Huh? Hello MacFly! Check me if I'm wrong but this should work
> on any compiler under the sun.

The problem is that sizeof() returns a size_t (which equates roughly to a
long).  The %d expects to find an 'int' on the call stack,  What it found
was a 'long'.  If you had used %ld in your printf statement then all would
have been fine.  Or if you changed the size of 'int' to be 4 bytes and then
recompiled the ansi library, etc, etc..

> 
> Interesting that this next program worked:
> 
> #include <stdio.h>
> 
> main()
> {
> 	int i;
> 
> 	i = sizeof(char);
> 	printf("The size of char is %d\n", i);
> }
> 
> This resulted in  "The size of char is 1".

This one worked because the size_t had been converted to an 'int' and then
the printf %d expected an int.

> 
> Will someone straighten me out on this...
> Thanks.
> 
> --
>  _____   _____ _________________________
> |     ) (     |                         |
> |    (   )    | dang@cserver.plexus.com |
> |     ) (     |                         |
> |    (   )    |                         |
> |_____) (_____|_________________________|
>       

--------------------------------------------+---------------------------
John Griswold                               | Bentley Systems Inc.
UUCP: ...uunet!ingr!bntley!griswoldj        | 690 Pennsylvania Drive 
INTERNET: griswoldj@bntley.bntley.ingr.com  | Eagleview Corporate Center
AT&T:     (215) 458-5000                    | Exton, PA 19341
--------------------------------------------+---------------------------
Newsgroups: comp.sys.mac.programmer
From: leonardr@netcom.com (Leonard Rosenthol)
Subject: Re: Option key madness
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Mon, 12 Oct 1992 16:17:45 GMT

In article <1992Oct12.040750.20383@muddcs.claremont.edu> wprice@pomona.claremont.edu writes:
>I am trying to read option keys from the Mac keyboard, and of course have  
>noticed that various keys will not even send an event when initially typed  
>such as Option-E and Option-U, and Option-'.  How do I override this system so 
>that Option can be used normally for those special characters?
>
	There are two ways to do this - the right way and the wrong way!

	The wrong way is what ZTerm & NCSA Telnet (to name two) do it. That is
to require the user to use THEIR KCHR resource, which requires the user to 
do a bit of ResEditting of the System file, since KCHR's must live in the System
under System 7.

	The right way to do it (which MicroPhone II & Smartcom do) is to 
first patch _KeyTrans to map the option modiifier to something else (in the
cases above, the control modifieir).  However, since the process manager
swaps patches on even minor context switches, you could STILL get the wrong
characters.  So you have to do some on-the-fly munging of the KCHR (after
copying the orignal!!) - BUT remember to restore the original KCHR on 
suspend/resumes!!

-- 
-----------------------------------------------------------------------------
Leonard Rosenthol			Internet: 	leonardr@netcom.com
Director of Advanced Technology		AppleLink:	MACgician
Aladdin Systems, Inc.			GEnie:		MACgician
From: dougm@cns.caltech.edu (Doug McNaught)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Regular Expressions
Date: 9 Oct 92 21:48:55
Organization: California Institute of Technology
Distribution: usa
	<MERLYN.92Oct1233655@romulus.reed.edu>
	<1992Oct9.191133.16952@alias.com>
NNTP-Posting-Host: bradbury.cns.caltech.edu
In-reply-to: Reid Ellis's message of Fri, 9 Oct 1992 19:11:33 GMT

In article <1992Oct9.191133.16952@alias.com> Reid Ellis <rae@Alias.com> writes:

   David Spencer <spencer@panix.com> writes:
   |The gnu regular expression library is at prep.ai.mit. ... The separate
   |regex library is called beta, but it's an extended and rationalized
   |version of the grep regex code.

   Randal L. Schwartz <merlyn@ora.com> writes:
   |Remember of course that this code is subject to the GNU Public
   |License.  And because of RMS's opinions about Apple, you can bet that
   |code for a Mac that uses these routines but violates the GPL would be
   |prosecuted swiftly and painfully.

   Um, simply using GNU[*] code on a Mac does NOT violate the GPL.  The
   political position that GNU has taken is just that -- a political
   position.  There is nothing in the GPL that forbids GNU code to be
   used for Macintosh products.  Period.  RMS[**] and GNU do, however, ask
   that you boycott Apple's products [even to the point of developing any
   code for them] because of Apple's coporate behaviour vis-a-vis look
   and feel lawsuits.

  Using GNU code on a Mac doesn't in itself violate the GPL, correct.
Randal's point is that code that does violate the GPL (as in, you
release the binary but refuse to make the source freely available)
would probably be more likely to attract a suit due to the FSF's
position.

   So David, feel free to use and recommend the GNU regexp library to
   Macintosh programmers if you don't agree with the position that has
   been taken by RMS and GNU.

  As long as source is freely available, there is no violation. 
-doug
--
Doug McNaught              |"Sadder still to watch it die/ Then never to have
dougm@cns.caltech.edu      | known it/ For you, the blind who once could see/
doug@midget.towson.edu     | The bell tolls for thee..." --Neil Peart
  Nobody approves my opinions! Not even me, sometimes. Read at your own risk.
Newsgroups: comp.sys.mac.programmer
From: Michael Hecht <Michael_Hecht@mac.sas.com>
Subject: Re: Think C and sizeof() ???
X-Useragent: Nuntius v1.1.1d12
Date: Tue, 13 Oct 1992 17:32:44 GMT
X-Xxdate: Tue, 13 Oct 92 18:30:23 GMT
X-Xxmessage-Id: <A7007FEFB601050A@studly.mac.sas.com>
Organization: SAS Institute Inc.

In article <dang.718983733@cserver> Dan Gardner, dang@cserver.plexus.com
compares:
>	printf("The size of char is %d\n", sizeof(char));
[...]
>This resulted in  "The size of char is 0".

to:
>	int i;
>
>	i = sizeof(char);
>	printf("The size of char is %d\n", i);
[...]
>This resulted in  "The size of char is 1".

Under ANSI, sizeof() returns the type size_t, which is defined in THINK
C's <size_t.h> as an unsigned long. The first program is just printing
out the high 16 bits. The second program converts this to an int first,
so it works fine.

Unfortunately, I know of no way to portably code the printf format string
to format an expression of type sizeof_t.

--Michael

=======================================================================
Michael P. Hecht                 | Internet:  Michael_Hecht@mac.sas.com
SAS Institute Inc.; Cary, NC USA | AppleLink: SAS.HECHT
From: bowman@reed.edu (Eric Bowman (bobo))
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C++??
Date: 13 Oct 92 22:41:44 GMT
Article-I.D.: reed.1992Oct13.224144.5061
Organization: Reed College, Portland, OR

In article <1992Oct13.124312.887@gagme.chi.il.us> essam@gagme.chi.il.us (Essam Khairullah) writes:
>I have never quite figure out why people would want to use MPW anything to
>do any programming!  It just seems to be so archaic!  Maybe if they put a
>Commando shell on it (ala A/UX) it would be easier to use...  But then just
>remember that this (MPW) is coming from the same people who invented the idea
>of using a Lisa to program a Mac...

Oh god, I'd hate to start YAFWOWIBMPWOT (Yet Another Flame War Over Which
Is Better, MPW Or Think), BUT:

MPW has a commando interface, and it is, IMO, one of the most powerful
interfaces ever developed.  I only wish it supported wild cards.

And it ain't archaic, it's hellishly powerful.  Nobody has ever figured out
how to implement such flexibility and power any other way, or at least with
reasonable speed.

Most people who can't understand why anyone would ever like MPW have never
learned how to use MPW effectively.  There are plenty of good reasons not
to use MPW, like the fact that it's slow, expensive, and a memory hog, but
the ability to script and write tools has saved me *so much agony and effort*,
for so long, that I really can't imagine using Think for any other reason
other than that it's cheap and compiles more quickly.  Plus MacApp 3 blows
TCL out of the water in terms of functionality...but that's a whole other
can 'o worms...

bobo
bowman@reed.edu
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: Virtual Serial Ports
Originator: d88-jwa@dront.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Sun, 11 Oct 1992 12:30:14 GMT

@mcl.ucsb.edu (Scott Bronson) writes:

   open or close them!  I assume RAMSDOpen is wholly obsolete, but even my

Yes.

   super-thick new X-Ref can't tell me where to find more info on how to open
   and close a serial driver by its in and out name without conflicting with
   the ROM (?) driver.

OpenDriver. What's wrong with that?

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Suedoise (not french speaking) --

 NetHack 3.1: Any Year Now.
Newsgroups: comp.sys.mac.programmer
From: nerm@apple.com (Dean Yu)
Subject: Re: 'lpch' in System File: What? Why? Whither?
Date: Sat, 10 Oct 1992 21:41:24 GMT
Organization: Apple Computer, Inc.
Followup-To: comp.sys.mac.programmer

In article <1992Oct9.061900.8870@bilby.cs.uwa.edu.au>, Quinn
<quinn@cs.uwa.edu.au> wrote:
> 
> I was disassembling the 'boot' 2 resource in the System file recently
> [Why?  Recreational disassembly.] and I came across a whole pile
> of 'lpch' resources.  One of these is 200k big!!!  Does anyone have
> any idea what they are?
> 
> Quinn "The Eskimo!"      <quinn@cs.uwa.edu.au>     "Support HAVOC!"
> Department of Computer Science, The University of Western Australia
>   -- Oh dear, there goes the licencing agreement.
>   -- Curiousity killed the .... arrrgghhh!!!

  These are the resources which contain the majority of the patch code for
System 7.  As you can probably tell, we've got a lot of patches in the
system...

-- Dean Yu
   Blue Meanie, Negative Ethnic Role Model, etc.
   Apple Computer, Inc.
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: C.S.M.P. Digest V1 #184 Available
Date: 15 Oct 92 12:36:17 GMT
Article-I.D.: cs.1992Oct15.123617.25718
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.


C.S.M.P. Digest             Thu, 15 Oct 92       Volume 1 : Issue 184

Today's Topics:

	System Extension sample source wanted!!
	PLstrcmp?? Do the right thing!
	IM 1-7  vs New: FILES, PROCESSES, MEMORY Books
	STUFFIT FORMAT
	Problem writing INIT/cdev
	A/ROSE
	Best text compression?
	How do you launch a Control Panel?
	Top byte of 24-bit offscreen gworld?



The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.

The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  (This means you can't post questions to the
digest.)

Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
cs.uoregon.edu).  Article threads are not added to the digest until the last
article added to the thread is at least one month old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
[128.223.8.8] in the directory /pub/mac/csmp-digest.  Be sure to read the
file /pub/mac/csmp-digest/README before downloading any files.  The most
recent issues are available from sumex-aim.stanford.edu [36.44.0.6] in the
directory /info-mac/digest/csmp.  If you don't have ftp capability, the sumex
archive has a mail server; send a message with the text '$MACarch help' (no
quotes) to LISTSERV@ricevm1.rice.edu for more information.

The digest is also available via email.  Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new issue as it is created.  Sorry, back issues
are not available through the mailing list.

Send administrative mail to mkelly@cs.uoregon.edu.


-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
Newsgroups: comp.sys.mac.programmer
From: Bruce.Hoult@bbs.actrix.gen.nz
Subject: Re: vSynchWait and PowerBook I/O
Organization: Actrix Information Exchange
Date: Wed, 14 Oct 1992 05:19:36 GMT

In article <jpurlia-121092170808@129.46.5.45> jpurlia@qualcomm.com (John Purlia) writes:
> I've writted an app that communicates to an external device via the modem
> port.  My app runs fine on a Quadra 700 and a IIci, but hangs forever and
> ever and ever when run on a PowerBook 170.  A protocol analyzer reveals
> that nothing is ever sent from the serial port when I call FSWrite.


Every time (yes, it's happend more than once -- some people never
learn :-( ) that one of my serial port programs hangs on a Portable or
PowerBook it's because I've forgotten to call SerHShake to turn off
hardware handshaking.

It seems that on most Macs if the HskIn line is unconnected it floats
to the voltage that tells the Mac "carry on" but on the portables it
floats the other way when unconnected...  Hardware handshaking is on
by default.

-- Bruce
-- 
Bruce.Hoult@bbs.actrix.gen.nz   Twisted pair: +64 4 477 2116
BIX: brucehoult                 Last Resort:  PO Box 4145 Wellington, NZ
"Cray's producing a 500 MIPS personal computer with 256MB RAM and 8 GB
hard disk that fits in your pocket!"   "Great!  Is it PC compatible?"
Newsgroups: comp.sys.mac.programmer
From: dang@cserver.plexus.com (Dan Gardner)
Subject: Think C and sizeof() ???
Organization: Plexus Corp. -- Neenah Wisconsin
Date: Tue, 13 Oct 1992 13:42:13 GMT

I just installed Think C on my IIci and patched
it to 5.0.3. Everything seems fine. I wrote this simple
program to list the data sizes and got some unexpected
results.  (project included the ANSI lib)

#include <stdio.h>

main()
{
	printf("The size of char is %d\n", sizeof(char));
}

This resulted in  "The size of char is 0".

Huh? Hello MacFly! Check me if I'm wrong but this should work
on any compiler under the sun.

Interesting that this next program worked:

#include <stdio.h>

main()
{
	int i;

	i = sizeof(char);
	printf("The size of char is %d\n", i);
}

This resulted in  "The size of char is 1".

Will someone straighten me out on this...
Thanks.

--
 _____   _____ _________________________
|     ) (     |                         |
|    (   )    | dang@cserver.plexus.com |
|     ) (     |                         |
|    (   )    |                         |
|_____) (_____|_________________________|
Newsgroups: comp.sys.mac.programmer
Subject: Re: Resource Help!!!!!
From: mgeorgy@vmsclst1.sc.csupomona.edu
Date: 9 Oct 92 08:40:26 PDT
Followup-To: comp.sys.mac.programmer
Organization: Computer Science Computational Systems
Nntp-Posting-User: mgeorgy

In article <chuck-081092143515@choffman.gte.com>, chuck@gte.com (Chuck Hoffman) writes:
> In article <1992Oct8.075927.1@vmsclst1.sc.csupomona.edu>,
> mgeorgy@vmsclst1.sc.csupomona.edu wrote:
>> 
>> Hello, Could someone please explain to me how to use resources that I have
>> created via RESEDIT.  The  compiler I use won't let me conveniently select the
>> files and it does everything for me like the Think series, so I think I'll have
>> to use the REZ, DEREZ tools in MPW, right???
>> 
> 
> No, ResEdit should be fine for MPW.  Which compiler are you using?  Maybe
> someone else using the same compiler can help with this.
> 
> Chuck Hoffman
> chuck@gte.com
> GTE Laboratories, Waltham, Massachusetts, USA
> (617) 466-2131
> =====================================
> I'm not sure why we're here, but I am sure that while we're here we're
> supposed to help each other.
> =====================================

Well I am using the Meridian ADA compiler (please no cracks!!!).

Matt Georgy

Newsgroups: comp.sys.mac.programmer