HDTenEightyP/NetNews huggingface dataset:
From: cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MacTCP (UDP) questions
Date: 20 Aug 1992 14:12:44 GMT
Followup-To: comp.sys.mac.programmer
Distribution: comp
Organization: Academic Computing

In article <2541@tau-ceti.isc-br.com>, jimc@tau-ceti.isc-br.com (Jim
Cathey) wrote:
> 
> In article <1992Aug19.173303.14543@vax5.cit.cornell.edu> tcd@vax5.cit.cornell.edu writes:
> >     I am working on an application that needs to transfer a continuous,
> >high volume stream of data from one Macintosh to another.   Because we
> >can tolerate some amount of data loss/corruption it seemed like UDP
> >would be a better choice than TCP.
> 
> Mac-to-Mac?  Does anybody remember Appletalk?  Y'know, the networking
> protocol built into _every_ Mac since '84?  Why not use that?
> 
> Enquiring minds want to know...
> 

Perhaps it's one of those "facist" networks that only allows TCP/IP
traffic? Like the Internet. :) Most big networks these days aren't built on
LocalTalk cables and for Ethernetted Macs, MacTCP is usually easier to
write code for than AppleTalk. ADSP contains a lot of TCP/IP functionality,
but that does no good in an IP-only environment.

--_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Chuck Shotton                      |    
Ass't Director, Academic Computing |       "This space for rent."
UT Health Science Center Houston   |  
cshotton@oac.hsc.uth.tmc.edu       |         
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
From: stern6@husc10.harvard.edu (Michael Stern)
Newsgroups: comp.sys.mac.programmer
Subject: how many monitors? (FAQ?)
Date: 19 Aug 92 19:24:04 GMT
Article-I.D.: husc10.stern6.714252244
Distribution: na

How do I determine how many monitors are hooked up at any given time?
As a bonus question, how do I determine the size, bit depth, etc. of
monitors other than the 'main' one?

Thanks greatly for your attention.
Stern

******************************************************************************
         Michael Stern        *  "I love children, especially when they cry,
                              *   for then someone takes them away."  
   stern6@husc.harvard.edu    *                         -Nancy Mitford
******************************************************************************
From: mlanett@Apple.COM (Mark Lanett)
Newsgroups: comp.sys.mac.programmer
Subject: Re: converting the vRefNum and DirID to just a vRefNum...
Date: 19 Aug 92 23:35:13 GMT
Distribution: usa
Organization: Apple Computer Inc., Cupertino, CA

eric_gorr@coglab_psych.uoregon.edu (Eric Gorr) writes:

>I have a vRefNum and a DirID and I want to use these two numbers so that I
>can have just a vRefNum to be used by SetVol.  

>How can I do this?

HSetVol (volName, vRefNum, dirID)
-- 
Have a bajillion brilliant Jobsian lithium licks.
Mark Lanett, NOT speaking for anyone. Personal opinion only.
From: mcmath@csb1.nlm.nih.gov (Chuck McMath)
Newsgroups: comp.sys.mac.programmer
Subject: Re: HELP, PLZ:  MPW tool bums out when loading HUGE resource map
Date: 14 Aug 92 15:05:38 GMT
Followup-To: comp.sys.mac.programmer
Distribution: comp
Organization: MSD

In article <COLIN.92Aug14091537@wrangel.Cayman.COM>, colin@Cayman.COM
(Colin "Atilla" Steele) wrote:
> 
>     (stuff deleted)
> 
> It works fine, with one small problem.  It pukes on my ".proj" file.
> After some investigation, it looks like the problem is that the
> resource map is too big - the file (map) is 2.5 Mb.  Since MPW tools
> run in a conjured-up C run-time environment, inside MPW, when the tool
> loads the 2.5 Mb resource map, all hell breaks loose.
> 
Would it help to try to use Multifinder temporary memory for this?

chuck

