HDTenEightyP/NetNews huggingface dataset:
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Stymied++!  VBL Cursor Watching ideas?
Date: 23 Jul 92 17:48:20 +1200
Organization: University of Waikato, Hamilton, New Zealand

In article <scott.711700485@mcl>, scott@mcl.ucsb.edu (Scott Bronson) writes:

> I've run into a real snag with my cursor-watching VBL idea...

[different techniques described, with the fastest ones being the least
"future-safe"]

> Pipe Dream: Obviously PPostEvent can get at the current state of the
> modifiers super-quick and at VBL time.  Is it possible for me to do the
> same?

Well, you could bite the bullet and peek at the low-memory area where the
modifier flags are kept (which is obviously what PPostEvent is doing). And
if your code is very successful and you make a lot of money from it, then
you'll have the resources to bring out a new, slower version when it breaks
under a future, faster machine. :-)

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+12:00
PenWindows--the CP/M of pen computing?
From: ezix@ucrengr.ucr.edu (edward j. zix)
Newsgroups: comp.sys.mac.programmer
Subject: WANTED: Unix system calls in MPW(e.g. stat, etc.)
Date: 22 Jul 92 17:00:14 GMT
Organization: University of California, Riverside

Does anyone have a set of Unix system-equivalent calls for MPW, such as stat(),
(dirent.h stuff like) opendir(), closedir(), readdir().  I've been looking
everywhere and I need this stuff ASAP!!!

Thanks in advance!

/________   /
	/  /  		Edward J. Zix
       /  /   		InterNet: ezix@ucrmath.ucr.edu
      /  /   		 BITnet:  ezix%ucrmath@Sdsc.BITnet
PUH!
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C is (notso) Great
Date: 22 Jul 92 10:24:50 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

Dont get me wrong, I like both C and Pascal Think products, but the
differences between them drive me batty, and that should not be a feature
of a programmers toolset. 

3 things in particular need attention:

The C multifile search facility is braindamaged, and should adopt the
Pascal version.  In a TCL C project, one must currently check/uncheck each
of 150+ files in a seemingly infinite list to establish a narrowing of the
search to (say) all those files which are in the TCL Core classes folder. 
To add insult to possible physical injury, the files are all unchecked
prior to the next multi-file search!  Since this is a typical preliminary
to browsing the Class library, it presents a significant impediment to the
novice C-TCL programmer.  The Pascal version presents a list of the search
paths in the project, and one can select the path(s) of interest from a
list which often needs no scrolling.  The same search is set up with but a
few mouse clicks in Pascal, and the user is not required to start with an
an eidetic memory for the filenames of the project and all its libraries.

Pascal sure could use the GREP search capabillities of C (identical syntax
please).

Menu Key equivalents are inconsistant between the two programs.  Given the
large installed user base, one can anticipate howls from both camps if
either package is altered, so both packages need to borrow a concept from
MS Word, and allow the user to set personal preferences.

Again, I like both products, but wouldnt they be better if..
--

Dana S Emery <de19@umail.umd.edu>
From: mar@ocf.berkeley.edu (Michael A. Ramirez)
Newsgroups: comp.sys.mac.programmer
Subject: Powerbook Battery Question
Date: 21 Jul 1992 22:17:25 GMT
Organization: U.C. Berkeley Open Computing Facility
Distribution: world
NNTP-Posting-Host: earthquake.berkeley.edu



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.

Thanks.

Michael
-- 
-----------------------------------------------------------------------------
___    _   ___ ___ _  ____  ____  ____   mar@ocf.berkeley.edu
|__|  |_|  |  |  | |  |___| |___    /    When laws are outlawed then only
|  \ |   | |  |  | |  |  \  |___  /___   outlaws will obey the law- Mondo 2000
From: jpurlia@qualcomm.com (John Purlia)
Newsgroups: comp.sys.mac.programmer
Subject: PLstrcmp?? Do the right thing!
Date: 28 Jul 92 21:51:57 GMT
Followup-To: comp.sys.mac.programmer
Organization: Qualcomm, Inc.

Has anyone else noticed the effective weirdness of PLstrcmp in MPW?  I'm
using qsort to sort a list of pascal style strings in ascending alphabetic
order.  My comparison function basically uses a PLstrcmp to test equality
of the list elements.  Here's the weird part:  PLstrcmp thinks that "Public
Folder" comes before "Public".  If I take the same data, convert each
element to C style using p2cstr, and use strcmp in my comparison function,
"Public" comes before "Public Folder" just as you would expect.

