HDTenEightyP/NetNews huggingface dataset:
From: CXEO <CXEO@MUSICA.MCGILL.CA>
Subject: Folder dialog and aete resource questions??
Organization: McGill University
Date: Mon, 16 Nov 1992 22:33:40 GMT

    Hi, all; forgive FAQs -- I checked as much as I could

    I'm a very intermediate programmer and have two questions for all
available wizards:

a) What is the recognised kocher way of getting a folder choice from
the user (i.e. Have the user designate a folder for a specific oper-
ation) I've seen hundreds of different dialogs and methods of doing
this, with varying degrees of intuitiveness. Is there an official
Apple stance on this? And if there isn't, what is the cleverest and
tidiest way of pulling it off (Preferably to get an FSSpec (Does that
work for folders?) or other such 7.0 structure)

b) What the *(^* is the structure of a 'aete' resource? I heard about
these wonderful things that (Apparantly) describe Apple Events sup-
ported by an application, but I can find no mention of it in my
copy of IM vol VI. Reading the resource in ResEdit with straight hex
is not getting me very far, because I can't distinguish the class and
event ID codes from the general garbage of leading bytes, etc. HELP!

c) (Small final question) -- where is the best place to get example
source? I'm writing a CDEV/INIT for the first time and a friend sent
me some example source he says he got off ftp.apple.com. I find that
site incredibly tortuous, and was wondering if someone could give me
a specific directory that contains example source.

    Thanks for your time.

    Please post replies to: CXEO@musica.mcgill.ca since I don't read
the newsgroup that often.

Newsgroups: comp.sys.mac.programmer
From: mtc@mundil.cs.mu.OZ.AU (Michael Trevor CUTTER)
Subject: Switching app problem
Organization: Computer Science, University of Melbourne, Australia
Date: Tue, 24 Nov 1992 02:54:02 GMT

Hullo, here's another one...

The app I am working, displays one (1) window, which only ever contains text,
written to it using textbox (it is just messages).

However, if I switch it to the background (in System 7) and then switch it back
it freezes. This is obviously a coding problem, but I have no idea where to 
look. Other than that it works fine. Unfortunately, it needs to be switched back
and forth as part of its purpose.

Any suggestions?

Regards,
	Mike.
P.S. Where can I get docs for Macsbug?
-- 
Michael Cutter                        email: mtc@mundil.cs.mu.oz.au
Ictinus Network Development Team             mtc@arbld.unimelb.edu.au
BCAT Development Team                 snail: c/- 3 Barton Street
Department of Architecture & Building        Hawthorn, VIC, 3122 
University of Melbourne, Australia           AUSTRALIA
Sort of 3rd Year Computer Scientist   phail: 61-3-853 9717
Newsgroups: comp.sys.mac.programmer
From: bell@apple.com (Mike Bell)
Subject: Re: Which SCC in Macs
Date: Sun, 22 Nov 1992 19:45:33 GMT
Reply-To: bell@apple.com (Mike Bell)
Organization: Apple Computer, Inc.
Keywords: Z85C30?, SCC, Zilog


