HDTenEightyP/NetNews huggingface dataset:
From: pmcilroy@srd.bt.co.uk (Paul McIlroy)
Newsgroups: comp.sys.mac.programmer
Subject: Error on High Density Floppies
Date: 13 Apr 92 22:41:38 GMT
Reply-To: pmcilroy@srd.bt.co.uk
Organization: British Telecom

We have a number of high density floppy disks (MFM format) which were 
written over a year ago using a MacIIci.  They were kept in a drawer 
sharing a box with some 800k floppies.  The 800k floppies are still 
fine, but the high density disks are now all unreadable.  Attempts to 
mount them returns ERROR -400 gcrOnMFMErr (gcr format on high density 
media error).  I do not believe that there is a hardware error on the 
IIci, since newly formatted MFM disks which it writes can be read by 
other Macs without problem.  We have been unable to fix these disks 
with either MacTools Rescue (version 1.1) or Norton Utilities.  Has 
anybody else had similar problems with high density floppies ? And 
does anybody know of any way to rescue disks from gcrOnMFMErr ?

Paul McIlroy (pmcilroy@srd.bt.co.uk)
From: jsuker@orion.oac.uci.edu (Johnathon L. Suker)
Subject: Think C, TCL, AppleTalk Async calls and a question
Newsgroups: comp.sys.mac.programmer
Organization: Univesity of California at Irvine Main Library
Date: 10 Apr 92 22:37:50 GMT

Hey AppleTalk and Think Class Library,

	I have a programming question regarding AppleTalk programming and 
the think class library.  I am going to write (am writing) a programming 
that uses appletalk and sends syncronous calls.  I want to change them to 
Async. calls.  According to Inside AppleTalk, to should check for async 
calls in the main event loop of your program.  In TCL I do not have access 
to this and inorder to put something in their I must changing the source 
code of TCL (which Symantec says is BAD).  Has anyone (or does anyone) know 
how to make Async calls within TCL.  I would really like to use the TCL (my 
first big project using it) and this is the only thing holding me back.

				Thanks in advance,

					Johnathon
_______________________________________________________________________________
Johnathon Suker           |
UC Irvine                 |   .signature file under construction
jsuker@orion.oac.uci.edu  |
_______________________________________________________________________________
From: jtgorman@cs.arizona.edu (J. Taggart Gorman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Apple Installer and Compression
Date: 15 Apr 92 08:51:51 GMT
Reply-To: jtgorman@cs.arizona.edu (J. Taggart Gorman)
Organization: None - Entire program eliminated due to budget cuts :)
Discliamer: Upon my being captured or killed, my professors will
            disavow any knowledge of me, my statements, and/or
            my mission.


In article <1992Apr15.171630.7439@waikato.ac.nz>,
Citizen ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes :
>In article <258@farallonfarallon.com>, neal@farallon.com (Neal Trautman) writes:
>> I don't think any of the other standard
>> compression utilities, StuffIt, Compact Pro, etc.
>> offer decompression in Apple's Installer.
>
>I think they do. I recall installing something that used Apple's Installer
>and StuffIt compression, but I can't remember which application it was.
>
>It wasn't Canvas... :-}

  Just installed Word 5.0 (no flames, please) today.

  It uses Apple's installer to place Word on your hard drive.  Thing is, it
first copies _Stuffit Classic_ files to the hard drive, then uses "Stuffit
Engine v1.3" (I think v1.3) to unstuff.

|--------------------------------| "I like it.  It's got that 'It's a cruel
|      J. Taggart Gorman Jr.     |  world - Let's throw ourselves in the
| jtgorman@caslon.cs.arizona.edu |  abyss.' type ambience."
|--------------------------------|     - Christian Slater, in _Heathers_
Newsgroups: comp.sys.mac.programmer
From: kamprath@caen.engin.umich.edu (Michael Kamprath)
Subject: Re: Large pointer blocks
Date: Sun, 12 Apr 92 00:30:11 EDT
Organization: The University of Michigan, Ann Arbor

