HDTenEightyP/NetNews huggingface dataset:
From: tecot@Xenon.Stanford.EDU (Edward M. Tecot)
Subject: Re: Why would this slow down QuickDraw
Organization: CS Department, Stanford University, California, USA
Date: 21 Dec 92 21:03:27 GMT

rdd@cactus.org (Robert Dorsett) writes:
>I've noticed some interesting interaction problems with VersaTerm 4.1 and
>flight simulators, including one I'm working on.  The basic problem appears
>to be that if VersaTerm is up, then the graphics performance of the simulators
>(MS FS, Hellcats) goes through the floor.  In my own program, the performance
>loss is as much as 50%, on straight bitmap-copying.  Even with the same program
>running, if VersaTerm is then quit, performance goes back to normal.

>Can anyone suggest a reason why this is happening?  

If VersaTerm is in front of the simulator, then it's because Quickdraw must now
do extra work to clip the drawing to the grafPort.  If VersaTerm is in the
back, then I suspect it's because VersaTerm has to set up an interrupt routine
to ensure that it doesn't drop any characters.  Obvious experiments to test or
prove these hypotheses:  Try the same thing with TeachText instead of
VersaTerm.  If the behavior is the same, it's likely the first case.  If not,
it's likely the second.

_emt
From: roy@mchip00.med.nyu.edu (Roy Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Uniquely identifying a Mac? How?
Date: 24 Dec 92 01:28:40 GMT
Organization: New York University, School of Medicine
NNTP-Posting-Host: mchip00.med.nyu.edu

bobert@informix.com (Robert Murphy) writes:
> Actually, most of the dedicated Unix workstations out there - including
> Suns, NeXTs, and IBM RS/6000's - have serial numbers in a PROM on the
> motherboard.

	Any box that comes with a built-in ethernet port has the moral
equivalent of a machine-readable serial number -- the ethernet 6-byte
hardware address.
-- 
Roy Smith <roy@nyu.edu>
Hippocrates Project, Department of Microbiology, Coles 202
NYU School of Medicine, 550 First Avenue, New York, NY 10016
"This never happened to Bart Simpson."
Newsgroups: comp.sys.mac.programmer
From: christopher m. knox <chris@benton.prepress.com>
Subject: Re: Beginner's Hierarchical Menu Problem
Organization: Pre-Press Technologies, Inc.
X-Useragent: Nuntius v1.1b2
Date: Mon, 21 Dec 1992 23:16:06 GMT

In article <BzLz4t.99u@nic.umass.edu> Richard J. Resnick,
rjr@titan.ucc.umass.edu writes:
> (*Loads up the Desk Accesories in the Apple Menu*)
>   aMenu := GetMHandle(APPLE_MENU_ID);
>   AddResMenu(aMenu, 'DRVR');
> 
> (*Tries to load up the Fonts in the FONT_MENU*)
>   aMenu := GetMHandle(FONT_MENU_ID);
>   InsertMenu(aMenu, -1);
>   AddResMenu(aMenu, 'FONT');
> 
> The error that I get when I run this under Think Pascal is "Think
> Pascal unexpectedly quit", and when I build the application and run
> it, I get a missing coprocessor error.
>
> I'v tried to change the number of the FONT resource to > 128, and
>that didn't help. I tried to trace the problem, and it dies right at
>AddResMenu(aMenu, 'FONT').

Hi,
the call to GetMHandle() returns a handle of a menu ALREADY IN THE
MENULIST. A menu will not be there until you call InsertMenu, so in
all likelihood aMenu is an invalid handle and AddResMenu(aMenu...)
bombs. Try: aMenu := GetMenu(FONT_MENU_ID); and check your handles
against NIL before doing anything with them... it can save you a lot 
of grief.
Merry X-mas... Chris
chris knox "Omne animal triste est post (or without) coitum"
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
Subject: Re: FSOpen or HOpen ?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 29 Dec 1992 23:44:09 GMT

In <85918@ut-emx.uucp> tequila@ccwf.cc.utexas.edu (Mario Garcia) writes:

>What is the preferred way to open a file?  I have always used
>FSOpen but I have seen code which calls HOpen.  What are the
>advantages/disadvantages of each method ?

FSOpen only takes a wdRefNum, that's uncool.

Instead, as soon as you get a wdRefNum (say from standard
file) convert it to a vRefNum / dirID pair, and use HOpen
to open the file. See other post by me in this group.

Cheers,

						/ h+


-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

 -- I don't fear death, it's dying that scares me.
Newsgroups: comp.sys.mac.programmer
From: howard@netcom.com (Howard Berkey)
Subject: Re: Why the Piracy? Here's why...
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Mon, 21 Dec 1992 19:12:38 GMT

In article <1992Dec21.174045.7669@usl.edu> pvl1779@usl.edu (Leach Phuong V) writes:
>
>Software Company:  "If everyone would buy the software instead of pirating
>                    it.  We could afford to lower the prices."
>

Since software companies are able to charge as much as they do, and
people will pay that much for the software, this will never happen.

>Software Pirate :  "If the Software companies would lower their prices a
>                    little, maybe I could afford their product and not
>		    have to pirate it."

Regardless of what the SW costs, free is still cheaper.  Lower costs won't
affect piracy.

>
>I smell an infinite loop...
>

Nah, just business economics :)