|- chuck mcmath - mcmath@csb1.nlm.nih.gov - MSD, Inc. ------------|
|- National Library of Medicine - National Institutes of Health --|
|- Bethesda, MD 20894 -  !aixelsyd evah uoy siht daer nac uoy fI -|
|- "Hey batter, hey batter, hey batter, swing" - Anon. -----------|
Xref: sparky comp.sys.mac.programmer:14287 misc.education:3177 soc.college:3655
From: pfaffman@pilot.njin.net (Jay Pfaffman)
Newsgroups: comp.sys.mac.programmer,misc.education,soc.college
Subject: Re: Computer Science Programs
Date: 20 Aug 92 21:27:32 GMT
Followup-To: comp.sys.mac.programmer
Organization: Rutgers Univ., New Brunswick, N.J.

borders@ms.uky.edu (Johnny Borders) writes:

[stuff about CS grads not knowing how to turn on a PC or print envelopes
on a NeXT]
Perhaps strangely, knowing how to turn on a PC or use software isn't really
what CS is about.  It's about how to use machines to most efficiently 
manipulate information.  

> I took a course in graphics which was nothing but introduction
>to X Windows. If that's what it was, why didn't they call it that? Sheesh.

If it was how to use X-windows from a user's standpoint, you have
valid complaint.  If it talked about how it was designed & why it was
designed that way, then you did better than I did.  My graphics course
covered how to use a FORTRAN graphics library on a Tektronix terminal.

>I'm sure people that are really into computers do well, but those that go into
>computers with no preconceived notions or prior education/training/experience
>in computers will get a degree in C.S., virtually clueless about how the

I felt that way too.  Now those people make 3 times what I do &
probably *still* don't know what a printer cable looks like. (I'm a
high school teacher now & wonder if I'd rather play with computers for
more money than I get for playing with kids. . .)

>Just an opinion.. <hopefully no one from UK reads this!> 
Uh.  I think there's a FAQ that talks about this.  :-)
-- 
Jay Pfaffman, Computer Coordinator        pfaffman@pilot.njin.net
Dwight-Englewood School, 315 E. Palisade Ave.                      
Englewood, NJ  07631-0489                 201-569-9500
From: bowman@reed.edu (Eric Bowman (bobo))
Newsgroups: comp.sys.mac.programmer
Subject: Re: E.T.O. #8 and Incremental Linker
Date: 13 Aug 92 18:16:43 GMT
Organization: Reed College, Portland, OR

In article <316@farallon.farallon.com> neal@farallon.com (Neal Trautman) writes:
>Has anyone found the "New Memory Based Incremental Linker"
>on E.T.O. #8??

Methinks it ain't there.


bobo
bowman@reed.edu
Newsgroups: comp.sys.mac.programmer
From: cchen@silver.ucs.indiana.edu
Subject: HELP: how can I ...
Organization: Indiana University
Date: Fri, 21 Aug 1992 10:48:25 GMT

I am new to this THINK C programming stuff and I have two questions
that might be obvious to some of you seasoned MAC programmers:

1. How can I find out what kind of video card is installed through my
   program?

2. How can an application getthe document name/path through which the
   application is invoked?

THANKS in advance!!

.
From: ses@cmns-sun.think.com (Simon Edward Spero)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ***BASIC PROGRAMMING***
Date: 19 Aug 92 19:37:26
Organization: What's your clearance, citizen?
NNTP-Posting-Host: cmns-sun.think.com
In-reply-to: csandy@cybaswan.UUCP's message of 19 Aug 92 10:48:14 GMT

 In article <952@cybaswan.UUCP> csandy@cybaswan.UUCP (ap.parkman) writes:

   I'm not religous, but it's going to take more than we earthly programmers
   can manage to get code to run BEFORE there is any power to the machine!
   ( or can this be done in Assembly!!! ). Anyway I'll have a crack at it:

... Shehechionu vekiymanu vehigianu lazman haze :-)

If you read Inside Macintosh VI, Chapter 31 "The Power Manager", you'll
find details of (suprise,suprise) the power manager. One of the jobs of the
power manager is to maintain the wakeup timer. This can be manipulated by
the SetWUTime and GetWUTime functions. 