Is there a known bug in PLstrcmp (MPW 3.2) or for that matter any of the
other Pascal style string routines?  Is there a fix or am I going to have
to do the convert to C conversion all over the place?  (No, the toolbox
routine I'm using to get the data does not have a C string equivalent.)

...........................................................................
John Purlia          : My brain; not my company's brain.  My brain says...
jpurlia@qualcomm.com :      "Just about any movie could be made better
AppleLink:  AM0470   :       if one of the characters were a vampire."
...........................................................................
Newsgroups: comp.sys.mac.programmer
From: maynard@esther.msc.cornell.edu (Maynard J. Handley)
Subject: Re: >.tar .Z formats?
Organization: Cornell-Materials-Science-Center
Date: Tue, 21 Jul 1992 19:30:11 GMT


>These are unix file formats. if you are on a unix box...
>foo.tar:	tar xf foo.tar
>foo.Z:		uncompress foo.Z
>foo.tar.Z	(both above or...)
>		zcat foo.tar.Z | uncompress
>
>There are Mac tar and compress utilities on your favorite ftp server
>(like
>sumex, info-mac/util). Look for MacCompress and "Macintosh Tar".

No- don't look for "Macintosh Tar", look for SunTar. It is much friendlier
and more versatile. (And it's a Mac program, not a Sun program, in spite of
the name.)

Maynard Handley
Xref: sparky comp.sys.mac.programmer:12746 alt.folklore.computers:10864 comp.sys.mac.misc:13504
From: flip@sage.cc.purdue.edu (Phillip Russell)
Newsgroups: comp.sys.mac.programmer,alt.folklore.computers,comp.sys.mac.misc
Subject: Re: And what about this DogCow business ? ( moof! )
Date: 21 Jul 92 06:24:24 GMT
Followup-To: comp.sys.mac.programmer
Organization: Purdue University Computing Center

In article <1992Jul21.020227.22943@organpipe.uug.arizona.edu> jahnke@biosci.arizona.edu (Jerome Jahnke) writes:
>The entire history behind the DogCow Clarus (he used to be called a CowDog,
>but that name already belonged to someone else), can be found in Tech
>Note #31, and is indeed a bit of computer folklore. And yes indeed "Moof,"
>is one noise a DogCow makes, the other is "splat" when he grazes a bit too
>close to the edge of the cliff.
>

Everyone keeps refering to Tech Note #31. How about telling those of us 
out here what all this DogCow stuff is!!!!!!

I've come across and graphic of a DogCow and didn't know it was referring
to some inside joke.

What's the info!!!

Flip


-- 
    __@  __@        Phillip "Flip" Russell                 | Purdue University
  _-\<, -\<,_       flip@sage.cc.purdue.edu                | West Lafayette, IN
 (_)/---|/-(_)      "We don't have enough power captain!!!"| 
Newsgroups: comp.sys.mac.programmer
From: jtn@ADS.COM (John T. Nelson)
Subject: How to get info frmo graphics deivces?
Organization: Guest of Booz, Allen & Hamilton, Inc./Advanced Decision Systems
Date: Fri, 31 Jul 1992 04:06:13 GMT


Not a lot of time here so I have to post this in a hurry... I'm trying
to obtain information from graphics devices attached to my Mac.  For
example I have three NuBus boards on my Mac, all of which are video
cards.  Now how do I find "Vendor A's" card according to a string or
vendor-specific ID number and then obtain the rect and depth of its
screen on the desktop?  Grapics devices have the rect and depth info
but there doesn't seem to be any way to identify the individual
graphics device.  The Slot Manager and sResouces can be used to find
NuBus cards (in assembly language yuk) but there doesn't seem to be any
way to associate a NuBus device with a graphics device.

I'm trying to do the sort of stuff that the Monitors Control Panel
does.

So anyone have any guidence or code that will show me how to talk to
graphics devices, find the screen I'm looking for and obtain its info?
Thanks in advance for your help.....

Newsgroups: comp.sys.mac.programmer
From: Asa Packer <dpacker1@cc.swarthmore.edu>
Subject: Using Macsbug with two-page monitor?
Organization: The Geometry Forum
X-Useragent: Nuntius v1.1
Date: Fri, 31 Jul 1992 18:27:11 GMT

Hi everyone,
    Does anyone know how to get Macsbug to fill up all of a two-page
monitor?
Right now it just occupies a 640x480 rectangle in the middle of the screen
with all kinds of garbage around it.  I couldn't find anything about this
in the
manual.  Thanks in advance!

----------------------------------------------------------------------
Asa Packer
The Geometry Forum
Swarthmore College
dpacker1@cc.swarthmore.edu
From: lari@bach.cs.unc.edu (Humayun Lari)
Newsgroups: comp.sys.mac.programmer
Subject: Re: how to put indelible serial# in resource fork of app?
Date: 23 Jul 92 19:18:28 GMT
Organization: University of North Carolina, Chapel Hill

In article <D88-JWA.92Jul23100813@dront.nada.kth.se> d88-jwa@dront.nada.kth.se (Jon W{tte) writes:
>.50.3> peter@cujo.curtin.edu.au (Peter N Lewis) writes:
>   sake turn macsbug name generation off before you compile it!  I have seen
>   several commercial apps with names turned on in their code checking code,
>   pretty impressive guys :-)
>
>I see MacsBug symbols as a user service ! More than once have I had
>spontaneous crashes, and only the debugger names helped me figure
>out what was going on. Not to mention a dedicated user can provide
>excellent feedback for Tech Support if the names still are in there,
>like, fixing their bugs :-)