In article <1992Nov20.160405.28591@gallant.apple.com>, blob@gallant.apple.com 
(Brian Bechtel) writes:
> Newsgroups: comp.sys.mac.programmer
> Path: gallant.apple.com!blob
> From: blob@gallant.apple.com (Brian Bechtel)
> Subject: Re: Which SCC in Macs
> Message-ID: <1992Nov20.160405.28591@gallant.apple.com>
> Date: Fri, 20 Nov 1992 16:04:05 GMT
> References: <1992Nov19.165647.11318@informatik.uni-bremen.de>
> Organization: Apple Computer Inc.
> Keywords: Z85C30?, SCC, Zilog
> 
> mm@lehre9.informatik.Uni-Bremen.DE (Markus Kommant und Michael Schmidt) 
writes:
> 
> >so, two tries to get some Information on Interrupt and SCC programming
> >on the Mac, but no response. :-(
> 
> >Maybe at least somebody knows if the SCC from Zilog is the Z85C30 and
> >how and where the registers are mapped into the memory. Probably that
> >stuff is described in "The Macintosh Family Hardware Manual" or the Mac
> >SE Deveoper Notes, but I couldn't get my hands on that stuff yet. If
> >anybody knows a site where to ftp anything like that ...
> 
> You can get the "Guide to Macintosh Family Hardware" from APDA, or from
> any bookseller who can order books from Addison-Wesley publishers in the
> USA.  The ISBN number for the 2nd (latest) edition is 0-201-52405-8.
> 
> Developer notes are available on the developer CD series, or from APDA
> as well.  You can purchase the CD from (no suprise) APDA.
> 
> The Zilog 8530 is the SCC chip used on everything but the IIfx and
> Quadra 900 and 950 computers.  That may or may not change in the
> future.



As a follow-up, I would just like to encourage developers not to bang the SCC 
directly (unless they ABSOLUTELY have to) to insure  future compatibility.



Mike



****************************************************************************

Mike Bell										     	       	       	       	  email: bell@apple.com
Senior Engineer
68000 High Performance Software Group
MS 60-CS
Apple Computer, Inc.
20525 Mariani Ave.
Cupertino, CA 95014

****************************************************************************
Newsgroups: comp.sys.mac.programmer,misc.forsale.computers.mac,comp.sys.mac.wanted
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: C.S.M.P. Digest V1 #217 Available
Date: 23 Nov 92 12:29:44 GMT
Article-I.D.: cs.1992Nov23.122944.17046
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.


C.S.M.P. Digest             Mon, 23 Nov 92       Volume 1 : Issue 217

Today's Topics:

	Suppl. Gestalt Selectors List 1.0.1
	TimeDBRA
	TrapAvailable for C (Was Re: help with Link failures in THINK C 5.03)
	calling GetMenu twice on same MENU - actually seems ok?
	Resource Manager Questions



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.  You can post articles to any newsgroup by
mailing your article to newsgroup@ucbvax.berkeley.edu.  So, to post an
article to comp.sys.mac.programmer, you mail it to
comp-sys-mac-programmer@ucbvax.berkeley.edu.  Note the '-' instead of '.'
in the newsgroup name.

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                                               Senior Partner
mkelly@cs.uoregon.edu                                      High Risk Ventures
_____________________________________________________________________________
Newsgroups: comp.sys.mac.programmer
From: dce@smsc.sony.com (David Elliott)
Subject: "Official" shareware definition
Organization: Sony Microsystems Corp, San Jose, CA
Date: Sun, 15 Nov 92 23:34:45 GMT

I'm looking for the definition of "shareware" as defined by
the Association of Shareware Programmers (as well as the
correct name for this organization, which I'm sure I have
wrong).

Could some member send this information to me?

(Sorry to post in a Mac newsgroup, but this was the only
place that I know such people read.)
From: werner@soe.berkeley.edu (John Werner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Q:  ThinkC5.0.3 and Apple Sys7.1 Incompatibility?
Followup-To: comp.sys.mac.programmer
Date: 16 Nov 1992 21:04:48 GMT
Organization: UC Berkeley School of Education
NNTP-Posting-Host: 128.32.157.31

In article <1992Nov14.185555.24804@uc.msc.edu>, danw@uh.msc.edu (Dan
Waylonis) wrote:
> Am I doing something wrong, but does anyone else's copy of ThinkC 5.0.3 exit
> immediately when using Apple's System7.1 ?

I brought my copy of THINK C in to work today to try it out on 7.1.  It
works fine.  No problems.  And I'm running on a Quadra in 32-bit mode with
the caches enabled.  If were going to crash, I think it would do it on my
machine.

--
John Werner                         werner@soe.berkeley.edu
UC Berkeley School of Education     510-642-9651
Newsgroups: comp.sys.mac.programmer
From: espen@leo.unm.edu (Peter Espen)
Subject: Specifying stack size in Think C 5.03?
Date: Sat, 21 Nov 92 03:59:47 GMT
Organization: University of New Mexico, Albuquerque
Distribution: usa

	I am using Think C 5.03 to run some generic C programs using the
console window and the ccommand() function. The programs that I am running
are not that large, but they do have functions that are highly recursive.
I find myself running out of memory when the recursion starts getting pretty
deep.  Is there a way in Think C 5.03 to specify the size of the stack??

	Peter Espen
	espen@leo.unm.edu


Newsgroups: comp.sys.mac.programmer
From: mlandaue@ux4.cso.uiuc.edu (Michael C Landauer)
Subject: Advice needed in writing game for mac
Summary: Advice Needed
Organization: University of Illinois at Urbana
Date: Sun, 15 Nov 1992 21:53:10 GMT

We are working on writing a networked game for the mac.
I will use localtalk.  It is a car wars-like game in which
two or more players drive around an arena and try to blow
each other away.

What I need to know is what the best way to represent a
"virtual world" (the arena) in memory and how to access
that memory and display part of it on the screen.
Each car or whatever else will be an object with a location
somewhere in this "virtual world"

Any advice would be appreciated.


Mike Landauer
mlandaue@ux4.cso.uiuc.edu

------------------------------------------------------------
|                                                          |
|           "Oh, hell, I dunno." - Bono (U2)               |
|                                                          |
------------------------------------------------------------
From: bfoley@obelisk.berkeley.edu (Brian Foley)
Newsgroups: comp.sys.mac.programmer
Subject: More Sound Manager Questions
Date: 18 Nov 1992 21:50:21 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: obelisk.berkeley.edu


Well, my program is almost finished except for a few lingering bugs that I have  
not had time to track down.  I was hoping that I could get people on the net to  
do some of my work for me, so here goes:

 -   I want to be able to play several tones simultaneously.  Currently I do  
this with multiple wavetable channels, but this limits me to 4 tones.  Is there  
another way to do this with more tones (CPU use is not an issue but waiting to  
calculate the sampled data is)?

 -   I am using the waveTable synthesizer to play simple tones (see above). I  
set up the wave table as a sine wave, then I send a ampCmd and a freqCmd  
(followed later by a quietCmd).  The frequencies sound fine, but I dont have  
any control over the amplitude - it always plays the max.  Calling getAmpCmd  
returns 0.
What am I doing wrong? (I swear I checked the source code!)

-   Can a Mac LCII play sounds higher than 11 kHz?  If not are there boards  
available that can?

-   MIDI frequency values are the log of frequency right?  Does anyone know the  
conversion equation offhand? (I remember math...)

Any hints, tips, answers, jokes, flames etc. can be emailed  
(bfoley@obelisk.berkeley.edu) or posted.

Thanks for your help
brian foley
UC Berkeley, Science and Mathematics Education Division
From: povlphp@uts.uni-c.dk (Povl H. Petersen)
Newsgroups: comp.sys.mac.programmer
Subject: Mac. Programming secrtet
Date: 17 Nov 92 14:51:54 GMT
Organization: UNI-C, Danish Computing Centre for Research and Education

I just got Macintosh programming secrets, so I would appreciat if somebody could mail me the cover page description, as I have lost my copy.

thanks in advance,

Povl H. Pedersen
From: MARKROSE@MSU
Newsgroups: comp.sys.mac.programmer
Subject: HOW TO ?: Edit Insertion Point Character
Date: 22 Nov 92 15:01:19 GMT
Organization: Michigan State University


  I am working on a hypercard stack and would like to have a block cursor
  as the insertion point character.  I checked the curs resources but found
  none for the insertion point, where is that pesky thing hiding and how can
  I edit it ?

  Thanks,
  Mark Rosenberg, Mich. St. Univ.
From: keith@taligent.com (Keith Rollin)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Pointers to function and UnloadSeg
Date: 23 Nov 92 22:24:41 GMT
Followup-To: comp.sys.mac.programmer
Organization: Taligent

In article <1992Nov23.002629.3444@ccu1.aukuni.ac.nz>,
russells@ccu1.aukuni.ac.nz (Russell Street) wrote:
> 
> What steps should I take to ensure that when I use pointers to functions
> in CODE segments that I (may) unload later?  This is in Think C 5.

You don't have to take any steps. When you take the address of a function,
you are given a pointer to a jump table entry. When you later try to jump
to the function, if it is unloaded, you'll end up calling _LoadSeg. If the
code segment is loaded, the indirection provided by the jump table will
make sure you end up in the right place, even if the segment has moved.

Don't worry. Be happy.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer
From: jones@pogo.den.mmc.com (Jonathan Jones)
Subject: Possible Bug  With MPW
Organization: Martin Marietta WIS
Date: Tue, 17 Nov 1992 22:40:45 GMT


 *********************  Operating Enviroment **********************

   Running on a Macintosh IIfx
                System 7
                8 meg. of memory

                MPW 3.2  -- E.T.O # 8 

   
   We sent this problem to Apple by mail about 3 weeks ago, and to their Cplus.Bugs@AppleLink.Apple.Com a week ago.
   We have heard no response.  Is this the Norm for Apple ?  
   
   We would like to know if other people can reproduce the following problem ? 
   Does anyone have ANY solution to it ?
     

****************************  Problem   **************************************************

  Put in either "virtual" or both "virtual"s on the destructors and the compiler will fail!!

  It will only compile, if "virtual" is removed from BOTH destructors.


   

*************   Stripped Down Source Code  *** Note: No Include File for this small Example  ***

class Object
{
public:
    virtual  ~Object( void ) {}    
};


class Bool : public Object
{
public:
	virtual ~Bool( void ) {}
};


void f3() 
{
	Bool *p  = new Bool[10];
	
	delete [] p;      // no size necessary
}


*********************  Compile line   ****************************

      CPlus   fileName.cpp   




*********************  Output from C compiler, gets past Cfront ****************************
#
#
#?
### Error 211 Pointer type required
#?
### Error 24 ')' expected
#?
### Error 229 mismatch between formal and actual parameter types
#?
### Error 258 There are not enough arguments
#?
### Error 30 ';' expected
#?
### Error 22 error in factor
#?
### Error 212 Struct or Union type required
#?
### Error 23 identifier not declared
#--------------------------------------------------------------------------------------------------------------------------------
    File "HD:Cams:Tree:jjj.cpp"; Find !246:!1; Open "{Target}"
#--------------------------------------------------------------------------------------------------------------------------------





********************************************************************************* 
*
*   From :     Steve McCabe & Jonathan Jones
*              (303) 971-5124  (303) 971-5101
*
*   Reply to : /s=McCabe/g=Steve/ou=msmail/o=den.mmag/prmd=mmc/admd=telemail/c=us/@x400
*
*********************************************************************************
From: urritche@mcs.drexel.edu (Ralph Paul Ritchey)
Newsgroups: comp.sys.mac.programmer
Subject: Inside Mac VI: Time Manager code bugs?
Date: 22 Nov 92 03:22:28 GMT
Organization: Drexel University

Netters:

All I want to do is install some code that needs to run periodically
in my application.  The Time Manager is ideal for this (I need finer
resolution than using the VBL Manager).  I tried using the code from
IM VI, pages 23-12 to 23-14.  It didn't work, so I decided to try
the code all by itself in some little rinky dink program.  It doesn't
work.  I've had all sorts of problems running which range from:
total system freeze, applications quitting, and my IIci shutting
down, to the mouse freezing in place.  If the program doesnUt totally
crash, I get either a BAD ADDRESS error or BUS ERROR from Think
Pasca (version 4.0.1).  What is the problem?  I'm running system 7.0 
with tuneup on a IIci with 8megs internal memory.  Here is the code 
as I have it:

program test;



 uses
  timer;

 type
  tminfo = record
    atmtask: tmtask;
    tmwakeup: longint;
    tmreserved: longint;
    tmrefcon: longint;
   end;
  tminfoptr = ^tminfo;

 var
  i: integer;

 function gettminfo: tminfoptr;
 inline
  $2e89;

 procedure mytask;
  var
   olda5: longint;
   recptr: tminfoptr;
   mydelay: longint;
 begin
  recptr := gettminfo;
  olda5 := seta5(recptr^.tmrefcon);
  mydelay := 2000;
  i := i + 1;
  writeln('printing to the screen....', i);
  olda5 := seta5(olda5);
  primetime(qelemptr(recPtr), mydelay);
 end;

 procedure installTMTask;
  var
   mytminfo: tminfo;
   mydelay: longint;
 begin
  mydelay := 2000;
  mytminfo.atmtask.tmaddr := @mytask;
  mytminfo.tmwakeup := 0;
  mytminfo.tmreserved := 0;
  mytminfo.tmrefcon := setcurrenta5;
  insxtime(@mytminfo);
  primetime(@mytminfo, mydelay);
 end;



begin
 i := 0;
 showtext;
 installtmtask;
 repeat
 until (i = 40);

end.



Thanks in advance for the help!

Ralph Ritchey
urritche@mcs.drexel.edu
	@king.mcs.drexel.edu
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Testing memory validity
Organization: Kalamazoo College
Date: Thu, 19 Nov 1992 18:03:53 GMT

Can anyone spell out an algorithm to me for predicting whether the
access of a certain memory location will yield a bus error?  I'm writing
a high-level interface to raw memory (don't ask why), and it'd be a
nice perk to flag attempts to access invalid locations.

Email only please, I'm way behind in reading this group.
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "I don't think we should have to have them wandering the streets
  frightening women and people."                            - Pat Buchanan
From: paul@taniwha.UUCP (Paul Campbell)
Newsgroups: comp.sys.mac.programmer
Subject: Re: CTB, fake ports, how?
Date: 16 Nov 92 19:24:49 GMT
Organization: Taniwha Systems Design

In article <aVR6TB3w165w@bluemoon.use.com> zaphod@bluemoon.use.com (Peter Bierman) writes:

>What I want to do is to create a fake CTB port on a machine that I will 
>pass the modem port data to. But I will intercept and modify the data as 
>it is passed.

>What I want to do is put a shell over the control of the modem. I will 
>then use PortShare to share this "shelled" modem over the network.

>First) How do you create a new port?

write a device driver that mimics the behaviour of a serial port

>Second) Where can I find better info on the CTB than the Inside the Mac 
>CTB book? It's not exactly clear...

then register it with the CTB ....

	Paul
-- 
Paul Campbell    UUCP: ..!mtxinu!taniwha!paul     AppleLink: CAMPBELL.P
   
     Q: Why is Marilyn Quayle like Marion Barry?
     A: They both suck a little dope.
From: mssmith@afterlife.ncsc.mil (M. Scott Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Re: sndPlay while animating
Keywords: Mac, sndPlay, animation
Date: 15 Nov 92 23:58:30 GMT
Organization: The Great Beyond

In article <BxruHF.F11.1@cs.cmu.edu> mak+@cs.cmu.edu (Matthew Alan Kane) writes:
>Situation:
>I have animation running during vbl
>and am playing snd resources with sndPlay.
>
>Problem:
>How do I keep my animation going while the sound is playing?
>
>mak@cs.cmu.edu

Hi..

   I assume when you call SndPlay, the computer then freezes until it's
done playing the sound?  Or even if you're playing it asynchronously and
that's not working well, the following should help.

   I wrote some simple code in Think C for a game I'm working on to play
sounds in the background.  For me the sounds seem totally independent of
the animation; that is, the animation doesn't get in the way of the sound
and vice-versa.  It works.

Here's the code:

First, set up a sound channel.

void ThisWorks(void)
{
  SndChannelPtr   myChannel;
  OSErr           myErr;
  SndCommand      mySndCommand;
  Handle          mySoundEffect;

  myErr = SndNewChannel(&myChannel, sampledSynth, initMono, nil);

  mySoundEffect = GetResource('snd ', SOUND_RESOURCE_ID);

  mySndCommand.param1 = 0;
  mySndCommand.param2 = 0;
  mySndCommand.cmd = flushCmd;

  myErr = SndDoImmediate(myChannel, &mySndCommand);
  myErr = SndPlay(myChannel, mySoundEffect, true);
}

Of course, you need to include <sound.h> at the beginning of your program.

I'm not certain the "flushCmd" deal is necessary..  (I wrote this awhile ago,
in Pascal at first, so if you're using Pascal and have a problem converting
it, buzz me.)  I think that just flushes the channel in case any other sounds
are playing on it.

Actually, it's useful to set up multiple channels (on sound-capable Macs you
have 4), because then you can use one channel for a continuous soundtrack,
and another channel for sound effects, etc.  (Of course this method might
cause problems if you're competing with other programs for the same channel,
etc.)

