HDTenEightyP/NetNews huggingface dataset:
From: j-norstad@nwu.edu (John Norstad)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MacTCP over LocalTalk
Date: 3 Sep 92 17:26:38 GMT
Article-I.D.: norstad.j-norstad-030992123006
Followup-To: comp.sys.mac.programmer
Organization: Northwestern University

In article <1992Sep2.234214.19655@unixland.natick.ma.us>,
cramer@unixland.natick.ma.us (Bill Cramer) wrote:
> 
> According to the MacTCP manual, I can run MacTCP through a direct 
> Ethernet connection or over LocalTalk.  To run over LocalTalk,
> however, I need a bridge which frames and unframes TCP/IP packets
> between AppleTalk and raw EtherNet protocols.
> 
> So far, so good.  But what if I want to use TCP/IP between two
> Macs -- no Ethernet, just two macs connected with LocalTalk.  Can
> this be done?  In theory, there is no need for the bridge since
> my packets never reach an ethernet network.  In practice, I get an
> error -98 (port not configured) error when I try to PBOpen the 
> driver.  Am I simply not configuring things correctly or is what
> I'm trying to do simply not possible?

It should work with MacTCP 1.1 configured with static IP addresses. 

When an AppleTalk/IP gateway is present, MacTCP 1.1 sends all of its
encapsulated IP-in-DDP packets to the gateway. When a gateway is not
present, it should use a technique called "NBP ARP" to locate the
destination Mac, and then it delivers the IP-in-DDP packet directly to that
Mac.

NBP ARP on the source Mac does an NBP lookup for the entity name
x.y.z.w:IPADDRESS@zone, where "x.y.z.w" is the IP address of of the
destination Mac. MacTCP on the destination Mac should have registered this
entity name.

This is the same address resolution protocol used by gateways to deliver
incoming IP packets to LocalTalk Macs.

MacTCP needs to be open on both Macs. MacTCP is not opened until it is
called for the first time after restarting by some TCP/IP application
program.

All this is guessing on my part - I've never actually tried this. This is
how it should work, though, according to the MacIP protocol.

John Norstad
Academic Computing and Network Services
Northwestern University
j-norstad@nwu.edu
From: jtgorman@cs.arizona.edu (J. Taggart Gorman)
Newsgroups: comp.sys.mac.programmer
Subject: kAEQuitApplication driving me batty
Keywords: apple events
Date: 25 Aug 92 22:53:22 GMT


  Well not just kAEQuitApplication, but the whole thing of sending a Quit event
to a process.

  I'm writing in C and have code from IM VI and the sample code from Apple,
Process Manager.
  The problem : on my IIsi running 7.0.1+ and coding on Think C 5.0.2, nothing
can send Quit events.  Not my code, not Apple's sample code, not the pre-
complied Process Manager, nor the program ProcessWatcher.  I don't know why
ProcessWatcher can't send Quit events, but when both my code and Process
Manager call AESend, the OSErr returned is -903, which IM VI tells me is a
"noPortErr - Invalid port name; Unable to open port or bad port refernce
number".
  Somebody want to try and tell me why AESend is barfing on sending quit events
on my machine?>  Could I have a nasty INIT conflict?  (Hard to turn them of
since I use Autodoubler. *sigh*)

  If you want to see my code, it's exactly the same as the sample code from
Apple, and since the precompiled program from them doesn't work either, I
suspect something other than bad code.


  ARGH!  Help me!  Please!  This has been keeping me up at night!

  Thank you.

|--------------------------------|    "If you were happy all of your life,
|      J. Taggart Gorman Jr.     |     you wouldn't be human - you'd be a
| jtgorman@caslon.cs.arizona.edu |     game show host."
|--------------------------------|             Winona Ryder, in _Heathers_
Newsgroups: comp.sys.mac.programmer
From: danny@utkux1.utk.edu (Danny W. McCampbell)
Subject: Still trying to get this stupid sound stuff to work...
Organization: University of Tennessee
Date: Wed, 26 Aug 1992 19:26:10 GMT

Will someone tell me what I can do to this code to cause the sound
to play transparently.  What I mean is after the sound starts playing
a modal dialog is brought up.  I want the user to be able to click
in the dialog and when he/she does the sound stops and the dialog
disappears.  What is happening now is the sound sound starts playing,
the dialog comes up, but you cannot do anything until the sound 
finishes.  Check it out:

