HDTenEightyP/NetNews huggingface dataset:
From: Chewy@cup.portal.com (Paul Frederick Snively)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Loading Resources into MF Temp Mem.
Date: Wed, 22 Jul 92 22:13:40 PDT
Organization: The Portal System (TM)

I have an alternative, hopefully simpler, suggestion:

Use Gestalt to determine whether temporary memory is `real memory' or not.
If it is, then allocate a small (say, zero byte) temporary handle, and call
HandleZone on it to get the temorary zone.  Then you can GetZone the current
Zone, SetZone to the temporary zone, manage memory, and when you're done,
SetZone back to the old Zone.

Incidentally, when using temporary memory, it's best to _avoid_ MoveHHi,
because MultiFinder/The Process Manager allocate application space _from the
top down_, so MoveHHi on temporary handles will actually tend to _cause_ heap
fragmentation rather than alleviate it.  Instead, you may wish to consider
using ReservMem to attempt to reserve memory, and then allocate your temporary
handle.  ReservMem attempts to reserve memory as _low_ in the heap as possible
(it's what NewPtr calls to do its thing).

Paul Snively
Dissolute Wandering Hacker
chewy@apple.com
Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: C.S.M.P. Digest V1 #146 Available
Organization: University of Oregon Computer and Information Sciences Dept.
Date: Tue, 21 Jul 1992 11:39:47 GMT


C.S.M.P. Digest             Tue, 21 Jul 92       Volume 1 : Issue 146

Today's Topics:

	Access to Apple's MacApp mailing lists
	VRAM / DRAM data transfer benchmarks (free program)
	Finder sets memory loc zero to $00410000 all the time
	How long last Alerts in Notification Manager ???
	MPW ENVIRONMENT
	MacApp 2.0 => 3.0 war stories?
	Visual Basic or why not Visual C/C++?
	SE is bloody picky!



The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.

The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  (This means you can't post questions to the
digest.)

Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
cs.uoregon.edu).  Article threads are not added to the digest until the last
article added to the thread is at least one month old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
[128.223.8.8] in the directory /pub/mac/csmp-digest.  The most recent issues
are available from sumex-aim.stanford.edu [36.44.0.6] in the directory
/info-mac/digest/csmp.  If you don't have ftp capability, the sumex archive
has a mail server; send a message with the text '$MACarch help' (no quotes)
to LISTSERV@ricevm1.rice.edu for more information.

The digest is also available via email.  Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new issue as it is created.  Sorry, back issues
are not available through the mailing list.

Send administrative mail to mkelly@cs.uoregon.edu.


-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
From: heyes@dadev.cebaf.gov (Graham Heyes)
Newsgroups: comp.sys.mac.programmer
Subject: Writing asynchronous SCSI driver.
Date: 21 Jul 92 14:22:05 GMT
Distribution: comp.sys.mac.programmer
Organization: Continuous Electron Beam Accelerator Facility

I am writing a Hard disk driver in think C. It all seems to
work and is certainly faster than Apples own driver. Rather
than using the SCSI manager I have leapt in with manuals on
the Mac hardware and access the ncr5380 SCSI controller 
directly. Looking at my code I have a main loop where I wait
for phase changes on the SCSI bus. On average I would expect
a 13mS delay from the drive while the heads move over the 
block that I'm looking for. What I am wondering is if I can 
use that 13mS to do some usefull work. That is where my 
knowledge of the Mac OS falls down. I am assuming Multifinder
is giving me something like a multi-tasking environment with 
the possibility of forced context switching from one task to 
another.

1) How do I switch context in but still be able to recheck 
   the bus phase every 13mS?

2) How do I make a "task" which wants to use the driver pend 
   until the current transaction has completed?


	This is probably doccumented somewhere but a code 
example would be a great help.
	Thanks
			Graham Heyes
	
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon W{tte)
Subject: Wrapper classes for Word Solution Engine
Originator: d88-jwa@dront.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
Distribution: comp
Date: Sun, 26 Jul 1992 23:02:41 GMT

Hi,

Some time ago I heard about a company making a wrapper
class for the Word Solutions Engine (costing as much as
the engine, no doubt :-) If anyone knows their name,
number, fax, AppleLink, or even have used the product,
I'd be very glad to hear about it !

Also, I got a free wrapper from Bill Cramer some time
ago, thanx ! but for this commercial project, we'd
rather be free from any obligations (isn't business FUN !?)


-- 
         Jon W{tte, Svartmangatan 18, S-111 29 Stockholm, Sweden

### You have the Easy Access virus. This virus may cause strange sounds.
### You have the 24-bit virus. This virus eats system memory like CRAZY.
Newsgroups: comp.sys.mac.programmer
From: larrym@mtxinu.COM (Larry Meyer - mac weenie)
Subject: Re: How do you acess chooser username??
Reply-To: larrym@mtxinu.UUCP (Larry Meyer - mac weenie)
Organization: Xinet, Berkeley
Date: Wed, 22 Jul 92 17:59:43 GMT

In article <1992Jul18.190914.26404@mnemosyne.cs.du.edu> tinsel@uiuc.edu writes:
>mshields%peruvian.utah.edu@cs.utah.edu (Michael S Shields) writes:
>
>>How do you do this?? I can't seem to find even a mention of the chooser user-
>>name anywhere.(IM, Think Reference, Prog. Primer).  I know it can be done.
>
>It's a STR resource somewhere in the System file.  I don't remember the
>number, but you can set the username to something unique, then search
>through the System w/ Resedit until you find it. 
>--
>Thomas Insel (tinsel@nyx.cs.du.edu, tinsel@uiuc.edu)

It's 'STR ' resource number -16096 in the System file; (I can't find the
documentation for this magic cookie).
-- 
/*************************************************************
Larry Meyer Mac/Unix Programmer @ Xinet, Berkeley CA
larrym@xinet.com (ask me about max<->unix stuff)
*************************************************************/
From: absurd@applelink.apple.com (Tim Dierks, software saboteur)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Repeated GetCIcon/PlotCIcon calls
Date: 29 Jul 92 00:09:18 GMT
Followup-To: comp.sys.mac.programmer
Organization: MacDTS Misfits

In article <1992Jul16.234146.41639@kuhub.cc.ukans.edu>,
ozma@kuhub.cc.ukans.edu wrote:
> 
> In article <36915@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes:
> > In article <m0m7vfN-000FO0C@bagpipe.reed.edu> bagpipe@reed.edu!bagpipe.reed.edu!pcalahan (Patrick John Calahan) writes:
> > 
> >>IMV says that you shouldn't call PlotCICon before each GetCIcon because
> >>it overhead will build up in the resource map.  Makes sense to me...that  
> >>seems to be happenening when my system crashes after plotting some number  
> >>of icons...
> 
> > You could mark them purgeable. But I don't think that really works. I think
> > there is a bug with cicns or something because I tried to get rid of the
> > memory but it would still fill up the heap. I'm using ploticonid now
> > (tech note #30x) and it works fine. 
> 
> I believe ReleaseResource() after every PlotCIcon will do the trick.
> 
Actually, the appropriate call is DisposCIcon(), which will dispose of all
the various handles associated with a color icon.  ReleaseResource() would
not release all the handles; in fact, I think it would be in error, because
I'm pretty sure that a CIconHandle in memory is not a resource handle; it's
constructed from one.

Tim Dierks
MacDTS, but I speak for the trees
Newsgroups: comp.sys.mac.programmer
From: niko@iastate.edu (Nikolaus E Schuessler)
Subject: Re: THINK C 5.0 Code overflow
Keywords: error,C programming, THINK C 5.0, Mac
Organization: Iowa State University, Ames, IA
Date: Mon, 27 Jul 1992 17:22:49 GMT

In article <1992Jul27.160800.18222@cs.few.eur.nl> christ@cs.few.eur.nl (Christ Leijtens) writes:

>         Question: Is there *any* way to get around this  bound  for
>   the  code and data, so we can continue porting the program to the
>   Macintosh? We would like any information on porting programs from
>   other implementation of the C-language to Macintosh THINK C 5.0.
>

Yes, there is... You have to declare all arrays as pointers to arrays
and malloc them in a routine at the start of your program... A * real *
pain ...

char x[1000];

to char *x;

...

x = (char *) malloc(1000 * sizeof(char))

>-- 
>	e-mail:	christ@cs.few.eur.nl		  _(.~\  ____
>		   christ@sus.eur.nl		 /_|  /_/\/\/\__ 
>	                                            > _/\/\/\/\/


Like your turtle ...

-- 
Niko Schuessler               
Project Vincent Systems Manager              email: niko@iastate.edu
Iowa State University Computation Center     voice: (515) 294-1672
Ames IA 50010                                snail: 272 Durham 
Newsgroups: comp.sys.mac.programmer
From: calvin@leland.Stanford.EDU (The Weasel)
Subject: Where to find perl
Organization: DSG, Stanford University, CA 94305, USA
Distribution: na
Date: Tue, 28 Jul 92 23:32:56 GMT

Hi There,

I know that someone out there, sorry I forgot your name, ported
perl to MPW. Could someone tell me where to find the beast.

Thanks in advance.

Peter

-- 
Peter Chang                        |  "Would it save you a lot of time 
E-Mail: calvin@leland.stanford.edu |   if I just gave up and went mad now?"
Snail Mail: PO Box 9603            |           Arthur Dent, The HHG
            Stanford, CA  94309    |
From: glalonde@VNET.IBM.COM ("Glen Lalonde")
Newsgroups: comp.sys.mac.programmer
Subject: Altering the TRAP dispatch table.
Date: 27 Jul 92 19:11:30 GMT

I need to change the location that one of the OS Traps goes go.
IM detains how to do this, but under sys 7 the effect seems to be local
to that process. Once the application that did the patch exits, the OS Trap
went back to its old value. Is there any way to make the patch GLOBAL and
PERSISTENT?

For now I just figured out the location in memory and patched it via
C. I doubt if the trap table always starts at location $400 in memory
for all models though.

I want to trap BlockMove to a version optimized for the 030, my SE has
a 030 card.
From: eric_gorr@coglab_psych.uoregon.edu (Eric Gorr)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Help a beginner programmer
Date: 23 Jul 92 22:53:48 GMT
Article-I.D.: nntp.1992Jul23.225348.22451
Distribution: usa
Organization: University of Oregon Network Services


Forgot one thing...I am using THINK C 5.0.

In article <1992Jul23.210503.13778@nntp.uoregon.edu>,
eric_gorr@coglab_psych.uoregon.edu (Eric Gorr) writes:
> 
> I've been trying to figure this out, but my understanding of the toolbox
> routines isn't that good yet.
> 
> What I am looking for is a procedure that will accept two files names of
> files that are text only.
> 
> What the procedure needs to do is read FILE #1 and when it hits a line that
> only contains $$INSERT <path:file name> (or something of that nature) will
> then open <path:file name> and will replace $$INSERT <path:file name> with
> the lines of text in <path:file name>.  <path:file name> only contains
> text.  The result of these operation will be saved in FILE #2.  It should
> be able to handle multiple $$INSERT occurances in FILE #1.
> 
> So, for example:  
> 
> FILE #1:
> aaaaaaaa
> $$INSERT my_file
> bbbbbbbb
> 
> my_file:
> cccccccc
> 
> FILE #2:
> aaaaaaaa
> cccccccc
> bbbbbbbb
> 
> Any help would be appreciated....
> 
> thanx..
> 
> 
> 
Newsgroups: comp.sys.mac.programmer
From: David Kabal <davidk@citr.ee.mcgill.ca>
Subject: Am I an idle process? Or just lazy?
Organization: CITR / McGill University
X-Useragent: Nuntius v1.1.1d1
Date: Tue, 28 Jul 92 16:39:25 GMT

1. What's the best way of telling if you're an idle machine from a foreground
process? (I thought of counting the number of null evt's in a row)

2. What's the best way of telling if you're an idle machine from a background
process? (Can't count nullEvts.... They're ALL nullEvts)

----------
David Kabal

Canadian Institute for Telecommunications Research
Institut Canadien de Recherche en Telecommunications

You are in an open field west of a big white house with a boarded
front door.
There is a small mailbox here.
Newsgroups: comp.sys.mac.programmer
From: brandy@tramp.Colorado.EDU (BRANDAUER CARL M)
Subject: Help with FileMaker Pro
Organization: University of Colorado, Boulder
Date: Sat, 25 Jul 1992 19:00:04 GMT

I am working on a FileMaker Pro program for tracking the services delivered
to the clients of the local AIDS project and have been stumped by the
following:

Assume that there are 100 clients and some 13 or more types of service,
including one called 'transportation'.  During a specific reporting period
the usage of 'transportation' is:

	Client A	2 times
	Client B	once
	Client C	5 times
and	Client D	once

Writing a report that states that 'transportation' was delivered 9 times
during the reporting period is easy.  However, how can one determine that
the service was used by four clients?

I have been told that it can't be done with FileMaker but hope that this
isn't true.

Many thanks in advance for any and all help - Carl
From: casgrain@ERE.UMontreal.CA (Casgrain Philippe)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Help a beginner programmer
Summary: Quick way to do it
Date: 25 Jul 92 17:28:13 GMT
Organization: Universite de Montreal

In article <1992Jul23.210503.13778@nntp.uoregon.edu> eric_gorr@coglab_psych.uoregon.edu (Eric Gorr) writes:
>What the procedure needs to do is read FILE #1 and when it hits a line that
>only contains $$INSERT <path:file name> (or something of that nature) will
>then open <path:file name> and will replace $$INSERT <path:file name> with
>the lines of text in <path:file name>.  <path:file name> only contains
>text.  The result of these operation will be saved in FILE #2.  It should
>be able to handle multiple $$INSERT occurances in FILE #1.
>
>So, for example:  
>
>FILE #1:
>aaaaaaaa
>$$INSERT my_file
>bbbbbbbb
>
>my_file:
>cccccccc
>
>FILE #2:
>aaaaaaaa
>cccccccc
>bbbbbbbb

	What I would do...

Assume 'infile' is file #1, 'outfile' is #2, 'insert' is the file to insert
from.

var 
	infile, outfile, insert: Text;
	infileName, outfileName, theText : Str255;

function Extract(foobar:Str255; a,b: Integer) : Str255;
begin
{ You write a function that returns, in an Str255, the string of }
{ chars between foobar[a] and foobar[b]                          }
end;

infileName := 'Macintosh HD:My project:My input file';
outfileName := 'Macintosh HD:My Project:Output file';
Reset(infile, infileName);
Rewrite(outfile, outfileName);
while not eof(infile) do begin
	ReadLn(infile, theText);
	if Extract(theText,1,8) = '$$INSERT' then begin
		Reset(insert,Extract(theText,10,StrLenght(theText));
		while not eof(insert) do begin
			Readln(insert, theText);
			WriteLn(outfile, theText);
		end;
		Close(insert);
	end
	else Writeln(outfile, theText);
end;
Close(infile);  Close(outfile);

Don't forget to type the full pathnames (folders are separated by colons)!

Enjoy,
Philippe Casgrain   Casgrain@ere.umontreal.ca
From: bc2k+@andrew.cmu.edu (Brian Campbell)
Newsgroups: comp.sys.mac.programmer
Subject: Scrolling graphics
Date: 21 Jul 92 06:35:32 GMT
Article-I.D.: andrew.4eP22oe00WBKA2B10h
Organization: Carnegie Mellon, Pittsburgh, PA


   I need to put horizontal and vertical scroll bars on a graphical
circuit simulator program that I am writing in THINK C.  There is a grid
on the screen that is filled with icons, connecting lines, and so forth.
 I looked in several books, but all I could find were text scrolling
examples.  I already know how to draw the scroll bars and resize them,
but I do not know how to have them actually scroll the screen (or
auto-scroll when dragging an icon to the side of the screen).  Any help
would be greatly appreciated.

-- Brian
From: greeny@top.cis.syr.edu (J. S. Greenfield)
Subject: Re: MacOberon
Organization: Syracuse University, CIS Dept.
Date: Wed, 29 Jul 92 11:47:42 EDT

In article <1992Jul28.231712.27337@fcom.cc.utah.edu> kofoid@bioscience.utah.edu (Eric C. Kofoid) writes:
>
>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?

You shouldn't be two surprised by the "dotted nomenclature."  This is to
be consistent with all other commands within the system (from what little
I saw of MacOberon).

Since all Oberon commands are of that form, it makes perfect sense to show
the commands which are available in the menus in their proper form under
Oberon--rather than abbreviating them to some other form, merely to
introduce Mac conventions into Oberon.

MacOberon really seems to be designed as an operating system in and of itself
(though, it has obviously been placed on top of MacOS).  It shouldn't be
too surprising, then, that they don't conform to the interface conventions
for MacOS or any other operating system that may be running underneath of
it.


BTW, a warning for AutoDoubler users--MacOberon freezes (irrecoverably, even
with MacsBug installed) immediately upon starting up, if AutoDoubler is
installed, and on.


-- 
J. S. Greenfield                                         greeny@top.cis.syr.edu
(I like to put 'greeny' here, 
but my d*mn system wants a 
*real* name!)                        "What's the difference between an orange?"
From: jsp@uts.amdahl.com (James Preston)
Newsgroups: comp.sys.mac.programmer
Subject: On the down arrow in popup menu boxes
Date: 31 Jul 92 18:39:11 GMT
Reply-To: jsp@pls.amdahl.com
Organization: Amdahl Corporation, Sunnyvale CA


I remember reading something a few months ago that laid out the standard
for popup menus, including the correct way to do the down arrow.  But now 
that I'm implementing a popup menu, I can't seem to find it.  I'm pretty 
sure it was a technote, but I couldn't find anything about it when I looked 
through the technote index.  If I just somehow missed it, I'd appreciate it 
if someone could tell me the technote number I should look at.  Otherewise, 
I'd appreciate any pointers to where I can find out the standard way of 
getting that down arrow.

--James Preston
From: veloso@husc3.harvard.edu
Newsgroups: comp.sys.mac.programmer
Subject: Re: SCCS / RCS for Mac
Date: 27 Jul 92 04:09:43 GMT
Article-I.D.: husc3.1992Jul27.000943.14211
Distribution: usa
Organization: Harvard University Science Center

In article <1992Jul15.232427.545542@locus.com>, howard@locus.com (Howard Moskovitz) writes:
> I am getting ready to start a significant project using Think C.
> I would really like to get some sort of source code control
> system to keep track of my changes. Does anyone know of something
> available for the Mac. Does it interact with Think C 5?
> 
> Thanks,
> Howard
> 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> +||    ||\    /||             Howard Moskovitz  	       	   +
> +||    ||\\  //||  \---\      Locus Computing Corporation   +
> +||<<>>|| \\// ||  /---/      Inglewood, CA 903010   U.S.A  +
> +||    ||  \/  ||       	       	       	       	       	   +
> +||    ||      ||        	    howard@locus.com          	   +
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From: minow@apple.com (Martin Minow)
Newsgroups: comp.sys.mac.programmer
Subject: Commenting on unannounced products
Date: 14 Jul 92 20:39:06 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer Inc. MACDTS

In article <Br6z9B.F2p@world.std.com>, siegel@world.std.com (Rich Siegel)
wrote:
> 
> Actually, my standard response was "we cannot comment on unannounced
> products or future releases". This line was dictated by the "MBA
> degreed automatons", and became an imperative after Symantec went
> public.

There are several reasons why it is unwise to comment on unannounced
products:

-- The SEC (Securities and Exchange Commission) may consider this as
an attempt to increase the value of a company's stock.

-- If something changes and the unannounced product is not released on
time,
or never released, or does something other than the non-announcement,
someone
who made a decision based on the non-announcement may be rightly annoyed.

-- The "Osborne Effect" (named after the first portable computer): if you
announce the "Osborne 2," everybody stops buying the Osborne 1 and your
cash-flow dries up.

Martin Minow
minow@apple.com
The above does not represent the position of Apple Computer
From: triantos@acsu.buffalo.edu (Nick B Triantos)
Newsgroups: comp.sys.mac.programmer
Subject: Tech Notes
Date: 23 Jul 92 16:40:07 GMT
Distribution: comp
Organization: The University at Buffalo
Originator: triantos@lictor.acsu.buffalo.edu

Hi.

I am wondering where I can get the TN stack.  Is it only available on the
developer CDs?  I just downloaded all umpteen hundred tech notes from
ftp.apple.com, but I'd like one big file I can do searches on...

Thanks
-Nick

--
Nick Triantos        "It is not I who am crazy ... It is I who am MAD!!!"
                     -Ren Hoek, from Ren & Stimpy's "Space Madness"

  ... Don't knock 6 years of college until you've tried it.