Oh, definitely. I was using a release version of a language that should have
stayed in beta for a couple more months -- to be precise, it occasionally
crashed as soon as you tried to run your program. One day, it decided to hang,
and for some inexplicable reason :-) it had been some time since I'd saved.
It was Macsbug time; the only problem was that there was no debugger switch
on the Mac Plus -- it was a public lab, so naturally they didn't want users 
accidentally bombing the machine. So <sigh> I stuck the strap of my wristwatch
into the side of the Plus until it hit the switch, looked up the event loop
in Macsbug, and typed something like "g event"...

Amazingly, it worked. :-)


Humayun Lari
(lari@cs.unc.edu)
Newsgroups: comp.sys.mac.programmer
From: stever@netcom.com (Steve Riggins)
Subject: Re: Q: DrawString only draws 8 characters of my string
Date: Thu, 23 Jul 92 02:15:08 GMT
Organization: Netcom - Online Communication Services (408 241-9760 guest)

In article <Meessen-220792090830@130.104.58.7> Meessen@slig.ucl.ac.be (Christophe Meessen) writes:
>
>DrawString is one of the Routines that may move or purge memory. It is
>indeed essential to lock the handle and make shure it's unpurgeable. This
>should be the case if you didn't set the purgeable option in the info box
>of the 'STR ' resource. 
>

  We ran into an interesting purgeable problem.  We have a reosurce CSTR which is basically a zero terminated string.  An external command for HyperCard, getStr, does a GetNamedResource, then a DetachResource and returns the handle to HyperCard.

  Well...  If the CSTR was purgeable, then the HANDLE is also purgeable, and
a piece of script like:

  put GetStr("fooStr") into gFoo

where gFoo is a HyperTalk global, gets rather interesting when memory runs low.
The global will suddenly contain garbage, as HyperCard had just kept the handle
I passed to it around.  The handle was purged behind HyperTalk's back and
whammy, things got wierd.


-- 
Steve Riggins                  Internet: stever@netcom.com
AppleLink:  Voyager.geek       AOL:      RigginsS
CompuServe: 75300,1635         "Can never have enough EMail addresses"
From: lipa@CAMIS.STANFORD.EDU (Bill Lipa)
Newsgroups: comp.sys.mac.programmer
Subject: CMaster
Date: 30 Jul 92 17:59:25 GMT

Anyone who uses Think C frequently should seriously consider purchasing
CMaster, an amazing and incredibly useful product from Jersey Scientific. I
was alerted to its greatness by the ReadMe file from Bolo (another amazing
piece of software). It extends the Think C editing environment in all sorts of
ways, saving oodles of time.

For more info, see the Bolo readme or ask Jersey Scientific at
jersci@applelink.apple.com.

A satisfied user,

Bill Lipa
lipa@camis.stanford.edu
From: fsmah1@acad3.alaska.edu (Mike Hageland)
Newsgroups: comp.sys.mac.programmer
Subject: Multi-Finder vs Finder problem
Date: 27 Jul 92 23:00:13 GMT
Organization: University of Alaska Fairbanks