Not all macintoshes support these functions; the only ones I know of are
the portable and the Powerbook 100. I don't know whether the new powerbooks
can do it or not.


Simon
--
-----
Guest account at TMC 	|	Just Another  WAIS Hacker | DOD# 0612
Newsgroups: comp.sys.mac.programmer
From: zimerman@phoenix.Princeton.EDU (Jacob Ben-david Zimmerman)
Subject: How do I save a window location between uses of the app?
Originator: news@nimaster
Organization: Princeton University
Distribution: usa
Date: Fri, 14 Aug 1992 21:25:51 GMT

Hi all!  I'm trying (still :-)) to teach myself Mac GUI programming
using C. (actually I'm learning C concurrently, but...) In any case, in
one of my little educational projects, I've run up against a question.
Suppose I have a window that I can move around the screen freely.  Now
suppose that I want to save the lcoation of the window at the time of
exiting the app so that the next time the app is launched, it comes up
where it was.  How would I do that?  Let me tell you what I tried, and
it didn't appear to work...I tried getting a handle to the window using
RecoverHandle( <the windowptr> ) and then using that handle to call
CHangedResource and WriteResource, after first making sure that the
resource file was set to my app's file ref num.  BUt nothing happens.
Is this because whatever is pointed to by a WindowPtr is not the same as
what's stored in the resource file?   If that's the case, what should I
do?  Thanks for any help!

-JBZimmerman!
p.s. please respond by email as I can't possibly keep up with all the
groups I really *should* read, much less those that I *want* to read.
:-)  Thanks!

-JZ


-- 
___________           |-Is that Scotch over there?  Hold everything.
     ||               |                -Sean Connery, The Russia House
||   ||acob Zimmerman!+> <zimerman@phoenix.Princeton.EDU> INTERNET 
 \===/                |  <zimerman@PUCC>                  BITNET
From: drc@claris.com (Dennis Cohen)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Color Pascal programming
Date: 14 Aug 92 21:22:04 GMT
Organization: Claris Corporation, Santa Clara CA

js43+@andrew.cmu.edu (James William Stepanek) writes:

>I have been trying to make a program which shows 256 color graphics using
>Think Pascal and have gotten nowhere. I have Inside the Macintosh V, but I can't make heads or tails of it. The programming books are too old to feature any
>color. If anyone could send me some code or give me the name of a good book
>on the subject(include isbn is possible) I would really appreciate it.
>Thanks in advance.
>James Stepanek
>esp

I would strongly suggest ftp'ing (or otherwise obtaining) the source to
Wayne Rasband's NIH Image program from alw.nih.gov -- it is written in
Think Pascal and is a color graphics editing program (lots of painting
tools).  From an Object-Oriented perspective, you should look at the color
painting program which comes with THINK Pascal.


-- 
Dennis Cohen
Claris Corp.
 ****************************************************
Disclaimer:  Any opinions expressed above are _MINE_!
Newsgroups: comp.sys.mac.programmer
From: sblack@oracle.uucp (Steven T. Black)
Subject: Re: THINK Debugger Question
Keywords: THINK, debugger, Apple Events
Organization: Oracle Corporation, Redwood Shores CA
Date: Tue, 18 Aug 1992 07:04:01 GMT
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

In article <steve.herman-130892173316@hermasj.msfc.nasa.gov.> steve.herman%express@freedom.msfc.nasa.gov (Steve Herman) writes:
>
>  Is there a way to run in the THINK C debugger and break on an Open
>Document AppleEvent (or any other apple event for that matter)?
>

In a word, No.  

When the debugger breaks, it dumps any pending AEvents, leaving
you wondering what is going on.  The only work around I've found is to put in
some extra variables to keep the result codes generated by the AEvent
processing, and then set a breakpoint AFTER the AEvent has been processed.
You can then examine the result codes to see what and if anything is going
wrong.  

Yes, it would be nice if you could just break anywhere and trace the
execution, but if programming was that easy, then were would be the challenge?

If anybody knows of another work-around, my ears remain open.

Good Luck,

Steven T. Black

"This .sig intentionally left blank"