unit Sounds;

interface
 uses
  Sound;
 procedure PlaySound;

implementation
 procedure PlaySound;
  const
   kAsync = true;
   soundID = 128;
  var
   err: OSErr;
   mySndHandle: Handle;
   mySndChan: SndChannelPtr;

 begin
  mySndChan := nil;
  mySndHandle := GetResource('snd ', soundID);
  if mySndHandle <> nil then
   begin
    err := SndPlay(mySndChan, mySndHandle, kAsync);
    if err <> noErr then
     ExitToShell;
   end;
 end;
end.

I call sound play when the user chooses the about item from my program
from the AppleMenu.  Then I bring up a modal dialog.  What can I
do to get what I mentioned above to happen.  Thanks in advance.

Danny McCampbell


Newsgroups: comp.sys.mac.programmer
From: philip@research.canon.oz.au (Philip Craig)
Subject: QuickTime -> PICT or TIFF
Organization: Canon Information Systems Research Australia
Date: Mon, 31 Aug 1992 12:12:58 GMT

Hi.

I am trying to get some data from a QuickTime movie to something else. I have
the Beta QuickTime CD and the Release Version 1.0 for Developers CD.

I want to turn a movie (or about 25 frames at least) into either PICT files
for each frame or TIFF files for each frame. Basically I want to save every
frame so that I can use the data for other things.

Is there some way of doing this with the tools I have right now? If there is
then can someone please let me know how to do this?

Thanks in advance,
Philip Craig.

I'll summarize if there is enough interest.

Also, does anyone have any bigger movies (video -- not animation) that are at
least 360 by 288 pixels? I can't find any of these on the two CDs. Are there
any? If so, I'd love a pointer to where I can find them. Thanks again.
-- 
   _/_/_/  _/  _/  _/  _/      _/  _/_/_/ _p_h_i_l_i_p_@_r_e_s_e_a_r_c_h_._c_a_n_o_n_._o_z_._a_u   _--_|\
  _/  _/  _/  _/  _/  _/      _/  _/  _/  Phone: +61 2 805 2951        /      \
 _/_/_/  _/_/_/  _/  _/      _/  _/_/_/   Fax:   +61 2 805 2929        \_.--._/
_/      _/  _/  _/  _/_/_/  _/  _/     PO Box 313 North Ryde 2113 AUSTRALIA  v
Newsgroups: comp.sys.mac.programmer
From: zawr02@hou.amoco.com (Andrew W. Robinson)
Subject: Help with binhex
Reply-To: zawr02@hou.amoco.com
Organization: Amoco
Distribution: na
Date: Fri, 28 Aug 1992 19:55:16 GMT

Hello Mac gurus.  This may be the idiot question of the day.  I am a novice at
MacIntosh, having aquired a brand-new second-hand SE/30.  (I am experienced
with systems like Sun workstations and IBM mainframes.)  I have pulled several
files from ftp sites that have the extension .hqx.  I assume that means they have
been compressed with binhex.  My question is what software is required to
debinhex the files?  Does the software come with System7?  Is it something I 
need to buy from Apple?  Do I need to get the software via ftp?  If it is the last
case, will it come compressed with binhex? ;-)

Thanks in advance for the enlightment.
---

Andrew Robinson
--------------------------------------------------------------
So convenient a thing it is to be a reasonable creature, since
it enables one to find or make a reason for everything one has
a mind to do. - Benjamin Franklin
From: paul@svl.cdc.com (Paul Kohlmiller)
Newsgroups: comp.sys.mac.programmer
Subject: vrefNum from Path Name
Summary: Getting vrefNum from Path names is not clear to me
Keywords: vrefNum
Date: 1 Sep 92 05:46:13 GMT
Distribution: usa

This may be a FAQ but I didn't find it.
Most Mac apps have a dialog box to find a file such as the one you
get with SFGetFile etc.
When you do this you get the vrefNum but not the parID which is
another problem for later.
However, I have an application that wants to get the file from a
pathname and there is no place for a vrefNum. While this seems
unMaclike, it seems to work for MPW which can take a path name in
a Link command. Maybe simply opening a file can be done with just
a path but LaunchApplication needs a FSSpec which needs the
vrefNum and the parID. The parID I can set to 0 for now (do I care
about parID on non-A/UX apps) but the vrefNum I need. The best
solution I have so far is to do the dialog box once and keep the
vrefNum info. What I would like is a function that returns vrefNum
from a file pathname but I don't see it. Any ideas?
thnx

