HDTenEightyP/NetNews huggingface dataset:
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: Sound Manager Phooey!
Organization: Kalamazoo College
Date: Tue, 6 Oct 1992 10:32:39 GMT

ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
>(Jamie R. McCarthy) writes:
>>
>> Well, I don't know about the LC in particular, but [the 6.0.6&7 SMs]
>> in general are a _lot_ more trustworthy than in previous versions.
>
>I know of one major snag with the 6.0.7 Sound Manager. ...  I had a brief
>chance to check it myself, and discovered that it was dying in the resume loop.
>
>Idea: perhaps it has something to do with spurious invocation of my callback
>routine. I recall Jim Reekes mentioning that this was possible, though I
>don't recall what the precise conditions were.

Someone else mentioned once that your callback can get called
inappropriately under 6.0.4 (or was it .5?), so I always check in my
routines.  (My technique, for what it's worth, is to put an identifying
constant in param1 and my app's A5 in param2.)

If you can get that 4-voice-harmony XCMD to work under 6.0.7, Lawrence,
a lot of people in the music-education biz would be very grateful.  :-)
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 Memo to myself:
 Do The Dumb Things I Gotta Do.
 Touch The Puppet Head.
From: u2005681@ucsvc.ucs.unimelb.edu.au
Newsgroups: comp.sys.mac.programmer
Subject: Parsing text files
Date: 30 Sep 92 04:03:35 GMT
Organization: The University of Melbourne

Hi folks,

I wonder if any of you people out there can give me some advice?
I've been programming for quite a while but I havn't had much to do
with the Mac file system and related toolbox calls.

As part of a new application, I am trying to read a text file of numbers
and strings into a series of variables. The idea is to use the numbers as
co-efficients for a simulation and the strings as labels for various graphs.

As I understand it, the Mac OS deals with text files as UNIX-C does with
binary files ie you specify how many bytes to read and what buffer to read
them into. But in the absence of a standard library, how is it possible to 
read numbers and strings of differing lengths?

An explanation (or even some source code in C) would be most excellent.

I appreciate your time and effort.
C.Hofflin
----------------------------------------------
"Insert your own clever, deep and meaningful quote here"
Newsgroups: comp.sys.mac.programmer
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Subject: Re: popup menus in non-system font
Organization: University of Illinois at Urbana
Date: Sat, 26 Sep 1992 23:58:45 GMT

In this discussion, people mentioned that if you do reset the Window
Manager's port so that the text size is 0, you should return it to the
(wrong) value that it was before, as evidently System 7.1 does. Can
anyone out there think of reasons that this would be necessary? I
would like to do this, but the code I am writing makes it pretty
impossible to reset the port before each and every call to
PopUpMenuSelect. What would I screw up by permanently changing it to
0?

Thanks,

pr
-- 
Pete Resnick             (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet: resnick@cogsci.uiuc.edu
Newsgroups: comp.sys.mac.programmer
From: greeny@top.cis.syr.edu (J. S. Greenfield)
Subject: Re: Q: How to tell the depth of screen?
Organization: Syracuse University, CIS Dept.
Date: Thu, 1 Oct 92 10:38:53 EDT

In article <1992Sep30.185610.3998@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:
>
>>Also, what is the screen size of the 12" bw and color monitors like the 
>>LC use?
>
>Both mono and color 12" are 512x384.

The color is 512x384 (about 55 dpi, I think), but the mono is 640x480 (72 dpi).


-- 
J. S. Greenfield                                         greeny@top.cis.syr.edu
(I like to put 'greeny' here, 
but my d*mn system wants a 
*real* name!)                        "What's the difference between an orange?"
Newsgroups: comp.sys.mac.programmer
From: rjc@monet.ccs.itd.umich.edu (Robert John Churchill)
Subject: Re: Using ReadXPRam and WriteXPRam traps
Followup-To: comp.sys.mac.programmer
Organization: University of Michigan
Date: Thu, 1 Oct 1992 00:17:22 GMT

In article <BvDvIr.A5J@dcs.ed.ac.uk>, jst@dcs.ed.ac.uk (Julian Turnbull)
wrote:
> 
> I'm trying to find some documentation for the _ReadXPRam and _WriteXPRam
> traps, which read and write the extended PRAM found in later Macs.
> Specifically, I want to be able to get at the latitude, longitude, and
> timezone information set by the Map cdev.
> 
> "Inside Mac" is remarkably coy about these calls - I got to Volume VI before
> I even found an admission that they exist.  However, some people manage to
> use them, so the information must exist _somewhere_.  Can anyone enlighten
> me?

Use ReadLocation and WriteLocation instead of messing with PRAM.  See
Inside Mac volume 6 Chapter 14..
From: ingles2135@iscsvax.uni.edu
Newsgroups: comp.sys.mac.programmer
Subject: Help w/Retrace and Animation - LSP
Date: 5 Oct 92 23:43:06 -0500
Organization: University of Northern Iowa

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.

Can anyone out there help?

Thanks in advance,
Juan Ingles.
Newsgroups: comp.sys.mac.programmer
From: mspace@netcom.com (Brian Hall)
Subject: Re: CTB Questions and Answers
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Mon, 5 Oct 1992 06:48:46 GMT

In article <yjc-041092235931@b61539.student.cwru.edu> yjc@po.cwru.edu (Jerome Chan) writes:
>2) Can anyone explain what a MyClickLoop is supposed to do?
>   Someone replied that all it did was to return true if the click was in
>the cached region. If I'm not implementing a cache reqion, I can put a 0L
>for the myClickProc parameter in TMNew? I don't have to worry about
>highlighting and such?

