HDTenEightyP/NetNews huggingface dataset:
From: wombat@claris.com (Scott Lindsey)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How do I do a nice "fade-to-black"?
Date: 9 Oct 92 01:33:06 GMT
Organization: Claris Corporation, Vancouver WA
Wombat: yes
Number: 30021

In article <1992Oct8.175328.27862@gallant.apple.com>, gonzo@ntb.apple.com (Ed Rotberg) writes:
> 
> How do I do a nice "fade-to-black"?
> 
[...]
> want the ultimate is smooth fades, and you want to fade the "entire
> scree" and not just a window, then doing a gamma fade is definitley the
> way to go.  This gets into the SCSI manager routines, however, and is not
> for the faint of hearts.

SCSI manager!?!?

How about "Device manager"?

Anyway, once you find out the correct control and status codes from the
"Designing Cards and Drivers" book, it's not really very hard.  Unfortunately,
it's not guaranteed to work with all monitors.  Some third party drivers don't
support gamma tables (esp. when in direct (> 8 bits) mode).


--
Scott Lindsey <wombat@claris.com>
From: scott@mcl.ucsb.edu (Scott Bronson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Event Manager Too Slow or izzit just me?
Date: 13 Oct 92 18:11:39 GMT

In <D88-JWA.92Oct13105012@byse.nada.kth.se> d88-jwa@byse.nada.kth.se (Jon Wtte) writes:

>> wwg2101@venus.tamu.edu (GILPIN, W.W.) writes:

>Okay, why are you checking for WaitNextEvent? Want to run
>under system 4.2 without MultiFinder? WaitNextEvent is ALWAYS
>implemented if
>1) you run system 6.0 or higher
>or
>2) you run MultiFInder

Hey, I still check simply because it takes no time, is not hard at
all, and I don't really like leaping off unimplemented traps if the
user is running under an insufficient system.  But, that's not the
purpose of this followup.


>1) System 6 way: GetOSEvent.
>2) System 7 way: Kill all apps but me.

Or, finally, a technique that works under all systems that I know
of: don't use an event loop.  Simply use GetKeys and Button to
figure out what you want to do.  This gives absolutely no time
to anyone else, so you'll cause modem programs to overflow buffers
and wreak all kinds of havoc, but your game will be as smooth as
silk.  I may catch flak for this for some reason, but it has worked
for me.

	- Scott
Newsgroups: comp.sys.mac.programmer
From: Quinn <quinn@cs.uwa.edu.au>
Subject: 'lpch' in System File: What? Why? Whither?
X-Xxdate: Fri, 9 Oct 92 06: 13:43 GMT
Organization: The University of Western Australia
X-Useragent: Nuntius v1.1.1d11
Date: Fri, 9 Oct 1992 06:19:00 GMT

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!!!
Newsgroups: comp.sys.mac.programmer
From: wwg2101@venus.tamu.edu (GILPIN, W.W.)
Subject: Re: Event Manager Too Slow or izzit just me?
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Tue, 13 Oct 1992 13:17:00 GMT

>Okay, why are you checking for WaitNextEvent? Want to run
>under system 4.2 without MultiFinder? WaitNextEvent is ALWAYS

Never underestimate a business major!  :) :) That's not where the slow down is
anyway. I tried it without checking and just using WNE too.

>		   if (gTheEvent.what == keyDown)
>			   gameDone = HandleGameKey(&newDirection);
> 
>You inline the event handling dispatching. That's bad style,
>because if you call WaitNextEvent some other place, or get an
>update event within a filterProc, you want to handle that event
>using your normal event handling functions.

>Separate out the dispatching (and use a switch for chrissake :-)
>into a HandleEvent ( EventRecord * event ) function instead.

Okay, I feel the need to defend myself here cause I'm not always this sloppy.
I wrote this code quick and dirty and since right now the only thing I'm 
interested in is the 4 keydowns for the direction of the player and the 1 
other keydown for stopping the game. I just wanted to see if I could get the
bugger to move around on the screen, dontchaknow? :)  My other event loop
for when the game ain't runnin' has a nice big switch right where it 
should be.

>Now, about your jerkyness problem; you'll lose background tasking
>one way or the other:

Not a problem.

>1) System 6 way:
.
.
>2) System 7 way:
.
.
>Hope this helps,

Most definately! Thanks!