--
     // Paul H. Kohlmiller             //  "Cybers, Macs and Mips"    //
     // Control Data Systems, Inc.    // Internet: paul@svl.cdc.com  //
     // Acronym under construction.  // America Online: Paul CDC    //
     // All comments are strictly my own. I won't lie but my       //
     // perception of reality is at best a personal hunch.        //
From: thomas@garnet.berkeley.edu (Mark)
Newsgroups: comp.sys.mac.programmer
Subject: SFGetFile Problem
Date: 23 Aug 1992 20:23:43 GMT
Organization: University of California, Berkeley
NNTP-Posting-Host: garnet.berkeley.edu

Has anyone had problems using SFGetFile over a network, using either
Appleshare or System 7?

I've got this XFCN which calls SFGetFile.  When I use it to identify a file
on the local HD the call returns properly with the SFReply record properly
filled.  However, when I identify a file on an Appleshare volume or a volume
connected via System 7.0 the dialog box comes up, allows me to select a
file, the dialog box disappears, but then the routine never returns.  No
System Error ever appears and TMON PRO fails to activate.

Any suggestions for things to check, or personal experience with similar
problems would be most appreciated.

Mark Thomas

Newsgroups: comp.sys.mac.programmer
From: Glen.Stewart@f175.n2240.z1.ieee.org (Glen Stewart)
Subject: RE: BEST way to do serial handling...
Organization: FidoNet node 1:2240/175 - The Associati, Grand Blanc MI
Date: Tue, 18 Aug 1992 14:17:09 GMT

Just saw a note in another echo, where the author said he wrote his own
routines, since the CTB is TOO slow.  Hope this helps a bit.


--  
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
 Glen Stewart - Internet: Glen.Stewart@f175.n2240.z1.ieee.org
From: martin@DMI.USherb.CA (Jean-francois Martin)
Newsgroups: comp.sys.mac.programmer
Subject: Why there is no FONT PICKER?
Date: 30 Aug 92 14:49:53 GMT
Article-I.D.: DMI.Btsx76.MrG
Reply-To: martin@DMI.USherb.CA
Organization: Universite de Sherbrooke -- Dept. De Mathematiques et D'Informatique

Hi netters,

Can someone tell me why there is no thing like a Font Picker on the MAC?

The idea of a FONT PICKER could be just like the Save As and Open
dialog boxes. It could be extensible. There is a color picker isn't?

Why such thing is needed? Just look at how different each application treat
the selection of fonts. A FONT PICKER could help to make the MAC even
more consistent.

Any comment on this idea?

---
================================================================================
= Jean-Francois Martin                                     martin@dmi.usherb.ca=
= Graduate student of Universite de Sherbrooke (je parle francais)             =
= "In complete darkness we are all the same" Janet Jackson                     =
================================================================================
From: jr51+@andrew.cmu.edu (Julie A Reyer)
Newsgroups: comp.sys.mac.programmer
Subject: Powerbook Computers
Date: 25 Aug 92 09:56:47 GMT
Organization: Masters student, Mechanical Engineering, Carnegie Mellon, Pittsburgh, PA

Hi!

Now that Apple has decided to discontinue the Powerbook 100, I have
found that they can be purchased for a reasonable price.  So, what I
want to know is are they any good?  My main use of my Mac is
programming, I'm writing an medium sized application as part of a
research project, it's currently up to about 25K lines.  Can anyone tell
me if there are any problems with these computers, especially for use in
programming?  Also, does anyone know why the 100 was discontinued. 
Please be as technically specific as possible.

Later,

JR
From: haney@moonshine.llnl.gov (Scott W. Haney)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Is there a PD console package for Mac?
Keywords: mac, console, pd
Date: 1 Sep 92 22:14:18 GMT
Organization: Magnetic Fusion Energy - LLNL

[Stuff asking about a PD shell window]

>Vladimir,

>Good news!  I've done this exact thing and I posted info about it many months
>ago but got no response (nobody needed it then, I guess).  What I have done
>is to create a "shell" window that has a simple TextEdit area.  The
>area has a typical prompt printed that the user cannot change.  The user
>is allowed to type, edit, copy, paste, etc into this area and then when
>the user hits the <Enter> key, the program sucks the new text out that the
>user entered.  Processing is not done for the <Return> key;  therefore, the
>entered text may have line breaks in it.