-Howard


-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
Howard Berkey                       			   howard@netcom.com
Disclaimer:  I have been put into an evil trance by Ricardo Montalban.
It happened late at night whilst watching the 'Mr. Rourke hypnotizes the
devil' episode of Fantasy Island.  These words are his, not mine.
... .. ...   ... .. ...   ... .. ...    ... .. ...   ... .. ...   ... .. ...
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: porting windows app to mac
Followup-To: alt.flame
Keywords: n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Organization: Kalamazoo College
Date: Sun, 3 Jan 1993 23:43:06 GMT

sailu@plx.com (Sailu Reddy) writes:
>Yeah think of the gull that guy has ! HE INTENDS TO GIVE SOFTWARE AWAY
>FREELY.
>
>As far as "Apple Computers Inc" suing every other company...

Allow me to pre-emptively direct all public replies to this article into
a more suitable newsgroup.  I doubt any group with "programmer" in the
title will be pleased by a discussion of this topic.
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "The most dishonest, lying people I've ever met are homosexuals.  There
  probably are some honest homosexuals out there -- but so few as to be
  irrelevant."     - Clayton E. Cramer, three days after Christmas, 1992
Newsgroups: comp.sys.mac.programmer
From: brad@tazboy.jpl.nasa.gov (Brad Pickering)
Subject: Re: Sozobon C - a free C for the Mac, too?
Organization: Jet Propulsion Laboratory, Pasadena, CA
Distribution: comp
Date: Wed, 30 Dec 1992 18:18:28 GMT

In article <C01nrF.5ps@news.cso.uiuc.edu> e-sink@uiuc.edu (Eric W. Sink) writes:

   Newsgroups: comp.sys.mac.programmer
From: stevec@apple.com (Steve Christensen)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Puzzled: Serial PowerBook I/O
Date: 23 Dec 92 22:26:53 GMT
Organization: Apple Computer, Inc.

In article <zzT=-a#@engin.umich.edu> Gavin Eadie, Gavin@UMich.EDU writes:
>Friends ... I'm puzzled.  The following complete ThinkC program runs to
>completion on several Macs I've tried (II, IIci, Q-700 and Q-900) but
>fails to complete on PowerBooks (170 and 145).  It's got to be something
>simple (or maybe not) -- can you help?
>
>[program deleted]

You failed to mention where it fails, and what the error code is that's
returned.  Otherwise it's pretty hard to figure out what's happening,
short of being psychic.  And it's not a power issue since opening the
driver turns on the power to the serial ports...

steve
Newsgroups: comp.sys.mac.programmer
From: cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole)
Subject: Re: HELP! needed with Mac print dirver
Organization: University of Illinois at Urbana
Date: Wed, 23 Dec 1992 21:45:42 GMT

The topic of print drivers is a touchy one... right now Apple is very close to
telling developers to simply not write them. The only reference I've ever heard
of for them is a document called "Learning to Drive" from Apple, but I am not 
sure if it is still available. Unless you are a printer manufacturer (i.e. 
someone who MUST have a driver written) they will likely tell you to wait a few
months, because there is a new print architecture on the way RSN that will 
require a whole stock of new drivers, and simplify things a great deal for 
application programmers. (so they say) 

If you absolutely have to get this doen now, try calling APDA for a catalog or
to see what they have available. I suspect that you will not be very happy with
the available documentation, but they might be able to help.
From: mur@phy.duke.edu (Daniel Murphy)
Newsgroups: comp.sys.mac.programmer
Subject: Changing directories, volumes
Keywords: directories, volumes, hfs
Date: 22 Dec 92 20:27:17 GMT