Hope that helps!

M. Scott Smith
  (mssmith@afterlife.ncsc.mil || umsmith@mcs.drexel.edu)
Newsgroups: comp.sys.mac.programmer
From: cheshire@CS.Stanford.EDU (Stuart Cheshire)
Subject: Here's a challenge -- a REALLY obscure question.
Organization: Computer Science Department, Stanford University.
Date: Tue, 17 Nov 1992 03:53:07 GMT

This question is for my game, Bolo, which I am currently working on.

In order to make the startup time as quick as possible, I load
the sound resources off disk simultaneously with running the
'join game' map transfer protocol over the network.

However, I have found a problem. If you load Bolo off floppy disk, then
disk accesses disable interrupts, causing the Mac to miss some network
packets, disrupting the smooth flow of the game for other players.

I also suspect that perhaps on low end machines like the Mac
Plus, SCSI disk access might also cause lost network packets.

Before I take out the concurrent loading feature (and have
people complain), here is a single plea for help:

Does anyone know a test I can make Bolo perform to determine whether
disk access will cause network packet loss, so that I can retain the
concurrent loading feature on setups that can support it?

If no-one answers then concurrent loading goes away in the next release
-- network reliability has to take priority over loading speed. Sorry.

Stuart Cheshire <cheshire@cs.stanford.edu>
 * Liliore Green Rains Houses Resident Computer Coordinator
 * Stanford Distributed Systems Group Research Assistant
 * Macintosh Programmer
Newsgroups: comp.sys.mac.programmer