HDTenEightyP/NetNews huggingface dataset:
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Re: Shareware legality question
Organization: University of Delaware
Distribution: comp.sys.mac.programmer
Date: Sat, 12 Sep 1992 02:55:34 GMT

In article <01050166.cgucc7@joebloe.maple-shade.nj.us> joseph@joebloe.maple-shade.nj.us writes:
>In article <BtvFx6.L9x@news.cso.uiuc.edu> (comp.sys.mac.programmer), resnick@cogsci.uiuc.edu (Pete Resnick) writes:
>) >I submitted a shareware copyrighted program to sumex-aim.  In the
>) >README file I included a line that read <Public domain houses, such as
>) >Educorp, must contact me before distributing this program>.  I guess I
>) >aint no legal wizard, and I should have worded that more carefully.
>) 
>) >Do I have any rights here, or did I goof with my language.
>
>You can certainly make them stop.  Alas, you have no other remedy
>if your work is not registered with the Library of Congress.

I am almost certain that this is not correct.  A few years ago, I was
in the middle of a very annoying and complicated legal snarl involving
some copyrighted material, and I requested some free literature from
(I believe) the U.S. Copyright Office in Washington (I may be wrong
about the department name).  

I remember reading that you don't have to register your work with the
Library of Congress for your work to be copyrighted; all you have to
do is include a copyright notice in the form (c) 1992 by Joe Smith.
It seems to me that the literature specifically dismissed the need
to register with the Library of Congress as a common myth.
What registry with the Library of Congress does accomplish is to
make it much easier for you to establish yourself as the rightful
holder of the copyright, should the issue ever go to court.

I recommend that you call information in Washington, obtain the number
for the U.S. Copyright Office, and request literature on copyrighting
your work.  I hope you did include a copyright notice with your
material, since you give up your copyright once your work is released
without one.

--Kurisuto
kurisuto@bach.udel.edu
Newsgroups: comp.sys.mac.programmer
From: mspace@netcom.com (Brian Hall)
Subject: Re: Where can I get the Mac Hack Contest CD ?
Date: Mon, 07 Sep 92 23:52:44 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

greg@sys.uea.ac.uk (Greg Newton-Ingham) writes:
>The subject says it all.

Call ExpoTech at 313/882-1824 or send mail to "Expotech@aol.com".  I think
it is only $15 this year.

-- 

 \ | /   | Brian Hall                 mspace@netcom.com
 - : -   | Mark/Space Softworks       Applelink: markspace
  /|\    |                            America Online: MarkSpace
 |-+-|   |
/-\|/-\  | The tornado ate my powerbook.
Newsgroups: comp.sys.mac.programmer
From: kent@sunfs3.Camex.COM (Kent Borg)
Subject: Re: Is a resource fork already open?
Organization: Camex Inc., Boston MA
Date: Tue, 08 Sep 1992 16:09:46 EDT

In article <1992Sep8.153520.10687@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
>In article <39464@imag.imag.fr>, cinquin@imag.fr ( Philippe Cinquin) writes:
>> Sorry if this is a stupid question, but how do you know if the resource fork of
>> a file is already open?
>
>If a file is already open by somebody else, you'll get an error if you try
>opening it in a mode that's incompatible with the other person's open mode.
>
>But I suspect you're really asking what happens when you open a resource file
>twice from the same application. The answer is, you will get the same file
>refnum back the second time. So how do you tell that this is happened? It can
>be done, without too much low-level messing about.
>
>The Resource Manager maintains a chain of currently-open resource files.
>It loads the "resource map" structure from each file into memory, and fills
>in a link field to chain all the resource maps together. There are two
>important low-memory globals that are used for this:
>
>	TopMapHndl -- handle to the first resource map in the chain
>	CurMap -- refnum of the "current" resource file (returned by
>	    CurResFile, can be changed with UseResFile to point anywhere
>	    along the chain).

Um, when the obvious stares me in the face but is missed by the likes
of Lawrence D'Oliveiro, I tend to assume I am wrong.  However, I just
did this and if my solution is busted I want to know about it, so it
is limb climbing time.