[...]

>I'll gladly make the source available to anybody interested.

>-Brent

Brent,
  Please tell us how to get a copy of your shell package.  I could make
use of this sort of thing today. One question: does it support sessions
longer that 32K (a common limitation for things based on TextEdit)?

Scott
--
-------------------------------------------------------------------------
Scott W. Haney        || Lawrence Livermore N'Lab || The above views are 
haney@random.llnl.gov || P.O. Box 808;  L-644     || mine and not neces-
(510) 423-6308        || Livermore, CA  94550     || sarily LLNL's.
From: sgrenander@NASAMAIL.JPL.NASA.GOV (Sven Grenander)
Newsgroups: comp.sys.mac.programmer
Subject: MemWatcher for 7.x.x ?
Date: 1 Sep 92 20:23:41 GMT
Organization: Jet Propulsion Laboratory

I was wondering if anyone knows of a MemWatcher which works with system 7.
I tried downloading MemWatcher and using it with 7, but with predictable
results - crash and burn! 

MemWatcher supposedly (I never used it under 6.x.x) caught applications
when they wrote to memory outside their own allocations. I think the
memory manager calls were slowed down to about half the speed as a result
of the overhead, not too bad if you are trying to catch an intermittently
broken pointer!

Any system 7 extensions out there which perform the same function ?

Thanks,

-Sven
From: grobbins@Apple.COM (Grobbins)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to increase stack size ???
Date: 2 Sep 92 18:55:00 GMT
Organization: Apple Computer Inc., Cupertino, CA

In article <1992Sep2.154822.12924@novell.com> damurphy@wc.novell.com (Duane A Murphy) writes:
>In article <1992Sep1.145611.1@uwovax.uwo.ca> tschneid@uwovax.uwo.ca writes:
>>...I keep running out of stack space.
>
>I also ran into a stack limitation problem.  Actually the stack is handled 
>differently on different machines.  It is not consistent.  "Small" machines
>have an 8K stack.  "Large" machines have a 24K stack.  There is a low memory
>global "DefltStack" that determines the stack size at startup.  Dont mess 
>with this, it affects everyone.

Color QuickDraw machines do have a 24K default stack.  Be aware that
the Process Manager always increases the partition size by (default
stack - 8K) when launching applications, so the extra 16K stack space
on Color QuickDraw machines does not reduce the heap size under what
would be available on a 68000 machine (but the app's partition is
16K larger than the partition size set by the programmer.)

>pascal Ptr StackPtr(void) = {0x2e8f};	/* MOVE A7, (A7) */
>...
>    SetApplLimit(StackPtr() - STACK_MIN);

This is a bit more 680x0 dependent than source code should be these
days.  Here's a function which uses documented calls to increase the
stack size.

  // Increase the space allocated for the application stack
  //
  // Warning: SetApplLimit always sets the stack to at least as large as the 
  //    default stack for the machine (8K on machines with original QuickDraw,  
  //    24K on machines with Color QuickDraw) so the application partition 
  //    must be large enough to accomodate an appropriate stack and heap

  OSErr IncreaseApplicationStack(Size incrementSize)
  {
    OSErr retCode;
  
    // increase the stack size by lowering the heap limit
    SetApplLimit((Ptr) ((unsigned long) GetApplLimit() - incrementSize));
    retCode = MemError();
    if (retCode == noErr) MaxApplZone();
  
    return retCode;
  }

Do heed the warning given in the comment.  All stack allocation beyond
the default must be compensated for by increasing the partition size in
the SIZE -1 resource.  

This is particularly an issue for faceless background apps, which have
a default stack size of only 2K.  SetApplLimit will grow an FBA's stack
to at least 24K on Color QuickDraw machines, so the partition size
should be larger than that.


Grobbins               grobbins@apple.com

Usual disclaimers apply.

Newsgroups: comp.sys.mac.programmer
From: bpb9204@tamsun.tamu.edu (Brent)
Subject: Re: Is there a PD console package for Mac?
Keywords: mac, console, pd
Organization: Texas A&M Univ., Inc.
Date: Tue, 1 Sep 1992 23:24:24 GMT

haney@moonshine.llnl.gov (Scott W. Haney) writes:
|
| [..shell info deleted...]
|
|Brent,
|  Please tell us how to get a copy of your shell package.  I could make
|use of this sort of thing today. One question: does it support sessions
|longer that 32K (a common limitation for things based on TextEdit)?

