HDTenEightyP/NetNews huggingface dataset:
From: thomasc@dragonfly.wri.com (Thomas Chin)
Subject: Re: How do I sleep w/o using any CPU time
Organization: Wolfram Research, Inc.
Date: Tue, 14 Jul 1992 16:15:50 GMT

>In article <a684a397@spicewood.uucp> David L. Crow, crow@spicewood.uucp
>writes:
>>    Basically, I guess that I just want to know the best way to put
>>  my application to sleep for a given amount of time.

With system 7 process manager, you can have a time manager task which do
a 'WakeUpProcess', install the timer, go into your yielding 'WaitNextEvent'
with maximum sleep ticks and empty mask, you'll get a NULL event when the
time is up!

-Tom
Newsgroups: comp.sys.mac.programmer
From: tim@maths.tcd.ie (Timothy Murphy)
Subject: Getting file dates on the Mac
Summary: How can I get this info, preferably with Think C?
Keywords: Macintosh file date creation modification
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Date: Wed, 29 Jul 1992 17:21:36 GMT

I'd be grateful if some guru could tell me how
a program can discover the time of creation and modification
of a file, preferably with Think C.

The information is given when you "Get Info" on the file,
so is evidently stored somewhere,
but I could find no mention of it anywhere in "Macintosh Revealed".

-- 
Timothy Murphy  
e-mail: tim@maths.tcd.ie
tel: +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
From: neath@brazil.psych.purdue.edu (Ian Neath)
Newsgroups: comp.sys.mac.programmer
Subject: Summary: WindowPtrs, CWindowPtrs, and Think C:  Where are my colors?
Summary: Beware the GrafPtr!
Date: 30 Jul 92 16:23:59 GMT
Organization: Purdue University

Thanks to all who responded.  First, NewCWindow does return a WindowPtr.
IM V is slightly incorrect in that it says a CWindowPtr is returned.
This is true, but you call it a WindowPtr:  the system knows what it 
really is.

Second, I had an alert appear between SetPort( myWindow ) and the
RGBBackColor call.  This caused the system to think myWindow was
a GrafPtr and not a CGrafPtr.  Rearranging GetPorts and SetPorts
did the trick.

Thanks again.

- Ian

--
    Ian Neath, PhD     | There are four kinds of people in this world:
neath@psych.purdue.edu |    cretins, fools, morons, and lunatics.
 neath@purcvvm.bitnet  |                       - Umberto Eco