If you want to know whether a file is already open, why not ask by
calling PBGetFInfo()?  II-115: "If the file is open, the reference
number of the first access path found is returned in ioFRefNum...".

On further critical reading, the phrase "first access path found"
makes me wonder.  Might it be the same as the "first resource file in
the chain".  No, because PBGetFInfo() doesn't know which interests
me--or does it?

Is it what I need?  If a different application has the file open, do I
get that app's refnum?

OK, Lawrence, please explain this to me, and now that I have done my
best to confuse the net.world, explain it to them too.  

Thanks bunches.


--
Kent Borg            kent@camex.com or (when it is *working*) kentborg@aol.com
                                            H:(617) 776-6899  W:(617) 426-3577
As always, things look better when some costs are left out.
						      -Economist 3-28-92 p. 94
Newsgroups: comp.sys.mac.programmer
From: davecole@cie.uoregon.edu.uoregon.edu (Dave Cole)
Subject: Harvest C and loss of System FIle
Organization: University of Oregon Network Services
X-Newsreader: Tin 1.1 PL5
Date: Mon, 14 Sep 92 04:51:58 GMT

  Has anyone else had the SYSTEM file chewed up, spit out, and just generally
trashed by Harvest C 1.2, under System 7, or is it just me?

--
Name:     David C. Cole
E-MAIL:   Internet: davecole@uoregon.cie.edu
          GEnie:    ASTRONOMY

==Astrophotography Forever==

Newsgroups: comp.sys.mac.programmer
From: misra@ctp.com (Mark Israel)
Subject: Re: Newton Developing
Date: Mon, 14 Sep 1992 13:18:57 GMT
Organization: Atex Inc., A Kodak Company

>Newsgroups: comp.sys.mac.programmer
>Path: ctp!psinntp!psinntp!uunet!europa.asd.contel.com!darwin.sura.net!zaphod.mps.ohio-state.edu!malgudi.oar.net!caen!destroyer!ubc-cs!alberta!kakwa.ucs.ualberta.ca!access.usask.ca!ccu.umanitoba.ca!umdenbo0
>From: umdenbo0@ccu.umanitoba.ca (David A. Denboer)
>Subject: Newton Developing
>Message-ID: <1992Sep8.155117.13465@ccu.umanitoba.ca>
>Sender: news@ccu.umanitoba.ca
>Nntp-Posting-Host: pollux.cc.umanitoba.ca
>Organization: University of Manitoba, Winnipeg, Canada
>Date: Tue, 8 Sep 1992 15:51:17 GMT
>Lines: 8

>Could someone please mail me the address for the Newton Developer information.
>It was posted here a while back, but I cant remember it.

>Thanks,
>-- 
>David A. denBoer
>Musi Computer Products
>umdenbo0@ccu.umanitoba.ca

Could you post it here, so that we all can have it.
-- 
Mark Israel
Cambridge Technology Partners
misra@sunnyvale.is.lmsc.lockheed.com
+1 408-524-6343
From: ldh@svl.cdc.com (Lawrence D. Hare)
Newsgroups: comp.sys.mac.programmer
Subject: MacBinary Public Domain Code Availability
Date: 11 Sep 92 22:40:49 GMT
Organization: Control Data Systems
X-UserAgent: Nuntius v1.1.1d9
X-XXMessage-ID: <A6D66D53DC010456@ethelred.svl.cdc.com>
X-XXDate: Fri, 11 Sep 92 15:35:47 GMT

So whump - I have MacTCP TCPing and everything works only my binaries are
no more. 'course I knew this was going to happen and I have just
retrieved the specs of the MacBinary I and II standards. So - next
question:

Are there any C coded, public domain, publicly available, interface
functions that meet these specs available?

Should I go with MacBinary I or II? Guess II...