I wrote an MPW shell tool which reads from a file and writes to new file.
I want to be able to set the output directory to be different from the input
directory using a flag followed by either a partial or full pathname for the 
destination directory.  This works only intermittently using HGetVol and 
HSetVol, and when it doesn't work it causes a system crash.  The system doesn't
crash if I use GetVol and SetVol, but it always places the output file in the
root directory of the path I give it.  I tried following the example in the 
Tech Notes directory q and as for full path names, but that gives me a system
crash as well.  (This uses PBGetCatInfo).  Any suggestions as to what I am 
doing wrong?
					Dan Murphy
					mur@phy.duke.edu
-- 
	Daniel Murphy				1-919-660-2522
	Duke University Dept. of Physics	mur@phy.duke.edu
	Durham, N.C.      27706
From: bowman@reed.edu (BoBolicious)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MPW Compile errors, Help!!! (long)
Date: 31 Dec 92 07:23:29 GMT
Article-I.D.: reed.1992Dec31.072329.22894
Organization: Reed College, Portland, OR

In article <1992Dec23.075909.1414@galaxy.gov.bc.ca> cconstantine@galaxy.gov.bc.ca writes:
>    C -r -i ":Hdrs:" -sym on ":Src:"Main.c -o ":Obj:"Main.c.o
>#		pixDepth = GetPixelDepth( curDev );
>#		if ( pixDepth <> 8 )
>#		               ?     
>### Error 22 error in factor

"<>" doesn't mean anything in C...I think you want "!=".

Could this be YAPBCTCBOMD?

cheers,
bobo              In seeking the unattainable,
bowman@reed.edu            simplicity only gets in the way.
Eternal nothingness is fine if you happen to be dressed for it. - Woody
From: benes@cs.purdue.edu (Chris Benes)
Newsgroups: comp.sys.mac.programmer
Subject: C preprocessor needed
Date: 29 Dec 1992 13:49:26 -0500
Organization: Department of Computer Sciences, Purdue University
NNTP-Posting-Host: wooster.cs.purdue.edu
Keywords: preprocessor

I desperately need a C preprocessor that will work under Think C 5.0.2.

The project I am working on needs to be able to preprocess and compile C
code.  The compiler is finished.  I now need the code to a compatible C
preprocessor to integrate into the program.

Does anyone know where I can get a public domain preprocessor or
where I can purchase one?

Thanks,

- Chris

___________________
Chris Benes
benes@cs.purdue.edu

Newsgroups: comp.sys.mac.programmer
From: russotto@eng.umd.edu (Matthew T. Russotto)
Subject: Re: Sozobon C - a free C for the Mac, too?
Date: Thu, 31 Dec 92 22:34:41 GMT
Organization: Project GLUE, University of Maryland, College Park
Distribution: comp

In article <29848@castle.ed.ac.uk> ngse18@castle.ed.ac.uk (J R Evans) writes:

>So given that we can have a basic small compiler running quickly, just how 
>big a job might it be to make this produce Mac code?  Comments sought!
>[e.g. Sozobon doesn't know about the specialised purposes assigned within 
>the Mac to A5, but apart from telling the compiler to leave A5 alone, 
>I guess most of this stuff will appear in the libraries? Is that so? -- 
>As is probably obvious, I've done comparitively little Mac
programming.]

I don't think the compiler itself will be the biggest problem, given
that you already have a 68000 C compiler for the other platforms.
there is stuff like treating A5 in a special manner, but comparatively minor
when you consider your big problem:  LINKING.  If you want to use the
Mac libraries, you've got to come up with a working linker, able to
read MPW .o files or THINK C projects (and the latter isn't
documented).
-- 
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures.  Make them use force.
(not responsible for bodily harm resulting from following above advice)
From: cpky@vax5.cit.cornell.edu
Newsgroups: comp.sys.mac.programmer
Subject: (Q) The Slot Manager & Dual PDS Adapters
Date: 22 Dec 92 02:22:04 GMT
Distribution: comp
Organization: Cornell University


     I have a question about dual 030 PDS addapters for the Macintosh IIsi.
According to Designing Cards and Drivers for the Macintosh (3rd Ed),
the IIsi can only map its PDS slot to NuBus Slot $9.  If this is so, how
does the Slot Manager determine that there are two cards connected to
one of these types of boards?

						Ashton
						
(e-mail) ashton@io.jpl.nasa.gov
Xref: sparky comp.sys.mac.programmer:20222 comp.sys.mac.apps:18927
From: los@coos.dartmouth.edu (Charles Dubuque)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.apps
Subject: Framemaker 3.0 help! I killed it!
Date: 23 Dec 92 01:20:02 GMT
Organization: Dartmouth College, Hanover, NH