From: dowdy@apple.com (Tom Dowdy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How do I sleep w/o using any CPU time
Date: 20 Jul 92 15:15:13 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <1992Jul13.150027.4926@usenet.ins.cwru.edu>, yjc@po.cwru.edu
(Jerome Chan) wrote:
> 
> In article <0105011F.8acslo@dragon.enigami.mv.com> Cory Kempf,
> cory@enigami.mv.com writes:
> >The way to give up the CPU is to call WaitNextEvent, passing it a
> >large number of the 3rd parameter (time that WNE can give away). 
> >I usually use 50 or so (there was this bug a while back...).  By putting
> >this inside a while loop that checks the tickcount, I give away as
> >much CPU as I can.  
> 
>   Hmm. But won't we be losing events if we do this? If windows are being
> displayed and the user switches to another application under
> multi-finder, won't we lose the the Update Event? Or is that the
> Resume/Suspend Event?

Actually, you won't be losing events - however, there is a potential
serious
problem with calling WNE this way all of the time.  Note that in *this*
particular case, the original poster (long since gone from this discussion,
I would fear) wasn't going to have any windows open - he was simply running
until an event happened, at which time a dialog box would be brought
up (no doubt saying something such as "Your rendering is complete").

However, if you *do* have windows open, and fail to respond to update
events, you will see very sluggish performance on your Mac as the
process manager attempts to give you updateEvents over and over again.
Eventually, when it sees some very large number of update events go
by for the same window, it will assume you are clueless and clear
the updateRgn itself - however, this takes almost a minute and a half.

The thing to learn is - always handle update events, and always call
BeginUpdate()/EndUpdate() when handling them.

 Tom Dowdy                 Internet:  dowdy@apple.COM
 Apple Computer MS:81KS    UUCP:      {sun,voder,amdahl,decwrl}!apple!dowdy
 20525 Mariani Ave         AppleLink: DOWDY1
 Cupertino, CA 95014       
 "The 'Ooh-Ah' Bird is so called because it lays square eggs."
From: speednut@csource.oz.au (mark jose)
Newsgroups: comp.sys.mac.programmer
Subject: Zilog Serial Chip
Date: Fri, 24 Jul 92 18:58:03 +1000
Reply-To: speednut@csource.oz.au
Organization: Unique Computing Pty Ltd, Melbourne, Australia

 
 
        I wonder if some one can supply me with the address of
        Zilog. I wish to obtain a copy of the Zilog 8530 SCC
        serial chip technical manual. Alternatively, any good
        reference books on that same subject would also be handy.
 
        Please email me at speednut@csource.oz.au

.........................................................
mark jose
speednut@csource.oz.au  Unique Computing Pty Ltd, Melbourne, Australia
The opinions expressed above are that of the author only.
Newsgroups: comp.sys.mac.programmer
From: cpackard@mathworks.com
Subject: MPW tool called rShell
Followup-To: comp.sys.mac.programmer
Summary: MPW tool called rShell
Keywords: MPW rShell
Organization: The Math Works, Inc.
Date: Fri, 31 Jul 1992 14:50:45 GMT




A long time ago I got an MPW tool called rShell. The accompanying
README says it was written by Derek White, Apple Computer, Inc. ATG
East/Columbia. The description of the tool is:

	rShell is an MPW tool that sends commands to a Unix host, and can
	upload/download text files.  It requires a Macintosh with EtherTalk
	and MacTCP installed. rShell allows users of MPW to automate simple
	Unix tasks as part of an MPW task.  For instance remote YACC service,
	table downloads, backups, etc.  rShell supports the Commando
	interface.
	
But, when I try it, I get confusing errors: 
rshell -Host rhino -User jabberwo -password *** "ls" 
### rshell - "-Host" is not an option.
### rshell - "-User" is not an option. 
### rshell - "-password" is not an option. 
### rshell - Too many parameters were specified. 
#Usage - rshell [-f|-b|-r target] [-q] [-y|-n] [-c number] [-k number]
[-sync] [command]

 These errors make me think the Readme does not go with the tool!
Anyone know of a current rShell, or other tool, that does the above
advertised communication with Unix?

Please send replies thru email at the address below.

Thanks lots,
Chuck Packard
cpackard@mathworks.com
From: pmcilroy@srd.bt.co.uk (Paul McIlroy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: THINK C 5.0 Code overflow
Date: 28 Jul 92 10:23:50 GMT
Reply-To: pmcilroy@srd.bt.co.uk
Organization: British Telecom

Christ Leijtens (christ@cs.few.eur.nl) writes 
>  Is there *any* way to get around the 32K bound for
>  the  code and data, so we can continue porting the 
>  program to the Macintosh?

If no individual array or structure is bigger than 32K 
compile all the declarations separately.  I know this sounds 
daft, but it works.

e.g. if you have

10_byte_struct_type a[3000];
12_byte_struct_type b[2000];
16_byte_struct_type c[1500];

then together these will cause a code overflow, but 
individually they are OK.

So, split the three declarations into three .c files and 
compile them separately (with the far data box checked in 
the Set Project Type dialog). Then in the main program 
declare a, b and c as external arrays.  I have done
this myself and it works well.
 
If all else fails you can use malloc as others have 
suggested, using static pointers instead of static arrays, 
but be careful with linking.  If you have
	extern 10_byte_struct_type a[3000];
in one file it will not link to
	10_byte_struct_type *a;
in another.  You will need to change ALL your array 
declarations to pointers, in all your files, which is really 
tedious.

Paul McIlroy (pmcilroy@bt-sys.bt.co.uk)
Newsgroups: comp.sys.mac.programmer
From: Eric C. Kofoid <kofoid@bioscience.utah.edu>
Subject: can MacOberon run on SE/30
Organization: Dept. Biology, University of Utah
X-Useragent: Nuntius v1.1b1
Date: Wed, 22 Jul 92 19:12:30 GMT

Several months ago, I downloaded MacOberon, crashed my system several
times trying to run it, and eventually threw it away.

Recently, a newer port appeared on the archives (2.4(0)). Again, I tried
it with little success. The expected screen size is a large part of the
problem. I can't fault anybody who goes to the time and trouble of
porting something to the Mac for free. However, the installed base of
Macs with small screens is enormous, and all it takes is a quick look at
screenBits.bounds to decide where to put your windows and dialogs. 

Although MacOberon doesn't crash quite as readily now as before, it's
still utterly useless on an SE/30, as only the left half of each text
line can be read. In addition, several project windows clutter the right
half of the screen. I'm sure there is a way to move or hide them, but one
can't do this without reading the directions, which the projects and the
right boundary of the monitor conveniently hide!

Has anyone a workaround? Is this all wasted effort anyway? I'm reluctant
to spend to much time on an application which puts dotted nomenclature
into the menu items, including such priceless synonyms as "Clipboard.cut"
for "Cut". If this is where it starts, can it get any better?

Cheers,

Eric.
From: stevec@Apple.COM (Steve Christensen)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Powerbook Battery Question
Date: 25 Jul 92 02:30:12 GMT
Organization: Apple Computer Inc., Cupertino, CA

mar@ocf.berkeley.edu (Michael A. Ramirez) writes:
>I am wondering how I can get rid of the dialog boxes warning me that the
>power is low on the Powerbooks. Are these dialog boxes in the ROM or
>in the System file? Any help or comments would be appreciated.

I assume from your question that you don't mind if your PowerBook will
suddenly go to sleep without notice in order to preserve the state of
its memory (and thus your data)?

OK, if so, you can find the strings it uses to warn you in the System File.
If you remove them, you won't get any warnings, the PowerBook will just go
to sleep...

steve

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  Steve Christensen			Never hit a man with glasses.
  stevec@apple.com			Hit him with a baseball bat.
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Quick TCL gDesktop question
Date: 23 Jul 92 16:45:36 GMT
Organization: Kalamazoo College

rla20@DUTS.ccc.amdahl.com (Roger Allen) writes:
>Quickie:
>For multi-monitor systems, does gDesktop->bounds include the main device
>only or some rect that bounds all of the screens.

All the screens.


This is despite the comment in ThC's TCL 1.1's CDesktop::IDesktop:

	/* Make the port rectangle coincide with the bounding box of	*/
	/* the gray region (entire screen excluding the menu bar). ...	*/
grayRgn = GetGrayRgn();
bounds = (**grayRgn).rgnBBox;

The parenthetic should read "(all screens excluding the menu bar)".


>Hope it takes less time to answer than it did to draw that.

Probably...  :-)
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 I'm having a lot of trouble seeing how a request that you "shut up" can be
 interpreted as "looking to other people for validation."      - Tim Pierce
Newsgroups: comp.sys.mac.programmer
From: sgrenander@NASAMAIL.JPL.NASA.GOV (Sven Grenander)
Subject: Re: yacc for Mac
Organization: Jet Propulsion Laboratory
Date: Wed, 22 Jul 1992 21:04:54 GMT

In article <1992Jul22.192944.22829@mksol.dseg.ti.com>, joel@dseg.ti.com (Joel Quejada) writes:
> 
> Is there a yacc-type program for the Mac?
> 
> ---
> ===============================================================================
> |      Joel A. Quejada                   |    E-MAIL:    joel@dseg.ti.com     |
> |      UNIX Systems Analyst              |    Phone :     (214) 575-6014      |
> |        Texas Instruments, Inc.         |====================================|
> |        6620 Chase Oaks Blvd.           |                                    |
> |        P.O. Box 869305, MS 8502        | T H I S  S P A C E  F O R  R E N T |
> |        Plano, Texas 75086              |                                    |
> ===============================================================================
> 
> 
> 
Yes,

MACYACC by Abraxas Software, Inc., (503) 244-5253 or fax (503) 244-8375.

I know nothing about the quality of the s/w (I am waiting for a demo copy)
so I would like to hear about anyone else's experiences with the s/w and
the company.


-Sven
Newsgroups: comp.sys.mac.programmer
Subject: Re: Icon creation
From: stanger@otago.ac.nz (Nigel Stanger)
Date: 31 Jul 92 21:16:28 +1300
Organization: University of Otago, Dunedin, New Zealand

srao@quads.uchicago.edu (Shanta Rao) writes:
> I am unable to turn an application into Icon...
> tried the following....
> Created resources ICN#, FREF, BNDL & Signature for application using,
> ResEdit, then I rebuilt the desktop.. , but the APPL is not changing into
> that icon...,  am I missing something? Any suggestions ???  

Have you set the bundle bit? Do a get info within ResEdit on the
application. Check the "bundle" check box in the Finder flags,
save and rebuild your desktop again. Actually, come to think of
it, your development system should have an option somewhere that
tells it to set this bit for you when it generates the app. What
are you using?

----------------------------------------------------------------------
Nigel Stanger,                  Internet: stanger@otago.ac.nz
University of Otago,            Phone: +64 3 479-8179
Dunedin, NEW ZEALAND.           Fax:   +64 3 479-8311
Abundance (n): 222 dancing cakes.
From: jovanovi@studsys.mscs.mu.edu (Steve Jovanovic)
Newsgroups: comp.sys.mac.programmer
Subject: WANTED: MacApp
Keywords: MacApp
Date: 26 Jul 92 23:39:09 GMT
Article-I.D.: spool.3640
Reply-To: jovanovi@studsys.mscs.mu.edu (Steve Jovanovic)
Followup-To: comp.sys.mac.programmer
Distribution: usa
Organization: Marquette University - Department MSCS
Originator: jovanovi@studsys.mscs.mu.edu

Hi Netters,

Does anyone have a copy of MacApp (any version) that
they would like to sell?  If so, please contact me :)