In article <1992Apr8.220929.7119@unx.sas.com>, sasdtm@stthomas.unx.sas.com (Donald T. Major) writes:
> 
> How are you allocating the memory?  NewPtr has no such limitation,
> unless your heap is incredibly fragmented and uncompactible (for the
> amount of RAM you had in your application :-)).  This seems unlikely,
> so perhaps you're using malloc() or calloc() (or whichever such
> functions are available in the THINK C ANSI library)?
> 
> -- 
> Donald Major       SAS Institute Inc.  "Cicely, let's fling something!"
> sasdtm@unx.sas.com SAS Campus Drive                 - Northern Exposure
> (919) 677-8000     Cary, NC 27513-2414
> 
> 

OK, I found out what was happening.  I was getting pointers limited to 32K
of RAM.  I confused this problem with the limitation of 32K to stack
variables.  What the problem ended up being was that I was using variable
of type (Size) to pass how large I need a block.  (Size) is actually
 a (short int), and (short int) can only go up to 32K.  Once I changed
my variables to (long int), my problem disappear, and my faith in the
Mac as a computational machine was restored.  

Michael Kamprath
kamprath@caen.engin.umich.edu
From: lkimes@alshain.usc.edu (Lance 'Moof' Kimes)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think Class Library discussion list
Date: 9 Apr 1992 13:22:11 -0700
Organization: University of Southern California, Los Angeles, CA
Distribution: world
Reply-To: lkimes@alshain.usc.edu (Lance 'Moof' Kimes)
NNTP-Posting-Host: alshain.usc.edu


So when is this discussion list going to happen? Who's organizing?
I'd volunteer, but I'm way too busy right now. Maybe June.

Lance Kimes
Systems Programmer
Univ. of Southern California
From: jth@acpub.duke.edu (JASON HOLTZAPPLE)
Newsgroups: comp.sys.mac.programmer
Subject: Symantec/THINK C ftp site
Keywords: Symantec, THINK C, ftp
Date: 7 Apr 92 19:10:27 GMT
Organization: Duke University; Durham, N.C.

I used to know of the existance of an ftp site containing THINK C
upgrades, snippets of code, etc. To my knowledge, it was the
"official" Symantec site. Could anyone with the ftp address
please post it to this newsgroup or email me directly?

Many thanks,
Jason Holtzapple
 


-- 
 /----------------------------------------------------------------\
| Jason Holtz                            jth@raphael.acpub.duke.edu|
|       "And the knowledge that they fear is a weapon to be        |
 \ ********  used against them"  - The Weapon, 1982  ************ /
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc
From: rsfinn@concerto.lcs.mit.edu (Russell S. Finn)
Subject: Re: ResEdit Easter Eggs
Organization: MIT Laboratory for Computer Science
Date: Wed, 15 Apr 1992 20:03:28 GMT

In article <14APR199221570481@mitme5.mit.edu>, kettler@mitme5.mit.edu (KETTLER, THOMAS R.) writes:
|> For those who are interested, I will say why we in the USA use
|> color and flavor instead of colour and flavour, etc. It is because
|> of President Theodore Roosevelt....

As I've mentioned to my schoolmate in a separate letter, it was in
fact Noah Webster, in his dictionary of the "American Language", who
had introduced these spelling reforms, along with others that caught
on ("jail") and many that did not ("tho", "tuff").  Webster's first
dictionary was published around 1806, if I remember correctly, but in
any event close to a hundred years before Roosevelt's presidency.

-- Russell S. Finn
rsfinn@lcs.mit.edu
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Two basic questions from an advanced programmer
Date: 14 Apr 92 21:29:53 GMT
Organization: Kalamazoo College

In article <scott.703276812@mcl> scott@mcl.mcl.ucsb.edu (Scott Bronson) writes:
>
>The way that makes the most sense to me
>is to simply keep running through your main event loop, tracking
>the mouseDown across calls to WNE.
>I'd rather have my computer appear
>sluggish than abort a transfer in the background for lack of processor
>time, though!