I seem to be asking questions here more and more frequently.  If these
seem like a waste of bandwidth, let me know a better way to look for
answers.  It seems very difficult to find enough documentation to answer
all the questions I run into.  I have a couple today.

1)  Is there a way to tell a printer to "back up".  I really think there
must be, but I can't find it.

2)  Has anybody noticed a type of error that happens under finder but not
under multi-finder?  For some reason I have a piece of code trying to call
TEDispose();  It works great under multi-finder on a mac plus, se/30, and II
si, however if I run it under just finder it has a system error there.  I know
it is there only by a lot of /* */ type debugging.  I also have another error
which I hanv't )found which crashes the program (without a system error) only
when the debugger isn't running.  If the debugger is running, no problems.  If
I build the application, no problem, only when launched by Think C without the
debugger with the problem happen. Any info will be apreciated.

						--Mike
From: eric_gorr@coglab_psych.uoregon.edu (Eric Gorr)
Newsgroups: comp.sys.mac.programmer
Subject: Help! - a beginner at Apple Events
Date: 27 Jul 92 19:51:12 GMT
Distribution: usa
Organization: University of Oregon Network Services


I posted a similiar message once before, and didn't get much of a responce.

What I am looking for is some (simple!) sample code that will demonstrate
how to setup a custom set of apple-events that my application can receive
and respond to.  The apple-events will probably be sent from a HyperCard
stack.

Also, books that explain how do to this would also be appreciated (not
Inside Mac VI) or files on sumex-aim, etc...

thanx...
Newsgroups: comp.sys.mac.programmer
From: hd12@ellis.uchicago.edu (hui  dong)
Subject: Sexy sound wanted!
Reply-To: hd12@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Fri, 31 Jul 1992 18:27:37 GMT