That is partially true.  The clickloop returns a boolean, which should
be TRUE if the click was in the terminal region.  If you are not going to
do a cache region, you don't even need to do a ClickProc - the idea of
the proc is for you to handle auto-scroll, hilighting, selection, and
all that fun stuff in the cache region.


-- 

 \ | /   | Brian Hall                 mspace@netcom.com
 - : -   | Mark/Space Softworks       Applelink: markspace
  /|\    |                            America Online: MarkSpace
 |-+-|   |
/-\|/-\  | The tornado ate my powerbook.
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Palette restoration
Organization: Kalamazoo College
Date: Tue, 29 Sep 1992 23:35:43 GMT

OK, maybe I remember wrong.  Help me out here.

I could swear I've read things from people asking "how do I give the
Finder back its colors after I close my last window?"  Well, my app in
its present state grabs a few pmAnimated+pmExplicit colors out of the
middle of the palette.  When its last window closes, all I have to do is
click on the Finder (or any other app) and the system palette returns in
all of its glory.

Am I doing something right, or something wrong?

This may be related:  I have two windows open, each of which has
asked for the same pmExplicit+pmAnimated entries in the palette, but
different colors in those entries.  I click on the inactive one.  Inside
Mac assures me that ActivatePalette() is called when a window is opened,
closed, moved, or activated--yet the palette remains that of the
initial, now inactive, window.  When I grab the new active window and
move it a few pixels, the palette updates properly.  It's not just that
I haven't updated the picture--the Monitors control panel shows that the
colors in the clut don't change.

Is this me?  Or is the Palette Manager failing to call ActivatePalette
when that window activates?

I'm using system 7.0.1, tuned.
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "To flame someone on an open forum is, to me, the height of insensitivity."
   - P.J. Plauger
Organization: Stanford Linear Accelerator Center
Date: Thursday, 1 Oct 1992 18:30:17 PST
From: Nobukazu Toge <TOGE@SLACVM.SLAC.STANFORD.EDU>
Newsgroups: comp.sys.mac.programmer
Subject: Re: Disassembly with source in MPW?

Sak Wathonasin (sw@network-analysis-ltd.co.uk) mentioned UltraSlimFast
and Manuel Veloso (veloso@husc9.harvard.edu) actually has posted the
file yesterday (today?).  I tried it just a moment ago. It certainly
works! (system 7.0.1 with MPW 3.3a14).  Thanks!

I think I've seen UltraSlimFast long time ago on one of those CDs, but
I never cared to figure out what it was :( :)

- Nobu Toge (ex-SLAC, now-KEK)

#include <StandardDisclaimers.h>
From: erh0362@tesla.njit.edu (Elliotte Rusty Harold)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Communication Toolbox
Date: 30 Sep 92 14:35:29 GMT
Organization: New Jersey Institute of Technology