While hacking my only copy of Framemaker, I accidentally chopped something
in one of its code resources, and now it bombs all the time. I just tried
to restore from my disks, but they no longer work! I am suffering from a
move: when my parents moved in the summer, I lost most of my computer
archival stuff, including registration forms that I hadn't sent in yet, etc.
 
Anyway, I used Macsbug to trace the error, and it seems that my copy bombs
somewhere in CODE 1, which makes sense since that is where I was trying to
make my modifications.
 
Anyway, would someone out there who has ResEdit handy be able to send me a
copy of CODE 1 as a ResEdit resource? It's about 32K long, so it should be
manageable to BinHex and mail. This is version 3.0, by the way.
 
I know I am asking a lot here, somebody with a copy of Framemaker 3.0 and
ResEdit who knows how to make a resource clip, but I am desparate. The
company won't talk to me since all I have are copies of my master disks and
a transfer of ownership from someone who never registered his copy.
 
Even if you only have Framemaker 3.0 and ResEdit, or even just FM 3.0, and
want to be a good samaritan for someone who is getting his comeuppance for
not backing up files and buying software from irreputable 3rd parties, please
E-mail me. I am trying to use FM for my thesis this year and would hate to
revert to Word.
 
Thanks
Chuck
los@coos.dartmouth.edu
ced@dartmouth.edu
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: David_B._Lamkins@fourd.com
Organization: 4th Dimension BBS
Date: Thu, 24 Dec 1992 15:29:38 EST
Subject: Re: TCL, Another Question...

> Slowly but surely I'm getting the hang of this TCL wizardry :-)
> 
> However, I would like to display a "startup" window while the application
> loads, and preps. My question is: where is the best place to implement this
> behavior?
> 
> [...]
>
> I suspect I will have to put my startup-window in a global variable, show
> the window during IMyApp(), and then Close() the window in the last method
> which is executed before event looping occurs.

That's what I do. Also, I capture the tick count when I put up the window, and
when I go back to close the window, I loop looking for a mouse or key event
if the window hasn't been visible for some minimum time. The only other
thing you may want to look out for is heap fragmentation - allocate the
splash screen window record as a handle, move it high, lock it, deref it, and
finally pass it to the new window (or dialog) routine. This way, when the
window gets disposed, you won't leave a hole low in the heap.

Dave
********************************************************************
System: fourd.com                                Phone: 617-494-0565
Cute quote:  Being a computer means never having to say you're sorry
********************************************************************
From: soetji+@G.GP.CS.CMU.EDU (Soetjianto)
Newsgroups: comp.sys.mac.programmer
Subject: Different fonts for different EditTexts in a dialog?
Date: 28 Dec 92 17:01:00 GMT
Article-I.D.: cs.BzzB9o.6yp.2
Organization: School of Computer Science, Carnegie Mellon
Originator: soetji@G.GP.CS.CMU.EDU

Is it possible to have different fonts in different EditTexts in
   a dialog window which is designed in ResEdit.
I have tried TESetStyle(), but it doesn't work. 
I guess the EditText specified by ResEdit is not 
   style-aware.  Is this correct?
Please help.  Any pointer to sample code of using TextEdit manager
   will be appreciated.

Thanks.  Happy New Year.
Soetji
Newsgroups: comp.sys.mac.programmer
From: Anders Wallgren <anders@verity.com>
Subject: Re: ETO#9 MacApp won't build - C - Fatal Error : 407
Organization: Verity, Mountain View, CA, USA
Date: Tue, 29 Dec 92 22:55:10 GMT
X-Xxmessage-Id: <A766183F3101C897@pokey.verity.com>
X-Useragent: Nuntius v1.1.1d16
X-Xxdate: Tue, 29 Dec 92 22:59:11 GMT

In article <1992Dec29.211429.28535@cs.tulane.edu> Jeff E Mandel,
mandel@tmc.tulane.edu writes:
># C - Fatal Error : 407
># could not proceed, BAD VERSION NUMBER in Dump file
># No error (OS error 0)
>#---------------------------------------------------------------
------
>---------------------------------------------------------

You should delete all dump files created by previous versions of
the compiler and let the new compiler regenerate them.

anders
Newsgroups: comp.sys.mac.programmer
From: us277614@mmm.serc.3m.com (Dave T. Berquist)
Subject: Re: What am I doin wrong?
Organization: 3M Company
Date: Mon, 28 Dec 92 15:19:11 GMT