-------------------------------------------------------------------------------
| Wes Gilpin              | I'd kill myself for you...I'd kill you for myself |
| WWG2101@TAMZEUS(BITNet) |------------------------------------------         |
| WWG2101@ZEUS.TAMU.EDU   | Southwest Knights of Nee Paintball Team | PANTERA |
-------------------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.comm
From: aep@world.std.com (Andrew E Page)
Subject: LC ENET Driver Problem
Organization: The World Public Access UNIX, Brookline, MA
Date: Fri, 9 Oct 1992 14:17:59 GMT


	I've been working on correcting a problem that some people 
have been having with their LC Ethernet cards.  There was an 
incompatibility in the card that would not allow it to see the ROM 
that contained the ethernet address when the card is in use with an 
LC II.  I've essentially modified the existing Apple driver for the LC 
that comes with "Network Installer v1.2.1".  
	Before the modification there was a portion of the code that 
attempted to retrieve the ethernet address from the system file 
from the resource 'eadr'=14.  I replaced that section of the code with 
NOPs and the overwrote some of them with code that fetches the 
ethernet address from a new declaration ROM that I built that 
contains the ethernet address in the functional sResource.  
	This seems to correct the problem, but there is an 
intermittent failure of the EtherTalk connection at startup that 
forces the network to reselect built-in LocalTalk.  This can be 
corrected readily enough by just selecting the network control panel 
and switching back to EtherTalk.  I'm just wondering if there isn't 
some step that I'm missing to complete the opening of the ENET 
driver so that it is set to EtherTalk.  
-- 
Andrew E. Page   (Warrior Poet) |   Decision and Effort The Archer and Arrow
Mac Consultant                  |     The difference between what we are
Macintosh and DSP Technology    |           and what we want to be.
From: David.T.Greenfield@dartmouth.edu (David T. Greenfield)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Option key madness
Date: 13 Oct 92 13:47:18 GMT
 <1992Oct12.161745.8323@netcom.com>
Organization: Dartmouth College, Hanover, NH
X-Posted-From: InterNews1.0a6@newshost.dartmouth.edu

In article <1992Oct12.161745.8323@netcom.com>
leonardr@netcom.com (Leonard Rosenthol) writes:

> 	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.

In System 7, KCHRs can be dragged in and out of the system file in the
same manner as fonts, sounds, etc.

David
david.t.greenfield@dartmouth.edu
Xref: sparky comp.sys.mac.programmer:16634 comp.sys.mac.misc:17537 comp.sys.mac.hypercard:3722
From: niel@cars.com (Niel Bornstein)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc,comp.sys.mac.hypercard
Subject: Corporate developer's association?
Date: Wed, 7 Oct 92 11:40:52 EDT
Organization: Heavy Objects R Us
Reply-To: niel@chinchilla.cars.com
X-Mailer: uAccess - Macintosh Release: 1.6v1

Does anyone know of any kind of organization or conference for in-house
developers?  I know there are users' groups for users, and there is MacIS
for managers, and there are conferences for low-level bits-and-bytes
programmers, but what about us guys who put together databases and
HyperCard stacks and other 4GL type stuff for in-house use?  

I'm dying to talk to some other folks who do waht I do, but there doesn't
seem to be any forum for it...

Niel

|--------------------------------------------------------------------------------
| Niel M. Bornstein                                    niel@chinchilla.cars.com |
| 1352 North Morningside Drive                     ...csn!sable!chinchilla!niel |
| Atlanta, Georgia  30306                       (404) 872-6883   (404) 551-8075 |
--------------------------------------------------------------------------------|
| Opinions? I don't need no stinkin' opinions!                                  |
|--------------------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: dac@sacpms.uucp (David A. Carlton)
Newsgroups: comp.sys.mac.programmer,comp.sources.wanted,comp.periphs.printers
Subject: Deskwriter Programming
Summary: Looking for Deskwriter source
Keywords: Deskwriter, Unix
Date: 16 Oct 92 20:14:29 GMT
Organization: Poly Micro Systems
X-Newsreader: Tin 1.1 PL4

How does one go about obtaining the necessary information to control a
Deskwriter? Is there an address or archive somewhere?

I have an old Deskwriter I would like to hook up to my Unix box as a
printer. I want to be able to print from both Unix and the Mac's
networked to the Unix. 

So it seems to me the first step is getting the Unix box to talk to the
Deskwriter. I have poked around some of the archives and can't find
anything specific thus the reason for the posting here. 

Has anyone ever gotten a Deskwriter to work from a Unix box?

All information gladly accepted.
-- 
Dave Carlton
sacpms!dac@sactoh0.sac.ca.us
Newsgroups: comp.sys.mac.programmer
From: magnus@athena.mit.edu (Daniel R Risacher)
Subject: Think C Debuger bug?
Summary: system crashes when I run with debugger
Organization: Massachusetts Institute of Technology
Date: Thu, 8 Oct 1992 17:59:23 GMT