Thanks!

steve


-- 
+----------------------+---------------------------+----------------------+
| Steve Jovanovic      | Internet:  stevej@ais.org |     TopSoft, BABY!   |
| Marquette University +---------------------------+----------------------+ 
| Computer Engineering | Jesus Saves...Gretzky steals...Gretzky scores!!! |
Newsgroups: comp.sys.mac.programmer
From: djpegg@utkvx4.utk.edu (PEGG, DAVID J)
Subject: How do I see if modifiers are down?
News-Software: VAX/VMS VNEWS 1.41    
Organization: University of Tennessee Computing Center
Date: Fri, 31 Jul 1992 18:45:00 GMT

I want to put a feature in my data analysis program that looks to see if Shift
and Option are down (without any other keys).  If they are, then it gets the
mouse position and tells you where it is in the graph's coordinates.  I'm using
GetKeys to see if the keys are pressed.  But I can't seem to get my keyMap to
show anything for any modifier keys (as well as some keys that really surprise
me, like 't' and 'y').  Also, no number keys show up, on the number pad or on
the regular keyboard.

I'm using Think C 5.0.2 with System 7, but programming using mostly stuff from
IM volumes I & II.  I know it has to be possible to do this, since the Key Caps
DA recognizes modifier keys, even when nothing else is pressed.