In article <1992Dec27.133008.1@vax1.mankato.msus.edu> t303grey@vax1.mankato.msus.edu writes:
>
>*** problem 1: (Error checking code are deleted, assume best case)
>

>    pixBase = GetGWorldPixMap( offWorld );
>

>    CopyBits (pixBase, ........
>
>  Strange thing about this code is if I substitute the 1st argument of CopyBits
>call to &(*(GrafPtr) offWorld).portBits it works fine. But according to IM7 we
>should never dereference GWorld (p21-5 paragraph 3) to get to pixMap. Right?
>

Under system 7 you should use the GetGWorldPixMap call.  Under system 6,
however, you must dereference the the GWorld because GetGWorldPixMap
does not work correctly.

Hope this helps.  ( I'm not sure about your palette problem ).
-- 


--------------------------------------------------------------------
Dave Berquist      Software Engr, 3M Company      dtberquist@mmm.com
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Looking at a bit in a bitmap truly bytes. Help!
Date: 22 Dec 92 23:06:00 GMT
Organization: Kalamazoo College

d88-jwa@hemul.nada.kth.se (Jon Wtte) writes:
>
> [ re getting an icon's mask ]
>
>What I would do is open a new port, SetPortBits to
>a known scratch space one longword long, and move
>the origin and clip so that you know what's going on,
>and draw the icon MASK into that port, then DisposePort
>the port.

To get an _icon_'s mask?  We're talking icons here, right?  The format's
well-documented, and it's never gonna change.  Why not just sneak a peek
into the thing?  Avoid the overhead of, what, at least seven toolbox
calls, at least two of which are (relatively) very slow.

Or am I missing something?  Are ICN#'s and icl8's suddenly going to have
a completely different data format in System 12?
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "This sounds like a semantico-psychological backwardization of the
  real world image."   - Dave Bloom (bloomda@ctrvax.vanderbilt.edu)
From: ScottPetrack@HAIFASC3.VNET.IBM.COM
Newsgroups: comp.sys.mac.programmer
Subject: AIFF-C - need some docs and some info please
Date: 26 Dec 92 00:34:39 GMT
Reply-To: PETRACK@HAIFASC3.VNET.IBM.COM
Disclaimer: This posting may contain no views at all
News-Software: Usenet 3.0

I would like to get a copy of all documentation pertaining to AIFF-C,
the "audio interchange file format with compression."  APDA to here
is *extremely* slow, so if someone could actually send me directly the
files I would be incredibly grateful.

With or without the files, I hope that you (yes you) can help me with the
following information:

  1. Do the APDA documents provide information about the actual compression
algorithms used, or are do they give information only about file formats?

  2. Is some single algorithm or set of algorithms part of the AIFF-C standard,
or is AIFF-C only a way for compatible compressors and decompressor to
exchange files? Presumably in the second  case, there is a tag in the header
which identifies uniquely the algorithm. Is a developer meant to
"register" his tag with APPLE? Can I get a list of available algorithms
that are used with AIFF-C?

  3. If the actual compression is part of the standard, or if Apple uses
  some well defined set of algorithms, are these algorithms described
in the APDA documents? Are they described anywhere else? Are they,
in fact, open standards or are they some secret proprietary algorithms?

I am anxious to understand whether AIFF-C represents a particular
compression technology, or only a file transfer format. If you can help me,
I really appreciate it.

If there is a better place to send this note, *please* let me know about it.

Replies to me or to this forum please.
Thanks very much,
Scott Petrack (PETRACK@haifasc3.vnet.ibm.com)
From: davecole@cie.uoregon.edu (Dave Cole)
Newsgroups: comp.sys.mac.programmer
Subject: Think P and Menu
Date: 25 Dec 92 17:31:45 GMT
Article-I.D.: pith.1hfgi1INNmu3
Organization: University of Oregon Network Services
NNTP-Posting-Host: cie.uoregon.edu
X-Newsreader: Tin 1.1 PL5


  Speaking of Think P and stuff...  I am just starting to learn both PASCAL
and the Mac.  Pascal is not a problem, however the general overview of how
a Mac multi-tasking application is.  I have come from an enviroment of Z-80's
and basic.  I like Pascal, but the combination of both is slowing my learning.
Is there a SMALL Pascal application that runs under full multitasking, with
menus, etc. somewhere around internet?  I would like to get it and look it
over.
 
Thanks,


--
Name:     David C. Cole
E-MAIL:   Internet: davecole@cie.uoregon.edu
          GEnie:    ASTRONOMY

==Astrophotography Forever==