Hi, I am writing an application using some sexy sounds. But unfortunately
the "sexy Hi" and "Oh, my God" won't work under sys7, and I don't have
sound input device even if I get a girl to do that. So could someone send
me collection of sexy sounds or make some for me? Thanks a lot!!!
(I did go through sumex, but didn't find what I need there.)



Newsgroups: comp.sys.mac.programmer
From: kratz@bnr.ca (Geoff Kratz)
Subject: MacApp courses other than Apple
Organization: Bell-Northern Research, Ltd. Ottawa, Ontario, Canada
Distribution: can
Date: Thu, 30 Jul 1992 20:12:24 GMT


I am looking for any information people may have about MacApp courses
which are held in Canada (Ontario would be good, Ottawa would be best,
but I'm not holding my breath).  I do know about the MacApp 3.0 course
with the Developer University in Cupertino, but money may be an issue
for us and I need to know about other alternatives closer to home.
--
Geoff Kratz             Bell-Northern Research, Ltd.           kratz@bnr.ca
Messaging and E-mail       Ottawa Ontario Canada
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Newsgroups: comp.sys.mac.programmer
Subject: Re: The sysz resource
Date: 23 Jul 1992 18:29:50 GMT
Organization: U.C. Berkeley Open Computing Facility
NNTP-Posting-Host: tornado.berkeley.edu

> "The sysz resource is obsolete under system 7"

I recently wrote an extension that just refused to work without one.  I gave it
about 64K to play around in and then it was quite happy.  The system also did
a GetResource on it, I checked.

-E Wylie
.

Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc,comp.sys.mac.apps
From: richard@raet-sh.UUCP (Richard van Denzel)
Subject: Unable to get files out of StuffIt archive
Organization: RAET Industrie & Handel, Utrecht
Date: Wed, 22 Jul 1992 08:33:13 GMT

Hello there,

I asked this question a while back too, but due to the fact that we lost our
connection for about 1 month, I am asking it again.

If have put some of my files in StuffIt (1.5d1) archives with the option
"Always add as real folders" on. But now StuffIt won't let me get the files
out of the archives again, saying that it is not a good format (or something
like that).
Has anyone got a clue for me how to get my files back again??

Please help,

Richard.
-- 
--
Richard van Denzel	richard%raet-sh!relay.nluug.nl via internet backbone
RAET Industrie & Handel	uucp: ..!{uunet,sun4nl}!raet-sh!richard
Eendrachtlaan 10,
From: umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor)
Subject: Public Domian/ShareWare ``C Compiler''
Followup-To: poster
Organization: University of Manitoba, Winnipeg, Canada
Date: Sun, 26 Jul 1992 14:03:51 GMT


Hi,
Does any one know of any public domain or share ware C compiler for mac?
I looked at "gcc" but it requires you to have MPW Shell, a comercial C
compiler (forgot the name) and a mac with atleast 68020+FPU. Not for me
as I dont have either of these goodies available on my Classic.

Thanks for help!

--nasir
umnoor@ccu.umanitoba.ca

p.s. Anyone know about ``Harvest''? any comments?
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.hypercard
From: tres@roke.rap.ucar.edu (Tres Hofmeister)
Subject: "Updating" a Folder
Organization: National Center for Atmospheric Research / RAP
Distribution: na
Date: Wed, 22 Jul 1992 22:47:09 GMT

	Is there a way to cause a folder to "update" such that it
will display the proper icon for a file whose creator type has
changed since the file was created?

	I'm creating a file from within a HyperCard stack, then
changing the creator type using an XCMD.  I find that one of the
following must occur before the correct icon will be displayed after
the change:

	The file is moved to another folder;
	Another file is moved to or created in the folder;
	The folder is opened or closed;
	The machine is restarted.

	What is the common factor here?

	Is this a Finder problem?  Is there an AppleEvent or somesuch
I can use to get around this problem?  How about an XCMD/XFCN, or a
code snippet for incorporation into one?

	Thanks in advance.


Tres Hofmeister
tres@ncar.ucar.edu
From: jahnke@biosci.arizona.edu (Jerome Jahnke)
Newsgroups: comp.sys.mac.programmer
Subject: Re: NOVICE MAC programmer questions
Date: 28 Jul 92 23:03:50 GMT
Distribution: usa
Organization: Biology Learning Center

In article <1992Jul28.002330.20244@silvlis.com>, patf@silvlis.com (Pat Fitzgibbons) writes:
> 
>   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 ?

Get the Macintosh Programming Primer vol 2 at least by Mark Reed. It will get
you off and running with an app skeleton and clue you in on the basics.

Get some volumes of Inside Mac (you might want to wait a few months as they
are redoing them). I know you can check them out here at the U of A library,
it might be another option for you.


>   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 ?

It all depends on what you want to do with the images. You can get a copy
of ResEdit and copy the images to the clipboard (Cmd C) and then go into
ResEdit, and depending on the drawing program, you can then paste it into
a PICT resource. ResEdit is available for free at ftp.apple.com.

All you have to do then is 
     GetPicture( Resource_Number );
and
     DrawPicture( PicHandle, PicRect );

But you have to have a window to draw in and a few other things, all of which
is explained in the Macintosh Programming Primers vol 1 and 2.

> --
>  O O O  Patrick Fitzgibbons   /\            |         These are my opinions.
>   \ /    patf@silvlis.com    /--\  Sunnyvale ) --     Any agreement with my 
>    X                      /\/    \   CA     |         company is purely     
>   / \        in          /  \     \                   coincidental.         
> 

Jer,
----
Jerome Jahnke
Biology Learning Center
University of Arizona
'jahnke@biosci.arizona.edu' or +1 (602) 621-3820
Newsgroups: comp.sys.mac.programmer
From: eric_gorr@coglab_psych.uoregon.edu (Eric Gorr)
Subject: Apple Events - programmer defined
Organization: University of Oregon Network Services
Date: Wed, 22 Jul 92 20:44:11 GMT

I was wondering if someone could point me to or send me some sample code
which demonstrates how to implement some application-specific events.

Basically what I am doing is writing an application that I would like to be
able to run via apple-events.

(I would prefer the code be a complete (simple) application...)

thanx...
Organization: University of Illinois at Chicago
Date: Friday, 31 Jul 1992 13:06:06 CDT
From: <U20565@uicvm.uic.edu>
Newsgroups: comp.sys.mac.programmer
Subject: New to mac programming, what's MacApp?

Mac programming is a new door for me, with Windows programming experience
however it is not confusing at all. I keep hearing MacApp and wonder what
exactly is it. I have THINK C and the books I have purchased on Mac
programming are all for THINK C.

I have been able to deduce that MacApp is associated with Apple's MPW
product line (I know what that is; UNIX like environment, command line
shell and utilities) since I always see the two together. Is MacApp some
sort of code generator? A local engineering firm has a client who insists
that they need someone with a MacApp background. This finally motivated
me to find out exactly what MacApp is.

Please respond directly, thanks,
Mario Pacheco