Thanks in advance for your help,
      Mike
From: Peter.S..Kang@f444.n161.z1.FIDONET.ORG (Peter S. Kang)
Newsgroups: comp.sys.mac.programmer
Subject: HELP!!!!
Date: 28 Jul 92 04:35:06 GMT
Organization: FidoNet node 1:161/444 - BMUG, Berkeley CA

Help! I need to output a text file from a simple routine from a shareware 
BASIC program called MPL, and I do not know how.  Can someone explain to me 
how?  Where can I get the docs for this program? I only need the program to 
output a repetitious long text file. Any help would be greatly appreciated! 
E-mail me!
-------------------------------------peter (510)825-0998


--  
Peter S. Kang - via FidoNet node 1:125/555
    UUCP: ...!uunet!hoptoad!kumr!fidogate!161!444!Peter.S..Kang
INTERNET: Peter.S..Kang@f444.n161.z1.FIDONET.ORG
Newsgroups: comp.sys.mac.programmer
From: weiser@pogo.den.mmc.com (Matt Weiser)
Subject: I wanna program a Newton - but how?
Organization: Martin Marietta WIS
Date: Thu, 23 Jul 1992 20:18:09 GMT

How does one get in on the ground floor of Newton software
development?  Is there an Apple contact?  Anyone have a phone #
or e-mail address?