>> I was just considering using the communication toolbox for a project,
>> but was wondering what part of the installed mac base do you exclude
>> by assuming the presence of CTB facilities.. all those before
>> system 6.05? 6.07? How many people are there still using systems that
>> don't support CTB? Enough to justify writing two sets of code?
>> Can you check at runtime if it is available? If so, how?
> 
> Well, start by looking for the Gestalt Manager. If it's not there, CTB 
> isn't, becuase CTB needs 6.0.5. Then use Gestalt to check for the CTB.
> 

	Actually the CTB only requires System 6.04.  I don't know
in which system gestalt made its first appearance.  I think it's not
unreasonable to require your users to have System 6.04 or later.
On the other hand, many System 6 users have never bothered to install
the CTB.  I just got around to it myself this week, and I'm only
using CTB 1.0 since that was what was conveniently available at ftp.apple.com.
Effectively to use the CTB you have to either require System 7 or
distribute it with your app with all the licensing hassles that
implies.

--Elliotte Harold
Newsgroups: comp.sys.mac.programmer
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Subject: Re: Think Pascal and ResEdit questions
Followup-To: comp.sys.mac.programmer
Organization: NCRPDA, Curtin University
Date: Tue, 29 Sep 1992 03:30:55 GMT

In article <lcee1bINNlej@utkcs2.cs.utk.edu>, eijkhout@cupid.cs.utk.edu
(Victor Eijkhout) wrote:

> 1/ using system 7 I would like to have both Pascal and ResEdit open, but
> if I'm editing the resource, Pascal has trouble finding elements (menubar
> for instance) in it. So I have to close the resource every time I want
> to test run the program. Is there an explanation / work-around for this?

No, there is no workaround, but once you've selected the resource file
once, ResEdit remembers where you looked, so reopening it is generally not
too difficult, and the suggestion of putting the resource file in the Open
Special menu in ResEdit was a good one (assuming you only have a few
projects at once :-)

> 2/ I have programmed mouse-and-menu programs before on the Atari ST, and
> the resource construction programs there gave you a possibility to
> give symbolic names to items in the resource, which you then used in your
> program. This way alterations in the resource do not necessitate alterations
> in the program. Is such a thing possible with ResEdit, combined with Think
> Pascal?

There is no app to do this to my knowledge.  What I did was implement
fmnu's ala Finder, which creates a mapping between an OSType (eg 'quit')
and menu's (eg thew 'Quit/Q' menu).  In my code I do things like:

SetFCommand('quit',@DoQuit)

And then when a menu is chosen, its OSType is found and the relevent
procedure is called.  It also associates an Enable procedure with each
menu, to grey/ungrey the menu as appropriate.

The code for this is in my Talk sources, which are available on
redback.cs.uwa.edu.au:/others/peterlewis (as well as on sumex and umich). 
Thanks to Quinn and UWA Comp Sci for providing this site.

HTH,
   Peter.

_______________________________________________________________________
Peter N Lewis, NCRPDA, Curtin University       peter@cujo.curtin.edu.au
GPO Box U1987, Perth WA 6001, AUSTRALIA             FAX: +61 9 367 8141
From: sears@netcom.com (Daniel Sears)
Newsgroups: comp.sys.mac.programmer
Subject: where is the AppleEvent Object Support Library Developer Note?
Date: 30 Sep 92 17:07:13 GMT
Article-I.D.: netcom.1992Sep30.170713.29765
Organization: Netcom - Online Communication Services  (408 241-9760 guest)
X-Newsreader: Tin 1.1 PL5

The subject line says it all.  I've looked everywhere.  On the developer CDs,
on ftp.apple.com.


Dan Sears
sears@netcom.com
-- 

E-mail:     sears@netcom.com
Phone:      415.695.0650
Address:    2440 16th Street #283
            San Francisco, CA 94103-4211
Newsgroups: comp.sys.mac.programmer
Subject: Re: Prefs file source code (C - long)
From: winer@husc8.harvard.edu (Adam Winer)
Date: 2 Oct 92 16:12:00 EDT
Organization: Harvard University Science Center

If I remember correctly, there is MPW (and hence THINK C) glue that, if
FindFolder is called in a system without it, will just return the location
of the System Folder.  Sounds pretty good to me, if it works.

Adam
-- 
Adam Winer		| The number you have reached is imaginary.
WINER@HARVARD.EDU	| Please rotate your phone 90 degrees and
                        | try again.