Newsgroups: comp.sys.mac.programmer
From: Jeff E Mandel <mandel@tmc.tulane.edu>
Subject: Much-suffering Kiwis (WAS: ETo #8)
Nntp-Posting-Host-[nntpd-29653]: mandel.anes.tulane.edu
X-Xxdate: Wed, 12 Aug 92 16:10:27 GMT
Organization: Tulane University School of Medicine
X-Useragent: Nuntius v1.1.1d7
Date: Wed, 12 Aug 1992 15:10:34 GMT

In article <1992Aug12.135441.9857@actrix.gen.nz> ,
Bruce.Hoult@bbs.actrix.gen.nz writes:
>> Well, naturally, the Kiwis have it first. After all, they're across the
>> international date line.
>
>Yeah, but our messages get held up in customs for 24 hours in Honolulu to
>compensate...   (Probably going round and round on the Wiki Wiki bus)

Well, the trick is to source-route your mail through someplace like
Canada, as the line of cars generally gets through much faster than the
baggage manglers in Hawaii can transfer your packets :-).

Jeff E Mandel MD MS
Associate Professor of Anesthesiology
Tulane University School of Medicine
New Orleans, LA

mandel@vax.anes.tulane.edu
From: zben@ni.umd.edu (Charles B. Cranston)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ETO #8 - Problems With MacApp 3.0.1 and Latest MPW
Date: 19 Aug 92 21:21:34 GMT
Followup-To: comp.sys.mac.programmer
Organization: UM Home for the Terminally Analytical

In article <1992Aug19.201204.23405@udel.edu>,
gray@brain.asel.udel.edu (John Gray) wrote:
 
> I just recieved ETO #8.  After installing MacApp 3.0.1 and the
> MPW from the Latest MPW folder into my system I proceeded to build
> a library with the ModelFar option.  I could not AutoBuild MacApp. 
> When Rezzing MacApp.r it failed when trying to compile a aedt resource.
> After poking around for a while I discovered a that in the MPW Types.r
> file that there was a comment that the aedt resource type is obsolote
> and has been removed.  Has anyone else tried to Autobuild MacApp 3.0.1
> with the latest MPW.  Anyone know a simple fix that is safe.  I don't
> really know what the resource does so I am a bit reluctant to just
> delete it out of MacApp.r.

Didn't you get a yellow piece of paper with the mailing that said
there was a missing 'aedt' resource template and giving you the
definition to type in???

(There was also a green piece of paper giving two lines to be added
to the CPlusTESample.Make file so the sample would make cleanly).

Needless to say, ETO 8 arrived here last Friday.  Needless to say
this is a "was it plugged in?" trouble report...

Or do we say RTFRDTWYTAYA?  (Read The Fine Release Document That Was
Yellow To Attract Your Attention!  :-)

zben@ni.umd.edu     -KA3ZDF
From: fzchen@othello.ucdavis.edu
Newsgroups: comp.sys.mac.programmer
Subject: CDEF Sample Source Code
Date: 20 Aug 92 22:36:42 GMT
Distribution: comp.sys.mac.programmer
Organization: Computing Services, UC Davis

Howdy!  I'm trying toolearn the Mac Toolbox.  I'm writing a quick
and dirty paint program in C++ to get a feel for using the toolbox.  
I'd like to implement a palette like standard paint programs.  I would
also like the flexibility of being able to give the buttons in the palette
special behavior (like a popup palette).  To do this, I think I should
make the palette into a collection of custom controls.  

Can anybody help me locate some sample CDEF source code, or suggest
a better way to do this?  Please e-mail me any replies.  Thanx.

MeatHead
Newsgroups: comp.sys.mac.programmer
From: jwagner@news.weeg.uiowa.edu (Joseph F. Wagner)
Subject: Experience with Quark Xtensions?
Organization: University of Iowa, Iowa City, IA, USA
Date: Fri, 21 Aug 1992 13:08:27 GMT