We have a couple of really great uses for this type of product, 
but we don't want to have to wait for the Newton to
release to be able to begin development.


Thanks a ton!

Matt Weiser
weiser@pogo.den.mmc.com
From: glalonde@VNET.IBM.COM ("Glen Lalonde")
Newsgroups: comp.sys.mac.programmer
Subject: GCC under MPW Shell.
Date: 27 Jul 92 17:59:29 GMT

The MPW shell will work on an SE, if you have a 68030 accelerator card.
(it makes no color QD calls :-)

I recall reading on the newsgroup that the GCC port to MPW requires the
MPW assembler. Is this correct? Can I possibly get around this some how?
I guess GAS was not ported.

Also, are there any text instructions(help files) for the MPW Shell on
a ftp site some place?



Newsgroups: comp.sys.mac.programmer
From: Meessen@slig.ucl.ac.be  (Christophe Meessen)
Subject: Re: PROGRAMMING PROB: How do you find the system folder?
Followup-To: comp.sys.mac.programmer
Organization: Universite Catholique de Louvain (Belgium)
Date: Thu, 23 Jul 1992 11:23:04 GMT

In article <1992Jul22.183946.20587@CS.ORST.EDU>, gonzalm@prism.cs.orst.edu
(Mario Gonzales) wrote:
> 
> 
> Hi all,
> 
> I have looked in vain to find the function that will return the loaction of
> the system folder.  I can find the boot disk but the system folder is
> not allways called the "system folder" on the startup disk.
> 

Use the function:  

theSysFolderRefNum = GetEnvirons( smSysRef );

It will return the system folder reference number. see Inside Mac, vol. V,
page 313.

>
...
> 
> Mario Gonzales

Bien cordialement,

                           Christophe MEESSEN
From: mlanett@Apple.COM (Mark Lanett)
Newsgroups: comp.sys.mac.programmer
Subject: Re: C and C++ development on the Mac
Date: 21 Jul 92 14:30:23 GMT
Organization: Apple Computer Inc., Cupertino, CA

siegel@world.std.com (Rich Siegel) writes:

>In article <sch-200792164510@schaffner.mitre.org> sch@mitre.org (Stu Schaffner) writes:

>>standardization, note that THINK C is a proprietary language.  If you don't

>What? Huh? THINK C is first and foremost a conforming implementation of
>ANSI C. What makes it 'proprietary'?

C'mon Rich. The original poster said "C and C++". When you get TC++ out then
you can complain.
-- 
Have a bajillion brilliant Jobsian lithium licks.
Mark Lanett, NOT speaking for apple. Personal opinion only.
Newsgroups: comp.sys.mac.programmer
From: csuley@cs.cornell.edu (Christopher Suley)
Subject: Re: Moving to the foreground after receiving an 'odoc' from the Finder
Organization: Cornell Univ. CS Dept, Ithaca NY 14853
Date: Tue, 21 Jul 1992 17:46:31 GMT