Newsgroups: comp.sys.mac.programmer
From: bwilliam@iat.holonet.net (Bill Williams)
Subject: Re: Drag icons OUTSIDE of Finder
Organization: HoloNet (BBS: 510-704-1058)
Date: Sat, 26 Sep 1992 11:36:15 GMT

>I'm trying to say that it would be really neat to be able to drag things
>into one of my windows. 

Get a NeXT computer and it does this routinely (dropping an EPS file into
a window of a drawing program and having the item ready to be positioned
in the drawing in progress,

It is neat, you are right. That is why it and hundreds of other neat
things are in the NeXT STEP operating system.

Bill Williams

Newsgroups: comp.sys.mac.programmer
From: mbendic@stingray.micro.umn.edu (Michael Bendickson)
Subject: Help!  Printing output from Turbo Pascal
Summary: How do you print output from Turbo Pascal?
Organization: University of Minnesota, Minneapolis: Under Grad Workstation Lab.
Date: Wed, 30 Sep 1992 21:17:34 GMT

PLEASE HELP!

I have a bunch of students trying to print their output from Turbo Pascal 1.1
on Macintosh II's with System 6.0.7.  Does anybody know how to do this?
The manual is no help whatsoever.  Also, command-shift-4 does not work
with our current setup.

Thanks,

--
===============================================================================
 Michael Bendickson	                               University of Minnesota
 E-Mail: mbendic@mermaid.micro.umn.edu		       Institute of Technology
===============================================================================
From: bordenet@cs.washington.edu (Matthew James Bordenet)
Newsgroups: comp.sys.mac.programmer
Subject: bitMap copying: MacPaint-like lasso
Date: 6 Oct 92 18:00:40 GMT
Article-I.D.: beaver.1992Oct6.180040.25286
Organization: Computer Science & Engineering, U. of Washington, Seattle

I am writing a video game that features offscreen drawing.  I have an
array of grafports that contain sprite frames.  Now, I need to calculate
masks for each of them before I stamp them onto a background (without
a white rectangle behind them).  Right now, I'm using CopyBits();

Toolbox functions that look particularly interesting:
	CalcMask();
	CopyMask();

Does anyone have any sample source that use these?  I'm not sure I understand
the arguments CalcMask() wants...

Thanks!
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MacTCPCommonTypes & typedef unsigned char b_8.
Date: 28 Sep 92 04:15:55 GMT
Organization: University of Waikato, Hamilton, New Zealand

In article <Bv74rq.5EH@gate.demon.co.uk>, David Johnston <davidj@daveland.demon.co.uk> writes:
> I've been doing some 'Lets grope in the dark TCP programming' and
> have run up against a somewhat bizarre problem.
>
>  To get started I tried to compile a piece of Apple code (I think
> from ftp.apple.com) called tcpserver what is a simple greeting
> server (Under Think C).
>  It fell over wanting MacTCPCommonTypes.h, so I found me a copy
> of this somewhere and stuck it in. It then fell over with
> "Illegal redeclaration of b_8"
> at the line "typedef unsigned char b_8" in MacTCPCommonTypes.h.
>
> Fair enough, *except* I've scanned every last byte of my hard
> disk and can't find any file or library which refers to b_8.

(Does a quick check) As I suspected--this is the first typedef in
MacTCPCommonTypes.h.

What this means is that you must be #including MacTCPCommonTypes.h
more than once, either directly or indirectly. Now all you have to do
is track it down...

Lawrence "This would never happen with Modula-2" D'Oliveiro
Usenet DBcc specialist
From: mssmith@afterlife.ncsc.mil (M. Scott Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Fast animation / direct screen writing?
Date: 4 Oct 92 20:30:01 GMT
Organization: The Great Beyond


   Ok, I apologize in advance because I know this is frequently asked, but
I can't find it, so...

   Can someone point me in the right direction for learning how to do quick
color animation?  I know a bit about gworlds, although I've never used them;
and I also know that I'm leaning towards getting into direct-screen writing
to achieve the quickest, smoothest animation.

   So, a few questions about this: Are there any sources of source code
that does quick animation, using direct-screen writing or other methods?
I recall hearing discussion on here sometime recently about a package of
source code available somewhere that did have routines for doing this.
Also, how safe is it to do screen writes?  I know it's a no-no, but if I do
it right, will my program be compatible with most Macs out right now?

   I have an idea for a program I want to write which I don't think has been
done yet.

   I won't describe the project much, since it's still going through my head,
but I know I will need to animate, say, a fish, on the screen.

   I'm not talking about After Dark fish.  I want a fish which looks REAL --
that is, swims around the screen, changing directions (up/down/diagonal/etc.);
I predict that in terms of frames, it would take a LOT to do this kind of
animation.

   So, any suggestions about that?  This would be at least 8-bit; preferably
24-bit, since I haven't seen many 24-bit programs around yet.

   I was thinking about the possibility of doing real-time rotations of the
fish image; for example, if the fish swims from the bottom of the screen
to the top, it would tilt upwards maybe 45 degrees.  Instead of having a host
of frames with the fish in a diagonal position for animation, it would probably
save a lot of disk space/memory/my time, etc. to be able to "rotate" the
fish via software.  But I don't know how easily this could be achieved;
if it could be done quick enough, or if it would look good.

   Feedback would be most welcome.  Unfortunately, I'm not an artist.  (I've
got a scanner, which will help a lot, though.)  Can anyone draw good fish?  :)