Hi.  I recently installed Think C 4.0 from floppies on a Mac SE
running 7.0* and when I was tring to run all the test programs, I
consitently crashed the mac whenever I tried to run with the debugger.

Before hanging up, the debug window says: Odd address error.
I also tried without extensions, but it did not help.

Anyone else have this problem?  Is there a fix?


Respond to magnus@athena.mit.edu, please.

--
                                    Until Elsewhen,
                                    D. R. Risacher

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Newsgroups: comp.sys.mac.programmer
From: gurgle@netcom.com (Pete Gontier)
Subject: porting to MPW C, part 1
Keywords: port MPW C THINK string constant CR LF \r \n
Organization: cellular
Date: Fri, 9 Oct 1992 13:46:18 GMT

Folx:

Yesterday I decided to run some of my THINK C applications through
MPW to see what warnings would turn up. (I, like everybody else
here I'm sure, wish THINK C did warnings.) While I was at it, I
decided to make my programs actually run when compiled under MPW C.
I ran into two problems. Here is the first:

It appears that rather than doing newline conversion ('\n' to '\r')
in the standard libraries (like any sane compiler would), MPW C
does the conversion in the source code (!) so that when I use a
string constant like "\pFoo!\r", the character codes I get in the
string are 5, 70, 111, 111, 33, 10. The 10 is the important code;
it corresponds to *line feed*, not carriage return, as my "\r"
specified. I can't find this nasty behavior documented anywhere.

I tried to fix things with macros like this:

#if defined(applec)
#	define CR '\n'
#	define LF '\r'
#	define CRstr "\n"
#	define LFstr "\r"
#elif defined(THINK_C)
#	define CR '\r'
#	define LF '\n'
#	define CRstr "\r"
#	define LFstr "\n"
#endif

But when I tried to use string concatenation to put strings
together using the macro constants, MPW C gave a compiler error.
(Is concatenation supposed to be done by the pre-processor?)

Please respond via email and I will summarize later.
-- 
 Pete Gontier // EC Technology // gurgle@netcom.com
From: rhorn@csws2.ic.sunysb.edu (Robert Horn)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ZREF errors - Think C 5.0.3
Date: 12 Oct 92 17:39:53 GMT
Distribution: comp
Organization: State University of New York at Stony Brook

In article <BRIANJ.92Oct12010757@bedrock.cs.umd.edu> brianj@bedrock.cs.umd.edu (Brian Johnson) writes:
>I keep getting "ZREF Error - Remove Objects" messages.  I have a IIcx,
>5mb ram, Think C 5.0.3, various inits (I'm trying to run bare bones
>for awhile:-(
>
>Does anyone else have this problem?  
>
>It's so bad that it even trashes the source code with spurious
>characters when it crashes (not every ZREF eror is a crash).  Trashed
>characters show up near where I last edited the file, and are usually
>not "normal" characters (e.g. A with a little o over it).
>

I had the same problem with Think C 5.0.2, and I think it was the result 
of my hard drive beginning to go bad, rather than Think C. I only noticed
it with Think C, because at the time that harddrive only had my Think C
project on it. Of course, since my mac is out of warranty and I have a 
perfectly good external hard drive with space left on it, I haven't 
bothered to go get it checked, but it looks like a bad harddrive 
(reformatting it generally results in HD Set Up saying that initialization
failed, as does ETC tools and Alliance Power Tools.) (NOTE: I AM NOT
SUGGESTING THAT THINK C SOMEHOW DAMAGED MY HARD DRIVE.)

You may have just corrupted your project file. Have you tried 
rebuilding the project from scratch?
-- 
rhorn@ic.sunysb.edu           Never choose a college because it has a duckpond.
Would you like to touch my wombat?		  Send me hate mail, I love it.
Organization: University of Illinois at Chicago
Date: Friday, 16 Oct 1992 08:54:25 CDT
From: Gary Seibold <U49852@uicvm.uic.edu>
Newsgroups: comp.sys.mac.programmer
Subject: Textedit fields
Distribution: comp.sys.mac.programmer


I would like to fill a Textedit fields before my window is created so I
use a very small rect when I define the textEdit handle.  After my window
is created I want to change the fields in the TextEdit record so it will
display in the right place with the right font ect.  Does any one know which
fields I need to change and what command I need to use to get this to display
with my window or know of a better way to do this?  Thanks.

Newsgroups: comp.sys.mac.programmer,comp.sys.mac.apps,comp.sys.mac.wanted
From: Ray Zimmerman <Ray-Zimmerman@cornell.edu>
Subject: Re: MPW C / MPW C Bundle
X-Xxmessage-Id: <A6FB0C4F9801E0B5@ziklag.ee.cornell.edu>
X-Xxdate: Fri, 9 Oct 92 15: 15:43 GMT
Nntp-Posting-User: rz10@cornell.edu
Organization: Electrical Engineering, Cornell University
X-Useragent: Nuntius v1.1.1d12
Date: Fri, 9 Oct 1992 14:10:07 GMT

In article <1992Oct8.162103.22107@verity.com> Anders Wallgren,
anders@verity.com writes:
>In article <92282.135612SPIT@EVALUN11.BITNET> Werenfried Spit,
>SPIT@EVALUN11.BITNET writes:
>>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?
>
>The bundle includes the MPW Shell, the other package only includes
>the C stuff.  You need the shell.

But I thought you could ftp the shell from ftp.apple.com ... if so,
why the $300 difference in price!?

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 Ray Zimmerman            \ 397 Theory Center, Electrical Engineering
                           \ Cornell University, Ithaca NY  14853
 Ray-Zimmerman@cornell.edu  \ Phone: 607-254-8819  Fax: 607-255-9072
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
From: breger@santafe.sitka.sun.com (Ron Breger)
Newsgroups: comp.sys.mac.programmer
Subject: ADSP Max Packet Size?
Date: 16 Oct 1992 22:12:52 GMT
Organization: Sun Microsystems, Inc.
Distribution: world
Reply-To: breger@santafe.sitka.sun.com
NNTP-Posting-Host: santafe.sitka.sun.com
Keywords: ADSP AppleTalk Network

Can someone tell me what is the max ADSP read/write packet size.  Inside Mac VI 32-74 calls the variable reqCount (word) but doesn't give the max size.  I've seen header files defining it as an unsigned short as well as a signed short.  The max size I have been able to use is 16K.  

I've gotten different answers from serveral people (64K, 32K and 16K).  What is really the max size?

Thanks

-Ron Breger-
From: frederia@isy.liu.se (Frederic Aron)
Newsgroups: comp.sys.mac.programmer
Subject: QuickDraw modes and Macapp mystery
Date: 16 Oct 92 12:04:21 GMT
Organization: Dept of EE, University of Linkoping

hi there,

I would like to ask two questions.

1: I want to draw different types of objects in different colors, and the intersection of the objects should be seen with the natural color obtained when mixing the various colors of the intersecting objects. 
I tried the different drawing modes of quickdraw, but nnone of them was really satisfactory. Any suggestion?

2. I work with a program in OOP, with Macapp.
 I have defined in my program an object
TNameListView = Object(TTextListView)
When I compile the program in non-debug version, trying to create a dialog window using this object will result in an alert window saying "Object TNameListView missing, please contact the developper".
Since I haven't set any debug compiling option specific to this object, I just wonder what is happening...

Thanks for any help.
Please E-mail directly your answers.
frederia@isy.liu.se
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: PowerBook Traps?
Date: 13 Oct 92 02:14:10 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <1992Oct12.222542.9236@gallant.apple.com>, Steve Christensen
<stevec@apple.com> wrote:
> 
> No, there are no programming interfaces for dealing with the Power Manager
> other than those documented in IM VI.  Part of the reason for this is that
> mucking around with the power management system if you don't know how
> everything works can cause stuff to break.  The folks who are providing
> some of these features (Connectix' CPU comes to mind) do so by playing in
> the Power Manager.  This is potentially "dangerous" because we're not
> obligated to keep the Power Manager's internals the same from PowerBook
> to PowerBook.  Evolution and improvements to the model force things to
> change...

Heck, we don't even keep the published ones the same!  How's about that
Wakeup function?  ;)

Jon
Newsgroups: comp.sys.mac.programmer
From: a-giles@uchicago.edu (Aaron Giles)
Subject: Re: THINK C bug AGAIN
Reply-To: a-giles@uchicago.edu
Organization: University of Chicago High Energy Physics
	<Bw4DGs.Gyz@news.cso.uiuc.edu>
Date: Thu, 15 Oct 1992 10:36:08 GMT

In article <Bw4DGs.Gyz@news.cso.uiuc.edu> swofford@uxh.cso.uiuc.edu (David Swofford ) writes:

>gb2a+@andrew.cmu.edu (George J. Baxter) writes:

>>I have found another piece of code that fell apart due to the Think
>>5.0.3 upgrade:

>>	while (*index != CR && i < 9)
>>		posString[i++] = *index++;
>>	posString[i]=0;

>>basically, a similiar piece of code, and the exact same problem,
>>confirmed in the assembly with MacsBug.  See previous post.

>This is scary.  I switched to 5.0.3 primarily because of the Debugger
>fixes.  Now I'm wondering if I too should go back.  The problem is that
>in a very large application, bugs like this go easily go unnoticed for
>a long time.

I would beware if your program uses the code optimization features of
5.0.3.  I experienced a number of semi-serious problems when I
upgraded my 5.0.2 to 5.0.3 and recompiled my project (about 25000
lines).  Turning off all optimizations seemed to make things stable
again, but I switched back to 5.0.2 anyway, just to be safe.  Once I'm
finished I may go back and track down the source of the problems, but
for now I'm sticking with the old version.

> Does THINK know about this?  Will there be a 3.0.4 soon?

Let's hope so!  I can't imagine that such problems could go unnoticed
for too long.

Aaron Giles
a-giles@uchicago.edu
From: ag3j+@andrew.cmu.edu (Adam C. Gross)
Newsgroups: comp.sys.mac.programmer
Subject: New QuickTime (v1.5)
Date: 12 Oct 92 09:22:15 GMT
Organization: Junior, Student Defined Major, Carnegie Mellon, Pittsburgh, PA

I remember hearing something a while ago about a new verison of
QuickTime being scheduled for introduction this time of year...  anyone
in the developer loop know anything about it, or seen anything
interesting?

Thanks...
acg
From: perm@csd.uu.se (Per Mildner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: searching the digests?
Date: 16 Oct 92 18:36:04
Organization: Computing Science Dept.,Uppsala University, Sweden
Distribution: world
NNTP-Posting-Host: groucho.csd.uu.se
In-reply-to: tbl@rock.concert.net's message of 15 Oct 92 22:11:39 GMT

1. look for digest announcements in this newsgroup, they look like:
   C.S.M.P. Digest V1 #185 Available
   Read there how you can get them all with ftp.
2. Get BBEdit by anonymous ftp to sumex-aim.stanford.edu, use it to
search the digests that you by now have transfered to your hard disk.
For ftp from your mac I recommend XferIt also at sumex-aim (assuming
you have MacTCP)
3. To read news on your mac (assuming you have MacTCP) you can use one
of several packages, I use Nuntius see newsgroup comp.sys.mac.comm for
other readers.
4. ftp to rtfm.mit.edu and read the Frequently Asked Questions for
the newsgroups that seem relevant to you.
Consider using WAIS too.
Hope this helps,

--
Per Mildner			perm@CSD.UU.SE
Computing Science Dept.		tel: +46 18181049
Uppsala University, Sweden	fax: +46 18521270
From: Andrew Gilmartin <Andrew_Gilmartin@Brown.Edu>
Newsgroups: comp.sys.mac.programmer
Subject: srcBic problems on Plus and PB 100
Date: 7 Oct 1992 14:25:40 GMT
Organization: Brown University
Distribution: world
NNTP-Posting-Host: cis_staff-kntx6.cis.brown.edu
X-UserAgent: Nuntius v1.1.1d7
X-XXMessage-ID: <A6F86CB1FA01B05C@cis_staff-kntx6.cis.brown.edu>
X-XXDate: Wed, 7 Oct 92 15:30:09 GMT

I hope this is not too stupid a question, but why does the
following code work fine on II's (with and without color graf
port) and fail on a Plus and PowerBook 100?

     /* Draw text in gray */

          /* Draw the text */

     DrawString( "\pWell let us see if this works...." );
		 
          /* Overlay with a gray mat */

     PenMode( srcBic );
     PenPat( gray );
     PaintRect( &where );

Any help is most appreciated.

--
Andrew Gilmartin
Computing & Information Services
Brown University

Andrew_Gilmartin@Brown.Edu
(401) 863-7305
Newsgroups: comp.sys.mac.programmer
From: hui@rainbow.uchicago.edu (Hui Dong)
Subject: A new game SpaceWar! 1.0 using "draw to screen" technique
Organization: University of Chicago
Date: Wed, 7 Oct 1992 03:55:16 GMT

I just upload a new game I wrote called SpaceWar! 1.0 to sumex.stanford.edu
archive. Using direct-draw-to-screen technique, it achieves 30 fps smooth 
animation. A deatailed description is posted to comp.sys.mac.games. Try it
and have fun.