Does anyone out there have experience writing Xtensions in C for Quark Express?
If so, I'd like to hear from you. How easy/difficult is it? I've got a lot of
C experience but little Mac specific programming (i.e. toolbox). Looking over
the developer's guide for Quark, it looks as if most of the functions are not
toolbox, but rather specific to Quark.

Thanks inadvance,
Joe

-- 
---------------------------------------------------------------------------
| "I'm not an actor,         | Joseph F. Wagner - joseph-wagner@uiowa.edu |
|    but I play one on TV"   | University of Iowa, Iowa City, Iowa USA    |
Newsgroups: comp.sys.mac.programmer
Subject: Re: death of a global variable...
From: russells@ccu1.aukuni.ac.nz (Russell Street)
Date: Fri, 14 Aug 1992 00:57:36 GMT
Organization: University of Auckland, New Zealand.
Keywords: programming help, weird bug?

peterbak@microsoft.com (Peter Bako) writes (well sort of):

> ... why do things get trashed ....
...
>MenuHandle	theMenus[NumOfMenus];
>DrawRec		theImage;
...
>During the setup look the MenuHandle array gets filled in with 4 handles
...
>Now here is the catch!  By watching the value of theMenus[4] (my last menu)
							^^^^^
Remember in C arrays indicies start at 0 and go to size-, so that your
*last* menu should be theMenus[3], not theMenus[4].
From: Mary.Hicks@p0.f222.n125.z1.FIDONET.ORG (Mary Hicks)
Newsgroups: comp.sys.mac.programmer
Subject: One More Thing (Basic Language)
Date: 13 Aug 92 20:01:35 GMT
Organization: FidoNet node 1:125/222.0 - Macademe/Emma, San Francisco CA

Please send me any/all basic code that you can dig up.

thanks!

 

Mary Hicks



--  
Mary Hicks - via FidoNet node 1:125/555
    UUCP: ...!uunet!hoptoad!kumr!fidogate!222.0!Mary.Hicks
INTERNET: Mary.Hicks@p0.f222.n125.z1.FIDONET.ORG
From: Mary.Hicks@p0.f222.n125.z1.FIDONET.ORG (Mary Hicks)
Newsgroups: comp.sys.mac.programmer
Subject: ***BASIC PROGRAMMING***
Date: 13 Aug 92 19:57:13 GMT
Organization: FidoNet node 1:125/222.0 - Macademe/Emma, San Francisco CA

Im doing a little basic programming (Basic Language), in hopes to make 
myself a useful little utility. 

 

What I want to do is make a basic application that will automatically 
quit all open applications, and then shut the computer down, when Im not 
home. This would be very useful to me, when my mac is recieving faxes 
all day, when Im not there,. I want to be able to cut it off, at a 
certain time everyday. 

 

Also, can someone send me some basic code that will let my mac turn on 
automatically everyday at a certain time?



--  
Mary Hicks - via FidoNet node 1:125/555
    UUCP: ...!uunet!hoptoad!kumr!fidogate!222.0!Mary.Hicks
INTERNET: Mary.Hicks@p0.f222.n125.z1.FIDONET.ORG
From: scott@mcl.ucsb.edu (Scott Bronson)
Newsgroups: comp.sys.mac.programmer
Subject: How to describe a keypress?  Should be easy...
Summary: How do you describe a keypress?
Keywords: Keyboard keypress
Date: 22 Aug 92 01:43:55 GMT

I have a headache because I've been beating my head into this wall for the
past two days.  I took on the task of writing an INIT that will launch an
application at the press of a user-specified hot key.  The INIT and cdev
are working great, and everything is perfect EXCEPT:

How do you describe a keypress?  I can't use char codes, as keyboards
change too much.  Can't use key codes, as there are duplications (esc
and clear, for example).  From the volumes that I've read looking for
the answer, I can see that there's a KCHR resource and a _KeyTrans trap
that I'd be interested in, but how do I use them?

How do I get my application to display "Shift-7" when the user types "&"?
How do I get it to work with all Macintosh keyboards?  Thanks for any help.

	- Scott