Thanks for any info...

M. Scott Smith
  (mssmith@afterlife.ncsc.mil | umsmith@mcs.drexel.edu)
From: crod@cc.curtin.edu.au (Scott Kevill)
Subject: Re: MACSBUG Dcmd for "Shut Down"
Organization: Curtin University of Technology
Date: Fri, 2 Oct 1992 01:40:06 GMT


Hi Joel,

If you didn't have a DCMD, you could always use the trap call
(like the ExitToShell used in the old days of ROM mini-debuggers)
as I do.

At the debugger prompt, type :
SM 0 3F3C 0 1 A895
G 0

or with MacsBug, you can do this in one line :
SM 0 3F3C 0 1 A895;G 0

After using this plenty of times for a quick shutdown, especially
on floppy systems, it is fairly quick to type and has the advantage
of working on any debugger.

Hope this helps !

Scott

+-----------------------+--------------------------------------+
I Scott Kevill          I   "Be like me, be original"          I
I crod@cc.curtin.edu.au I                              -- Me   I
+-----------------------+--------------------------------------+
In article <1992Sep28.201954.20830@mail.cornell.edu>, js17@cornell.edu (Joel Sumner) writes:
> Has anyone written a "Shut Down" or "Power Off" DCMD for MacsBug?  I have
> a 
> powerbook 100 and the ONLY way to shut off the power is from the Finder 
> ShutDown command (there is this thing about not having a power switch or
> a power cord to unplug that causes problems... <grin>).  Occasionally,
> when I crash the thing, I  don't want to wait for it to do a full re-boot
> just to select "Shut Down".  Has anyone written a Macs Bug DCMD (or any
> other method from MacsBug) which will do the same thing?  Not even a full
> OS shutdown, just a "Power Off" would be nice....
> 
> -Joel
> Joel Sumner
> js17@cornell.edu
> q4kx@cornella (Bitnet)
> -----------------------------------------------------------
> .sig under construction (like the rest of Cornell)
From: ags@seaman.cc.purdue.edu (Dave Seaman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MPW 3.2.4 update, please help!
Date: 29 Sep 92 18:33:20 GMT
Article-I.D.: mentor.BvCrJL.1y0
Organization: Purdue University

In article <1992Sep29.104042.1036@galaxy.gov.bc.ca>  
cconstantine@galaxy.gov.bc.ca writes:
> Hi there fellow programmers.  We have just ordered MPW C 3.2.3 from  
Apple
> Canada (They aren't shipping 3.2.4 as of yet) and was wondering if any  
of you
> developers would be kind enough to send me/us the mpw 3.2.4 update (not  
the
> full system, just the update so that we can update ours when it comes in  
next
> week)  

Not to worry. I just received my CD-ROM-based update to MPW 3.2.3, and the  
package includes a letter explaining the problem and a floppy disk with a  
C compiler to replace the buggy one on the CD-ROM. The letter makes it  
clear that the same measure extends to purchasers of the disk-based MPW  
3.2.3.

--
Dave Seaman
ags@seaman.cc.purdue.edu
Newsgroups: comp.sys.mac.programmer