greeny@top.cis.syr.edu (J. S. Greenfield) writes:
>
>What is the standard technique to insure that your application is in the
>foreground after receiving an 'odoc' event from the finder?
>
>I have an application (which does not recieve suspend/resume events) which
>brings up a custom get file after receiving an 'odoc' event.  If there are
>some finder windows open, the get file dialog will occasionally appear
>*behind* the finder windows, initially.  It then moves to the front, but
>the dialog window is left empty.
>
>Can anyone provide me with references to relevant portions of IM or the
>technical notes?
>

In _Macintosh Programming Secrets, 2e_, they call EventAvail 3 times when
the program starts up to bring it to the front.  They say that this is the
"standard" way to bring a program to the front under MultiFinder.
-- 
|}-{}-{}-{}-{}-{}-{}-{}-{}-{|
{} Christopher S. Suley    {}  "do you expect me to talk?"
{} csuley@cs.cornell.edu   {}  "no, mr. bond, i expect you to die."
|}-{}-{}-{}-{}-{}-{}-{}-{}-{|
Newsgroups: comp.sys.mac.programmer
From: felciano@summit.stanford.edu (Ramon M. Felciano)
Subject: Q: Clearing a TE record with TESetText
Organization: DSO, Stanford University
Date: Wed, 29 Jul 92 00:44:43 GMT
Xdisclaimer: No attempt was made to authenticate the sender's name.


Hi!

When clearing a TE record with TESetText, should one pass in a handle
of size 0, or NIL?

Ramon
Newsgroups: comp.sys.mac.programmer
From: patf@silvlis.com (Pat Fitzgibbons)
Subject: NOVICE MAC programmer questions
Organization: Silvar-Lisco
Distribution: usa
Date: Tue, 28 Jul 1992 00:23:30 GMT

I am a professional programmer and I
just bought a mac. At work I use Sun
and HP workstations. I have concluded from
talking to people that Think C is the compiler
of choice for those of us on a budget,but I
still have two questions.

  1. Are there any books which would tell
     me how to get started on mac or will
     it be obvious from the Think C manuals ?

  2. How do people get artwork into their C programs ?
     My girlfriend is an artist and can draw 
     phenominal things on a computer. How do 
     I use these drawings in a program ? Does
     she just use some sort of paint program 
     and run something to convert the drawings
     or is there a special tool for drawing 
     things for a C program ?
     
    Pardon me if any of these questions is a FAQ,
    I have only had my mac for four days .
--
 O O O  Patrick Fitzgibbons   /\            |         These are my opinions.
  \ /    patf@silvlis.com    /--\  Sunnyvale ) --     Any agreement with my 
   X                      /\/    \   CA     |         company is purely     
  / \        in          /  \     \                   coincidental.         
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.comm
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Subject: Call for alpha (not beta) testers for Network Time
Organization: University of Illinois at Urbana
Date: Mon, 27 Jul 1992 05:48:22 GMT

Greetings.

I am looking for some good alpha testers for my Network Time control
panel. Network Time, if you don't know, sets the clock on your
Macintosh using MacTCP. I am working on version 2.0, and while I work
on the low level guts of the thing, I would like people who can
comment on and troubleshoot the interface, which is complete except
for some error messages.

Here's what I need:
1. People on all sorts of Macs and systems; I need Network Time tested
under System 6, System 7, international versions of the OS, and on all
different sorts of Macs.

2. People who are willing to put up with a few crashes are a plus.
Those running a low level debugger like Macsbug are especially wanted
for this.

3. People who have used Network Time in the past. I need some comments
on the new interface, including going through every balloon in balloon
help and screwing around with every button you can find.

4. You must be willing to play with it for long periods of time, which
will be extremely boring, since it doesn't do very much. (Heck, it was
only designed to set the clock, and it doesn't even do that yet!)

Thanks for your response.

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