As this requires binary transfer across networks, using Unix systems as
staging posts, MacBinary is NOT a requirement - so is there any other
means of sending a file and retaining file attributes. I could create a
new resource, add in the creator and type, and then send the file. When
received I check for the resource, if not there I assume it is a text
file. If it is there I remove the resource, set the attributes and Bob's
yer Uncle! 'corse, this might be a problem for files with no resource
fork, like spreadsheets. I could add one, then add my resource. When I
retrieve the file I remove the resource fork, or have the fact that there
is no resource fork as an attribute in my new resource, so when I
retrieve the file I just create the data portion. And so on...

Any ideas?

Thanks...
--
Lawrence D. Hare       Control Data - Silicon Valley Operations
Consultant             Voice: (408) 496 4339 - C/N [234] 4339
ldh@svl.cdc.com        Mail: SVLa60  FAX: (408) 496-4106
Newsgroups: comp.sys.mac.programmer
From: mgleason@cse.unl.edu (Mike Gleason)
Subject: BlockZero.c snippet
Organization: NCEMRSoft
Date: Tue, 15 Sep 1992 18:50:19 GMT

I think J. McCarthy & M. Mora started a good idea by posting code snippets here,
so here's a freebie function that clears an area of memory (which can start
on an odd boundary).  It's much faster than using memset(ptr,0,n) because
this function uses move.l's for the majority of the block.  It compiles
under Think C, but the asm {} blocks may break other compilers.

I use this function all the time, especially when dealing with parameter
blocks. e.g.:

#define ZERO(a) BlockZero(&(a), sizeof (a))

{
    HParamBlockRec  pb;

    ZERO(pb);
}


Code follows.  Further optimizations, your cool code snippets, bug fixes
<gulp> welcome....

----------------

void BlockZero(void *area, register unsigned long n);

void BlockZero(void *area, register unsigned long n)
{
    register char               *p = (char *)area;
    register unsigned long      fours;
    register unsigned long      remainder, zero;

    if (n) {
        if ((long) p & 01) {
            /* Ptr on an odd boundary... */
            asm {
                clr.b       (p)+
            }
            --n;
            /*
             * Ptr is now on an even boundary,
             * and it's first byte is zeroed.
             */
        }
        
        fours = n / 4L;     /* Can be zero. */
        
        /* Do the meat of the block using longwords for speed. */

        asm {
                clr.l       zero
                bra         @2
        @1:     move.l      zero, (p)+
        @2:     subq.l      #1, fours
                tst.l       fours
                bge         @1
        }

        /*
         * If the size of the block isn't divisible by 4, we'll
         * have to do the remaining bytes (up to 3) by hand.
         */

        remainder = n & 03;     /* same as remainder = n % 4. */
            
        asm {
            bra             @4
        @3: clr.b           (p)+
        @4: dbra            remainder, @3
        }
    }
}   /* BlockZero */

/* eof BlockZero.c */
--
--mg                                                      mgleason@cse.unl.edu
Newsgroups: comp.sys.mac.programmer
From: bredell@tdb.uu.se (Mats Bredell)
Subject: Re: UseResFile() problems with CTB Tools
Reply-To: Mats.Bredell@udac.uu.se
Organization: Uppsala University Computing Center (UDAC)
Distribution: comp
Date: Wed, 9 Sep 1992 08:07:08 GMT

ulfis@cyklop.nada.kth.se (Anders Ulfheden) writes:
: 
: The tool itself contains font information to be used in the tools settings
: dialog. I should read this information from the tool to make my custom choose
: dialog look good.
: 

Most tools contain a 'finf' resource that tells what font, size and style to
use for the settings dialog. I tried to use this resource, but found that
some tools don't have it.

What am I supposed to do if there isn't such a resource? The tool I found that
was lacking this resource, apparently wanted Geneva 9. Should I set the font
to Geneva 9 if I can't find this resource?