I don't know of any programs that go to this extreme.  It makes sense if
the user will have to drag something for a long time.  But the Finder
doesn't even do this for file-dragging.

If you're really concerned, I hear there's an INIT that calls SystemTask
or EventAvail or something during menu selection.  I'd have reservations
about its compatibility, though.

And it's been my experience that file transfers can survive a lot.
White Knight and ZTerm both handle ZModem quite well for ten or fifteen
seconds without events (at 2400 baud).
-- 
 Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
 Ceci n'est pas une .signature.
From: ksand@apple.com (Kent Sandvik)
Newsgroups: comp.sys.mac.programmer
Subject: Re: C++ Critique in comp.lang.c++
Date: 11 Apr 92 23:47:30 GMT
Organization: MacDTS Mongols

In article <1992Apr8.121726.17568@syacus.acus.oz.au>, ian@syacus.acus.oz.au (Ian
Joyner) writes:
> 
> Have Apple made a mistake by adopting the C++ route. I have posted a critique
> in comp.lang.c++ which may help answer such questions.

You might as well ask why the whole PC computing industry has made a
mistake by adopting C++. We are not alone in the same boat...

Cheers,
Kent Sandvik, Dynamic Language Evangelist (all those Algol-based languages
are the same anyway).
From: d88-jwa@byse.nada.kth.se (Jon W{tte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to turn File Sharing on?
Date: 10 Apr 92 23:26:21 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden
Originator: d88-jwa@byse.nada.kth.se

.umontreal.ca> casgrain@ERE.UMontreal.CA (Casgrain Philippe) writes:

	   I would like to know how to turn file sharing ON or OFF, not by
   using the Control Panel, but from within an application.
	   There seems to be no mention of this in IM VI.

OFF: Send a quit apple event to the File Sharing process.
ON: LaunchApplication on the File Sharing extension.

FindFolder, PBCatSearch, GetNextProcess, GetProcessInfo and the
AE manager seems to be the parts you need.

-- 
h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
Newsgroups: comp.sys.mac.programmer
From: salaing@eos.ncsu.edu (Scott Laing)
Subject: PATCHING THE FINDER (?)
Reply-To: salaing@eos.ncsu.edu (Scott Laing)
Organization: Project EOS - North Carolina State University
Date: Sun, 12 Apr 1992 07:57:53 GMT

Hello, I'm trying to modify an INIT I wrote sometime ago so it will patch 
the Finder on start-up, rather than modify the shutdown queue.  All it has
to do is change the routine when "Shutdown" is chosen so that a dialog (of 
my own) is shown before ShutDwnPower is called.

Something that does this is Grouch.  It places a menu item to display an 
about box in the Special menu.

Does anyone have any example code to do this?  Know where I can find some?

Thanks,
Scott
salaing@eos.ncsu.edu
From: cpastore@unity.ncsu.edu (Chris Pastore)
Newsgroups: comp.sys.mac.programmer
Subject: FSWrite()
Keywords: modeless dialog, TCL
Date: 9 Apr 92 15:39:39 GMT
Organization: North Carolina State University Computing Center

I'm trying to dump sectors onto the internal floppy of a MacIIcx using
FSWrite().  Inside Mac suggests that the reference number is -5.
However, when I try this, i get an error that it is unable to open that
device.

Any suggestions/help?

Thanks in advance...


-- 
Christopher M. Pastore 	    |Life would be so pleasant
NC State University         |If we all could be
Textile Materials Science   |Helpless, homeless creatures
cpastore@nelson.tx.ncsu.edu |Marching to the sea.
From: Carl.Constantine@BCSystems.GOV.BC.CA
Newsgroups: comp.sys.mac.programmer
Subject: Re: Macintosh C Programming primer examples (Q) Where?
Date: 7 Apr 92 14:49:17 GMT
Organization: BC Systems Corporation

In article <6APR199201310038@amber.mgh.harvard.edu>, burglin@amber.mgh.harvard.edu (Thomas Burglin) writes:
> Hi, I was wondering if any ftp site out there has at least some
> of the example programs from the two books:
> Macintosh C Programming Primer vol I & vol II.
> Maybe not, since that might be an infringment on the copyright (I
> didn't read the small print in the book).
> But if anybody knows of some source for the example codes, 
> I would appreciate the tip. (No, I don't want to pay megabucks
> for the disk as advertised in the back of the book)
> Thanks
> Thomas Burglin
> burglin@frodo.mgh.harvard.edu

I have most of the programs finished in Vol. 1 but I haven't started on Vol. 2
yet as I only have a Mac Plus (soon to be an LC II when my Tax return arrives)
so I can e-mail them to all who are interested.  Please send me e-mail directly
as I can't always read the news.

If anyone has a problem with this please let me know, otherwise I'm willing to
send them out.  I should be able to send them next week some time (April 13 or
so) as it will give me time to finish the last 4 programs in Vol. 1.



-- 
Carl.Constantine@BCSystems.gov.bc.ca
Victoria, British Columbia, Canada
Newsgroups: comp.sys.mac.programmer
From: stoodt@cis.umassd.edu (Michael Stoodt)
Subject: Re: How to convince Mac+ it has 6-meg of RAM ?????????
Keywords: Mac+, RAM, 6-meg
Organization: University of Massachusetts Dartmouth
Date: Fri, 10 Apr 1992 18:43:20 GMT

In <1992Apr10.101110.4234@donau.et.tudelft.nl> sietze@tardis.et.tudelft.nl (;Sietze Schukking) writes:
>.... This board would for example insert 2 megB of RAM between address
>6meg and 8meg.

>So now the problem again what must i do to let the Mac+ use it?

>Somebody suggested something like patching some kind of free memory structure
>to fake the system into believing it got 8megByte of memory with a non
>relocatable block between 4meg and 6meg ( where the ROM's and SCSI are located)

>I think it is possible (in hardware) to extend the memory configuration of a
>Mac+ to 7,5 megB.

>As you can see I am a hardware person and not to deep into software so please
>help me out.

You're not going to be able to do this without getting deep into the
software, fiddling around with the Memory Manager's data structures
and patching its calls at init time.  And what you'll get as a result
will be fragmented memory; even if you can convince the Memory Manager
that it's ok for it to have this massive immovable block in the middle
of its space, then (assuming you're running Multifinder or System 7)
an application will be able to access either the bottom part (the
under-4MB area) or the top part (your add-on), but not both, because
the heap the Memory Manager creates for it will have to be contiguous.
(And you won't be able to control in which area the application goes,
either, except by launching them in a certain order - application
heaps are allocated top-down - or by making the application request
too much memory to fit in the smaller of the two parts (note that the
system heap is at the bottom of memory, so the bottom part might have
less space available than the top if the system heap is large
enough).)

There comes a point where one says, "this is too much trouble; time to
go out and buy an LC or better"; I think you're probably close to it.

                  Michael Stoodt
Newsgroups: comp.sys.mac.programmer
From: zobkiw@world.std.com (Joe Zobkiw)
Subject: Re: Extra QD Text Styles - how??
Organization: The World Public Access UNIX, Brookline, MA
Date: Thu, 9 Apr 1992 14:10:56 GMT

Carl -

To support double underline and strike-thru, etc...I think you're going to
need to write an MDEF. See Inside Macintosh for information on writing
such a beast.


-- 
<--------------------------------------------------->
 joe zobkiw                     zobkiw@world.std.com
 mac.synthesis.MIDI.development.C.asm.communications
>---------------------------------------------------<
Newsgroups: comp.sys.mac.programmer
From: russotto@eng.umd.edu (Matthew T. Russotto)
Subject: Re: no BusErrors when writing to nonexistent NuBusSlot with Quadra
Date: Tue, 14 Apr 92 15:14:25 GMT
Organization: College of Engineering, University of Maryland, College Park

In article <1992Apr14.100952.2164@cs.tu-berlin.de> ostheim@opal.cs.tu-berlin.de (Joachim Ostheimer) writes:
>
>
>With the introduction of the quadra, apple changed 
>the way the mac reacts to a BusError.
>  
>The Change: when you try to _write_  to a nonexistent
>address -> nothing happens, no BusError as with
>any other Mac.
>For a hardware projekt, I have to make _even_the_Quadra_
>generate a BusError on illegal writes in NuBus
>address space.

On the 68030 and 68851, if the memory address is not in the
translation table (or is marked invalid), a bus error is generated
whether it is a write or a read.  Apple would not have been able to
change this-- therefore, either the 68040 changed it, or a bus error
DOES happen, but the default handler just skips the offending
instruction.  If the latter, all you have to do is install your own
bus error.  


-- 
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures.  Make them use force.
(not responsible for bodily harm resulting from following above advice)
From: glin@lehi3b15.csee.Lehigh.EDU (George Lin [900116])
Newsgroups: comp.sys.mac.programmer
Subject: Help with decision
Date: 8 Apr 92 00:10:52 GMT
Article-I.D.: lehi3b15.1954
Reply-To: glin@lehi3b15.csee.Lehigh.EDU (George Lin [900116])
Organization: CSEE Dept. Lehigh University, Bethlehem, PA

Hi.

I'm thinking about starting programming on the Mac but I'm not
sure if I should go with Think C, or Mac App, or whatever.

I did a lot of Turbo Pascal on the PC and some Turbo C, and some
Lattice C on the Amiga.

Any pros & cons about either packages?  Do you need an additional
programming language to work together with Mac App?

GL

Thanx.
Newsgroups: comp.sys.mac.programmer
From: goodill_eric@tandem.com (Eric Goodill)
Subject: What are the .inx and .ttl files for in Spinside Mac?
Organization: Tandem Computers, Inc.
Distribution: usa
Date: Fri, 17 Apr 1992 01:29:54 GMT

I recently got the HyperCard version of Inside Mac called Spinside Mac.
There are two files that don't seem to be used.  They have suffixes
inx and .ttl.  I've compressed these files so they are no longer
available to Spinside Mac, but Spinside still works.  Are files useful?
They are certainly big, and I'd like to free up some disk space.

Cheers, Eric Goodill
goodill_eric@tandem.com, Tandem Computers, Cupertino, California
From: f85-tno@nada.kth.se (Tommy Nordgren)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to tell if a window has a title bar?
Date: 6 Apr 92 15:14:47 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In article <1992Mar26.212538.4018@dartvax.dartmouth.edu>, Joe.Francis@dartmouth.edu (Joe Francis) writes:
|> In article <1992Mar26.185108.14007@nic.funet.fi>
|> asunta@convex.csc.FI (Miika Asunta) writes:
|> 
|> >>How then do I determine if my window has a title-bar? (Or, just in case I've
|> >>lost the woods for the trees, how do I accurately center my windows?)
|> [Tim North]
|>  
|> > You should use rgnBBox Rect of structRgn from WindowRecord instead
|> > of portRect.    [Miika Asunta]
|> 
|> No.  This value will be invalid if the window has not been drawn on the
|> screen.  Since one of the primary uses of centering windows is to
|> create the window invisible, center it, and then show it, structRgn is
|> not a general solution to this problem.
|> 
|> I even tried sending the WDEF a calc regions message to try to fool it
|> into validating structRgn, but (under system 7, at least) this will
|> result in confusing the window manager beyond help.
|> 
|> I don't have a good general solution to this problem.  I end up looking
|> at the window variant and assuming it's a standard window variant (as
|> opposed to a custom WDEF that might have a different structure region
|> from the standard WDEF).  If anyone can improve on this, please clue
|> the rest of us in!
Beside checking the variant code, also get Resource info for the window
definition procedure. If the ID is 1 then it is a standard window.
From: d88-jwa@hemul.nada.kth.se (Jon W{tte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C, TCL, AppleTalk Async calls and a question
Date: 11 Apr 92 10:30:48 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden
Originator: d88-jwa@hemul.nada.kth.se

.uci.edu> jsuker@orion.oac.uci.edu (Johnathon L. Suker) writes:

   calls in the main event loop of your program.  In TCL I do not have access 
   to this and inorder to put something in their I must changing the source 
   code of TCL (which Symantec says is BAD).  Has anyone (or does anyone) know 

Of course you do !

Your gopher will get a dawdle message, or you can install~
CIdleChores.

-- 
h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!
Newsgroups: comp.sys.mac.programmer
From: grstate@crocus.waterloo.edu (Gavriel State)
Subject: Re: Picture Utilities Trap (Pack ;-))
Keywords: PICT, graphics, sys7
Organization: University of Waterloo
Date: Fri, 17 Apr 1992 02:37:20 GMT

In article <1992Apr15.020351.24286@newshost.anu.edu.au> ralph@mulga.mso.anu.edu.au (Ralph Sutherland) writes:
>Hi,
>	I am using the picture utilities to analyse pictures and get
>colour tables to optimise displays on CLUT displays.  I had no problems
>at first, when I opened my picture everything worked as expected and
>my beautiful picture was.
>	However, when I tried starting up by double clicking on the
>PICT file from the finder I got a bus error in the middle of PACK 15
>the utilities PACK.  (A0 contained garbage and was dereferenced...)
>	Now my opendoc handler calls the same file loading procedure
>as my normal open file procedure does, so the code was the same.  
>The only difference was that with the opendoc method, I had loaded the
>picture and tried to analyse it *BEFORE THERE WERE ANY OPEN WINDOWS, IE
>THERE WAS NO PORT THAT HAD BEEN SET TO*.  Normally there was always some
>window around that was presumably being used by PACK 15.  So I now
>make sure a window is opened and has had a setport call on it before I 
>call GetpictInfo and I no longer have the errors.

Actually, you may find that that is not your problem at all.  See, _Pack15
is badly badly twisted and broken in some bits.  I was working with it on 
my co-op work term last Fall, and found no fewer than 4-5 fatal 
heap-corrupting bugs (mostly when trying to get a CLUT with a reduced number
of colors).  A kind kind soul at DTS (who's name doesn't immediately come
to mind, making me feel very foolish) provided a fixed version of the 
resource via AppleLink, but said that it might be a while before the 
fix made it into the System.  I do not know if it has made it in yet or not.

You are likely only experiencing a temporary respite from the problem 
because when opening a window you move memory around - _Pack15 is most 
likely just stepping on memory somewhere else.  Try doing a checksum 
on your code resources before and after calling _Pack15.  That is how 
I knew that I had a problem.

As another aside, this is precicely the situation where you would expect 
memory Protection to come in handy.  Unfortunetly, the only Memory 
Protection Aware debugger was Jasik's Debugger, and it only provides 
protection between applications, not within your application.  It 
would be great if a future version of either The Debugger or perhaps
SADE would provide the ability to protect the heap structures (disallow
access to areas not inside an application's heap blocks) and/or arbitrary 
protection of a given data area.  This feature would save a huge amount
of grief for many many people, methinks.


-- 
Gavriel State | 2A Systems Design Engineering/Economics | University of Waterloo
grstate@crocus.uwaterloo.ca (School)  |  "What in God's name is going on?"
grstate@vader.ocunix.on.ca (> Apr 17) |   "FOUL!  No rhetoric!  Two-one!"
(519)746-2215 (Waterloo)              | Rosencrantz and Guildenstern are Dead
Newsgroups: comp.sys.mac.programmer