OK.  Let me just make a few comments about what exactly I have.

I think "package" is the wrong word; I tend to think of a package as a
library.  What I *do* have is a small application that shows how to do
this type of processing.  The runnable application is only some 8K in size,
and the code is moderately readable.

What it does now is:  lets the user type their info in (whatever it may be).
When the enter key is pressed, the program reads all the text entered after
the prompt.  Everything *before* the prompt is deleted.
What this does is allows the last "command" to remain displayed.  This is
very hard to describe here; you'll have to check out the program.
In other words, the text actually stored in the textedit record is rarely
more than 1K; so yes, the program handles the 32k barrier fine.  This 
"feature" of deleting old data is easily modifiable to store say, the last
16000 characters.

As far as getting it goes, if you would like a copy, please reply via
email.  I will eventually post it to comp.binaries.mac, but it'd be quickest
to email it to anyone who is interested and wants/needs it now.  The
source and executable is only 44k (binhexed).

I'll compile a list of people and zap it out in a few days, OK?

-Brent
Newsgroups: comp.sys.mac.programmer
From: jamille@nyx.cs.du.edu (James Miller)
Subject: MacHack Contest Winners
Summary: Will MacHack winners become available to others?
Keywords: MACHACK MAC CONTEST
Organization: University of Denver, Dept. of Math & Comp. Sci.
Date: Fri, 4 Sep 92 17:43:18 GMT

I read about the winning entries of this years MacHack contest (I didn't
get to attend this year) recently and salivated. Does anyone know if any
of the programmers plan to release their programs (and maybe even source)
to the shareware or freeware communit, as has been done in years past?

--James
From: gt5870c@prism.gatech.EDU (Noah White)
Newsgroups: comp.sys.mac.programmer
Subject: THINK C EOF Quest.
Date: 27 Aug 92 04:54:37 GMT
Organization: Universal Exports


   I have a program which takes input from the keyboard and terminates with
an EOF (control-d) yet if I type gggggcontrol-d it drops the curser down to the
next line without terminating, I have to hit a control-d again to get it 
terminate. However if I type gggg then a return then control-d it terminates.
Could somone please let me know why this is so? Does this mean that if I were
to give this a text file as input it would have to be terminated by 2 
control-d's or a carriage return control-d? BTW on the UNIX system it only took
one control-d.

The code is below:

#include <stdio.h>

main()
{
	long nc;
	
	nc = 0;
	while (getchar() != EOF)
		++nc;
	printf("%ld\n", nc);
}
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Re: Re: TN 31 relevancy vs sys 6.0.x
Date: 23 Aug 92 19:57:20 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

Well, I owe you all a bit of an apology,  seems like the ninconpoops at
apple decided to obsolete the version of TN 31 which I have on hand, and
replaced it with that dogcow crap which has been providing entertainment
for so many in this forum this past month.  I had TN 31 brought to my
attention by a question on TCL-Talk, and found the obsolete note in my
binder, and took it at face value, not making the connection to the clarus
version.

Seems that apple could do us all a favor, and declare april to be a
vacation month.

Sorry for the wasted bandwidth.

BTW, thanks to John B. Matthews for his mail which lifted the fog, and as
to the answer you've all been waiting for, yes, its (now) all right to call
TEStyleInsert on in-active TErecords (according to JBM).
--

Dana S Emery <de19@umail.umd.edu> | "Novo, de Novo, 
                                  |    de novo, de no-o-o-o-o---, 
                                  | Novemba come an' dey gonna go home."
Newsgroups: comp.sys.mac.programmer
From: peterbak@microsoft.com (Peter Bako)
Subject: Formatting a disk in the background
Date: 31 Aug 92 22:30:46 GMT
Organization: Microsoft Corp.
Keywords: background, disk formatting


I have a small application that automatically formats disk, but
can only do so while it is in the foreground.  How can I make
the program be able to format a disk in the background?  Either
by running the program in the background, or to move it there once
it has started its process.

Thanks,

Peter

-- 
(*)-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-\/-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+(*)
(   UUCP:         peterbak@microsoft  ||   Is this all that I am?  Is there   )
(   CompuServe:   71170,1426          ||   nothing more?    - V'ger           )
(*)-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-/\-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+(*)