/Mats
-- 
Mats Bredell                                   Mats.Bredell@udac.uu.se
Uppsala University Computing Center (UDAC)     Ph:  +46 18 187817
Department of medical systems                  Fax: +46 18 187825
Sweden                                         Think straight - be gay!
From: chuck@gte.com (Chuck Hoffman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Where can I get the Mac Hack Contest CD ?
Date: 9 Sep 92 14:23:23 GMT
Followup-To: comp.sys.mac.programmer
Organization: GTE Laboratories

In article <1992Sep7.094105.3825@sys.uea.ac.uk>, greg@sys.uea.ac.uk (Greg
Newton-Ingham) wrote:
> 
> 
> 
> The subject says it all.
> 
> Greg Newton-Ingham	<Greg@sys.uea.ac.uk>

Comes from Expotech, Inc.  Grosse Pointe Park, Michigan

Phone  313-882-1824
Fax    313-882-6942
Internet: expotech@aol.com
America Online: expotech


Chuck Hoffman
chuck@gte.com
GTE Laboratories, Waltham, Massachusetts, USA
(617) 466-2131
=====================================
I'm not sure why we're here, but I am sure that while we're here we're
supposed to help each other.
=====================================
Newsgroups: comp.sys.mac.programmer
From: asunta@convex.csc.FI (Miika Asunta)
Subject: Re: Look before you Leap
Organization: Finnish Academic and Research Network Project - FUNET
Date: Wed, 9 Sep 92 14:39:15 GMT

In <lanbtrINN8tj@pollux.usc.edu> suhler@pollux.usc.edu (Paul A. Suhler) writes:

>A note for those writing programs that calculate future dates:
>unless I'm mistaken, any year which is integrally divisible by 400
>is NOT a leap year.

>Paul Suhler

Howzabout 2000/400=5?

1980,1984,1988,1992,1996,2000

Miika
--
Miika Asunta
asunta@convex.csc.fi			Double Bass Player
tel. +358-0-494 093			Macintosh Programmer
From: urlichs@smurf.sub.org (Matthias Urlichs)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Advice requested: keyboard programming
Date: 10 Sep 1992 14:46:55 +0200
Organization: University of Karlsruhe, FRG
NNTP-Posting-Host: 127.0.0.1

In comp.sys.mac.programmer, article <1992Aug26.194149.10299@leland.Stanford.EDU>,
  cuong@haydn.Stanford.EDU (Cuong T. Nguyen) writes:
> 
> I want to implement a Vietnamese keyboard for the Mac.

No you don't. You want to implement a Vietnamese script for the Mac.
The difference is that the Mac's Script Manager already supports most of what
you're trying to do, without ugly hacks like backspace-and-replace.
You'll have to implement the Vietnamese-specific parts and (of course) create
one or two Vietnamese fonts.

There already are a few versions of 7.0.1 which do this sort of thing, for
Thai and Korean; I don't know if any of these are sufficiently close to
Vietnamese but the mechanics should be similar. 

Support for scripts is supposed to be better in System 7.1, currently in
beta. I haven't been able to try it because I need MacTCP for my "real" work,
and it's severely incompatible with 7.1.  :-(

> An estimate of task difficulty will also be appreciated.

Not that easy. You won't be able to get away with the BS hack; the Mac's not
Unix, nor is it Windows.

-- 
Kirk:  "Did you find the Engine Room ?"
Scott: "Right where I left it, sir."

[James T. Kirk, Montgomery Scott --- Star Trek VI: "The Undiscovered Country"]
-- 
Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
From: greg@sys.uea.ac.uk (Greg Newton-Ingham)
Newsgroups: comp.sys.mac.programmer
Subject: Where can I get the Mac Hack Contest CD ?
Date: 7 Sep 92 09:40:09 GMT
Organization: School of Info. Systems, UEA, Norwich, UK
X-Useragent: Nuntius v1.1



The subject says it all.

Greg Newton-Ingham	<Greg@sys.uea.ac.uk>
From: app@shamash.cdc.com ( GSD Advanced Packing/Processes)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Shareware compilers
Date: 11 Sep 92 17:02:43 GMT
Organization: Control Data, Arden Hills, MN

>> which I use quite a bit is Yerk, the other is Mops. 
>>  - they are object-oriented,...
>
>Where does one get Yerk, pray tell?
>
Both Yerk and Mops are available from oddjob.uchicago.edu, check out
the pub/Yerk and pub/MOPS directories.
Steve Axdal
Computer Devices International
app@shamash.cdc.com



Newsgroups: comp.sys.mac.programmer
From: sainaney@unixg.ubc.ca (Narayan R. Sainaney)
Subject: finder hack and stuff
Followup-To: comp.sys.mac.programmer
Summary: getting finder selection and INIT globals
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Sat, 12 Sep 1992 04:49:01 GMT

Hello,
      Is there any way to find out what icon(s) have been currently 
selected (or are being dragged) in the finder from an application?? 

      And, how do you create application globals when you're making an INIT?   
So far, I have only been able to make patches and have not been able to maintain any globals.

Thanx in advance
sainaney@unixg.ubc.ca
From: jsp@uts.amdahl.com (James Preston)
Newsgroups: comp.sys.mac.programmer
Subject: Re: What is error -5016?
Date: 15 Sep 92 00:09:16 GMT
Reply-To: jsp@pls.amdahl.com
Organization: Amdahl Corporation, Sunnyvale CA

cwhi2@cs.aukuni.ac.nz (Craig Dean          Whitmore       ) writes:

}This -5016 problem is a special error that programmers introduced to indicate
}that the 680x0 was going into superviser mode and if the person didn't turn
}the MAC off in the next five years that there MMU would cease to function.