Incidentally, I've isolated the routine in Norton's KeyFinder that does
the translation for them.  It's 53 pages of raw assembly source involving
a huge amount of comparisons to a particular char code.  That's when I
decided that there MUST be an easier solution.
From: jstevens@crick.ssctr.bcm.tmc.edu (Jason Philip Stevens)
Newsgroups: comp.sys.mac.programmer
Subject: What _is_ a floating window, anyway?
Date: 13 Aug 1992 17:08:24 GMT
Reply-To: jstevens@crick.ssctr.bcm.tmc.edu (Jason Philip Stevens)
Organization: Baylor College of Medicine, Houston, Tx
Originator: jstevens@crick.ssctr.bcm.tmc.edu


The subject says it all.

-jps


-- 
Jason Stevens			Internet:  jstevens@bcm.tmc.edu
Network User Services		Voice:  (713) 798-7370
Baylor College of Medicine	Opinions expressed are mine alone.

Newsgroups: comp.sys.mac.programmer
From: eric@homebase.vistachrome.com (Eric Brunson)
Subject: Re: Finding number of strings in a STR# resource
Organization: Vista-Chrome Incorporated
Date: Mon, 17 Aug 1992 13:22:07 GMT

erh0362@tesla.njit.edu (Elliotte Rusty Harold) writes:


>	I know the first two bytes of a STR# resource contain the number of
> strings in the resource, but is there a Toolbox call to read that 
>information?  Alternately can anyone suggest a hack for getting at that 
>info?  Should I just call GetResource and cast the resulting handle to 
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>(short **)? 

You are correct, Sir!!!!

>Elliotte Rusty Harold		Department of Applied Mathematics
>elharo@m.njit.edu		New Jersey Institute of Technology
>erh0362@tesla.njit.edu		Newark, NJ 07103
-- 
Eric "Ra" Brunson      |
eric@vistachrome.com   |     These opinions are mine alone, but
brunson@math.fsu.edu   |   they could be yours for a low monthly fee.  
Newsgroups: comp.sys.mac.programmer
From: dmoney@magnus.acs.ohio-state.edu (Dean R Money)
Subject: THINK C Question... a beginner's blues...
Keywords: apple menu, desk accessories
Organization: The Ohio State University
Date: Thu, 13 Aug 1992 01:36:40 GMT

I'm just learning how to program on the Mac, and am having a problem.
I can't seem to get my programs to open desk accesories correctly. I'm
using OpenDeskAcc(accName). The interesting thing is that the desk
accessory does actually open, as soon as I close my program. I'm using
a Mac IIci and am running System 7. I know the answer to this must be
obvious. 

If anyone can help me, please reply to DMONEY@MAGNUS.ACS.OHIO-STATE.EDU.
I've been stuck on this for a week, and have started from scratch several
times.

Dean Money
From: grobbins@Apple.COM (Grobbins)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Left vs Right Modifier keys -- HELP
Date: 16 Aug 92 10:42:13 GMT
Organization: Apple Computer Inc., Cupertino, CA

In article <1992Aug15.202955.20518@cs.yale.edu> pittenger-laurence@CS.YALE.EDU (Laurence Arthur Pittenger) writes:
>What do I need to do to get distinguishable left & right modifier key
>flags?

You'll need to issue ADB commands to change the device handler ID of an
extended keyboard.  This is mentioned on page 193 of Inside Macintosh
volume V.  The ADB chapter of that volume (along with the "Space Aliens
Ate My Mouse" Tech Note) has the details on ADB programming.

Grobbins               grobbins@apple.com

Usual disclaimers apply.
From: schoen2@husc10.harvard.edu (Michael Schoen)
Newsgroups: comp.sys.mac.programmer
Subject: will Think ever be C++ ?
Date: 19 Aug 92 06:27:22 GMT
Article-I.D.: husc3.1992Aug19.022723.14879
Organization: Harvard University Science Center

Does anyone out in netland know if Symantec is planning to make Think C
C++ compliant?

I find Think's subset of C++, and arbitrary naming differences to be very
annoying.

Thanks for any info. I'd like to work in Think, but MPW's looking good from here


Michael