Well, shucks, I did this on a PB100.  I didn't think it had an MMU.

}I don't know why you should get that error - the only way that this error
}came up was when programmers did a call to the operating system to open a
}screen with dimensions of 244 x 199 and to turn on file sharing. 

Wow, you sure must be right, 'cause that's EXACTLY what I did just before
the call to ResolveAlias!  So if I make the screen 244 x 198 it should
work, right?

}- but that
}didn't work all the time.   If this thing happens again you should in my
}opinion sue macintosh for releasing macintosh computer without getting all
}there bugs out of their machines.

Ok, are you a lawyer?  Go ahead and start the suit for me, we can talk
about your fee later, after you've won the 27.3 million dollars for me.

--James Preston

Newsgroups: comp.sys.mac.programmer
From: danny@utkux1.utk.edu (Danny W. McCampbell)
Subject: Error Checking Question?
Organization: University of Tennessee
Date: Mon, 14 Sep 1992 14:13:56 GMT

Can someone give me a really detailed report on error checking.
I know that it would be good practice to error check everything.
The question is what do you do in situations where an error 
occurs but your program is able to continue?  Kinda crippled though.
I mean for instance what should you do if your program is setup
to handle appleevents and when you intialize the AppleEvents an
error occurs.  The program will still operate all right with
out them installed, but the AE being present just adds a little bit
more functionality to the program such as when the user issues
a ShutDown command from the finder then the App will recieve a 
QuitApp command.  Since the app failed to initialize the AE then
it would just sit there waiting for the user to manually quit the
app so the computer could continue to shutdown.  Any ideas and
suggestions would be greatly appreciated.

Thanks
Danny
Newsgroups: comp.sys.mac.programmer
From: killer@wimpy (karl kowalski)
Subject: Printing in Color or not
Keywords: Color Printing
Organization: The Aerospace Corporation; El Segundo, CA
Distribution: general
Date: Mon, 14 Sep 1992 16:56:06 GMT

Hi!

Once again, I'm kinda stuck.

I have a display, in color, that I wish to have printed. The user tells  
the app to Print, popping up the standard Macintosh print dialog (from  
PrJobDialog), which as of System 7 contains several radio buttons whose  
values I'd really really like to know. After a few searches through Inside  
Macintosh V and VI and X-Ref, I still haven't been able to find where  
those values are kept (specifically, I'd like to know and act upon a  
user's choice of Color Postscript/Grayscale vs. Black and White output).  
Anyone have the locations? Kindly email to me direct. Or not.

Thanks in advance,

Karl G Kowalski
killer@aerospace.aero.org
killer@wimpy.aero.org
From: Joe.Francis@dartmouth.edu (Joe Francis)
Newsgroups: comp.sys.mac.programmer
Subject: Re: GetColor bug (was RE: NON-QUICKDRAW GAMES)
Date: 11 Sep 92 00:59:24 GMT
Organization: Dartmouth College, Hanover, NH
X-Posted-From: InterNews1.0a4@newshost.dartmouth.edu

In article <28629@vedge.UUCP>
brad@vedge.UUCP (Brad Fowlow) writes:

> Any thoughts on a PM-friendly way to get back the "normal"
> system palette when my last paletted window dies,
> just as happens when the app quits?

I'm hopeful that someone else will post a more elegant way, but one way
to do what you want is to detect when you are closing your only window,
EraseRect it's portRect, and set it's Palette to the system palette,
*then* close the window.  
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.apps
From: chai@m.cs.uiuc.edu (Ian Chai)
Subject: Re: 2up, double-sided printing
Organization: University of Illinois, Dept. of Comp. Sci., Urbana, IL
Date: Tue, 8 Sep 1992 14:26:54 GMT

callan@csd4.csd.uwm.edu (Joel E Callan) writes:
>the info-mac directory: /util/save-a-tree-152.hqx

>  Save-a-tree will allow you to print multiple pages on a single page of
>paper (hence the name). Of course, the type is small, but what did you
>expect when you try to cram more text onto a single page? With a laser
>printer, there is really no problem in viewing the text (save those with
>vision problems).

Won't work for him, Joel. Save-a-tree only works with TEXT files, last
I checked, and Steve has a Word file -- that's part of his problem as
he doesn't know Word and it gets messed up when he converts to WN and
it's got lots of fonts, etc. which means textifying it and using
save-a-tree would be really bad.

(Actually, I guess this is a message for Steve: don't try save-a-tree:
Joel probably didn't realize you were talking about a highly-formatted
Word file.)
Newsgroups: comp.sys.mac.programmer
From: leonardr@netcom.com (Leonard Rosenthol)
Subject: Re: UseResFile() problems with CTB Tools
Date: Wed, 09 Sep 92 17:12:53 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: comp

In article <1992Sep9.080708.6006@tdb.uu.se> Mats.Bredell@udac.uu.se writes:
>ulfis@cyklop.nada.kth.se (Anders Ulfheden) writes:
>: 
>: The tool itself contains font information to be used in the tools settings
>: dialog. I should read this information from the tool to make my custom choose
>: dialog look good.
>: 
>
>Most tools contain a 'finf' resource that tells what font, size and style to
>use for the settings dialog. I tried to use this resource, but found that
>some tools don't have it.
>
	That's true.  Also, with System 7 there is a NEW resource type that is
used by the xxChoose routines to track font/size information for a tool - the
'flst' resource.  So what you now have to do is check system version - if 
7 then look first for a 'flst' (Get1IndResource) and if you don't find it, then
go for the 'finf'.  Under 6, just get the 'finf'.

>What am I supposed to do if there isn't such a resource? The tool I found that
>was lacking this resource, apparently wanted Geneva 9. Should I set the font
>to Geneva 9 if I can't find this resource?
>
	If you don't find a 'finf' or 'flst' resource, then you should use
either Geneva 9, or be internally cool and use the Script manager to load the
the current application font & size.

-- 
-----------------------------------------------------------------------------
Leonard Rosenthol			Internet: 	leonardr@netcom.com
Director of Advanced Technology		AppleLink:	MACgician
Aladdin Systems, Inc.			GEnie:		MACgician

Newsgroups: comp.sys.mac.programmer
From: mspace@netcom.com (Brian Hall)
Subject: Re: UseResFile() problems with CTB Tools
Date: Mon, 07 Sep 92 23:55:16 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: comp

ulfis@cyklop.nada.kth.se (Anders Ulfheden) writes:
>Now, I really want to use the refNum to the actual tool and read some font
>resources. Do I manually have to locate the tool before doing this?

Not to be a pain, but why do you need to do that?  The only reason I ever
came up with for that was printing, but you can always TMPaint to a
printer grafport for that.

-- 

 \ | /   | Brian Hall                 mspace@netcom.com
 - : -   | Mark/Space Softworks       Applelink: markspace
  /|\    |                            America Online: MarkSpace
 |-+-|   |
/-\|/-\  | The tornado ate my powerbook.