HDTenEightyP/NetNews huggingface dataset:
From: "brad ward" <brad.ward@canrem.com>
Subject: macuser
Reply-To: "brad ward" <brad.ward@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 10 Jan 93 14:10:26 EST

Can some one help me.  I am looking for a article MacUser wrote on how a
colour monitor works.  I know it was writen either a year or two ago but
I have having trouble locating it.   I have the back issues, I can not
find it.  If any one know about the article I am talking about can you
please tell me.

Thanks

Brad:-)
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.sys.mac.programmer
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Subject: Re: SFGetFile's directory after an Open Event
Organization: Curtin University of Technology
Date: Tue, 5 Jan 1993 13:54:59 GMT

grobbins@Apple.COM (Grobbins) writes:

>In article <1993Jan4.205533.25405@kth.se> d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>>In <1993Jan4.190815.5881@ccu1.aukuni.ac.nz> russells@ccu1.aukuni.ac.nz (Russell Street) writes:
>>>After an application receives an 'odoc' Apple Event to open a document
>>>should it arrange it so the next Standard File [Open] Dialog that is
>>>brought up by the user is the same directory that the 'odoc' document
>>>came from?

Well, it seems to me that an odoc event should have nothing to do with
the StandarFile location.

>But what about when the user makes a change to the open document
>and then chooses Save As...?  Standard File continues to point to
>somewhere irrelevant (for most Apple event-aware apps, anyway.)

IMHO, Save As should ALWAYS set the StandardFile
location to the folder that the file previously existed in (assuming
it had a name/folder location beforehand of course).  That is, for a
file with a preexisting location on the disk, Save As, OK, Replace
should always replace the preexisting file.

>Except for those people who absolutely must control every aspect of
>their users' environment, my current recommendation is to leave
>Standard File alone.  At least this way, when the system software
>folks get around to making Standard File point somewhere meaningful,
>your code won't be interfering.

Seems to me the case of Save As where you already know the location
of the file is pretty clear cut.

Well, thats what I recon anyway :-)  If anyone finds that any of the
above made any gramatical sense whatsoever, please let me know and I'll
try to be more obscure next time :-)
   Peter.
-- 
_______________________________________________________________________
Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: How do I make my windows handle a multiple-monitor system?
Organization: Kalamazoo College
Date: Tue, 5 Jan 1993 22:04:55 GMT

d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>bskendig@netcom.com (Brian Kendig) writes:
>
>>To drag the window, I just set up a drag rect with
>>	dragRect = screenBits.bounds;
>
>That should be
>
>	dragRect = ( * GetGrayRgn ( ) ) -> rgnBBox ;

"Should" is such an iffy word.  Yes, it _should_, but it doesn't make
any difference;  Color QuickDraw's dragging routines detect any
rectangles that are similar to screenBits.bounds, and automagically
convert them into rectangles that are similar to
(**GetGrayRgn()).rgnBBox.  So those two lines of code will be handled
identically.
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "A degree in Computer Science from Berkeley didn't much qualify me to uphold
  the banner of Chaos against the forces of Order."              - R. Zelazny
Newsgroups: comp.sys.mac.programmer
From: jess@gn.ecn.purdue.edu (Jess M Holle)
Subject: ANSWER: MPW beep at end of build
Organization: Purdue University Engineering Computer Network
Date: Fri, 8 Jan 93 19:27:51 GMT

I posted a question regarding how to do this a couple of days back and
got no answers (though I did get responses).  Anyway, after studying
the MPW manuals and some experimentation, I got things working, so here
it is if anybody else wants it.

(I did this so that I could do other things during long builds and be
notified when they were done)

Jess Holle


#	BuildProgram - build the specified program
#
#	Usage:
#		BuildProgram program [optionsI] > log
#
#	The BuildProgram script builds the specified program (or target).
#	A simple transcript of the build is written to standard output.
#
#	Make is used to generate the build commands.  If file <program>.make
#	exists it is used as the makefile.	If not, file MakeFile is used.
#
#	The options specified are passed directly to Make, and control the
#	generation of the build commands.
#
#
#	Copyright Apple Computer, Inc. 1987 - 1990
#	All rights reserved.

Set Exit 1

#	Find the program parameter.

Unset program
For i In {"Parameters"}
	If "{i}" !~ /-E/
		Set program "{i}"
		Break
	End
End
If "{program}" == ""
	Echo "### {0} - Specify a program to build." > Dev:StdErr
	Echo "# Usage - {0} program [optionsI]" > Dev:StdErr
	Beep; Beep; Exit 1
End

#	Select the makefile.

Set makefile `(Files -t TEXT "{program}".make || 6
	Files -t TEXT MakeFile || Echo '""') 3 Dev:Null`
If "{makefile}" == ""
	Echo "### {0} - No makefile exists for {program}." > Dev:StdErr
	Beep; Beep; Exit 1
End

#	Run Make, then execute its output.

Echo "# `Date -t` ----- Build of {program}."
Echo "# `Date -t` ----- Analyzing dependencies."
Begin
	Echo "Set Exit 1"
	Echo "Set Echo 1"
	Make {"Parameters"} -f "{makefile}"
End > "{program}".makeout
Echo "# `Date -t` ----- Executing build commands."
Set Exit 0
"{program}".makeout || (Beep; Beep; Set Exit 1; Exit 1)
Set Exit 1; Beep; Beep  # this set of beeps can be moved to the end if desired
Delete "{program}".makeout
Echo "# `Date -t` ----- Done."
Set type "`files -i -n -x t "{program}" 3 Dev:Null || Set Status 0`"
If "{type}" =~ /E APPL/ OR "{type}" =~ /E MPST/ 	# application or tool
	Echo -n 6t; Quote -n "{program}"; Echo -n " "
Else If "{type}" =~ /E DFIL/						# desk accessory
	Echo -n 6t
	Quote -n "Font/DA Mover" "{SystemFolder}"System "{program}";
	Echo -n "  # Install DA"
End
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools
From: russotto@eng.umd.edu (Matthew T. Russotto)
Subject: Re: Stallman and friends
Date: Fri, 08 Jan 93 22:59:40 GMT
Organization: Project GLUE, University of Maryland, College Park

In article <gtall.726514732@ogre> gtall@ogre.cica.indiana.edu (Gerry Allwein) writes:
>I just a simple yes or no answer to a simple question: does a parser produced
>by GNU Bison fall under the FSF copyright?

YES!

(which makes bison useless for commercial work, which is no doubt what
Stallman intended)
-- 
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: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How might one patch the OS to automagically  reboot during hw/sw except
Date: 5 Jan 93 07:10:51 GMT
Followup-To: comp.sys.mac.programmer
Distribution: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <drutman.725933707@sol.UVic.CA>, drutman@sol.UVic.CA (D. Rutman)
wrote:
> 
> I  have a MMind director presentation using a dvi card that sometimes fails. I
> would like to ensure that the mac will reboot automatically in the event of 
> any software or hardware exception. The mac is in an unattended kiosk so if 
> it crashes, no one will fix it. So until  I pin down whether the cause, I'd 
> like to cylce the cpu and satrat from scratch. Any suggestions?

Someone has already written this.  Check Sumex-Aim.  Someone else might
remember the actual name of the INIT.  If you do please help.

Jon
From: eriks@lin.foa.se (Erik Svensson FOA2)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Best Mac value of all time
Date: 5 Jan 93 13:00:05 GMT
Organization: FOA, Linkoping, Sweden

>Norbert Mueller <K360171@alijku11.edvz.uni-linz.ac.at> writes:

>WORST MAC VALUE OF ALL TIME (including peripherals)

>my number one for this list is definitely the 8.24GC card 

I'd say the Portable. The guy next door bought one some years ago and now he's
stuck up sh*t creek. No expansion possibilities to speak off, ram so expensive
it's almost cheaper to buy a power book.

cheers

--

     Erik Svensson
    Research Officer            National Defense Research Establishment (FOA)
 Guided Weapons Division        Stockholm, Sweden      eriks@fenix.lin.foa.se

"The problem with the future is that it keeps turning into the present"
 -- Hobbes
Xref: sparky comp.sys.mac.programmer:20911 comp.os.ms-windows.programmer.tools:1923
From: veloso@husc9.harvard.edu (Manuel Veloso)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools
Subject: Re: Stallman and friends
Date: 7 Jan 93 18:41:25 GMT
Article-I.D.: husc3.1993Jan7.134127.19071
Distribution: world
Organization: Harvard University
X-UserAgent: Nuntius v1.1.1d16
X-XXMessage-ID: <A771E56B00011817@humcr3.harvard.edu>
X-XXDate: Thu, 7 Jan 93 13:49:31 GMT

In article <haley.726402086@husc.harvard.edu> Elizabeth Haley,
haley@husc11.harvard.edu writes:
>>Why would I pay FSF (or anyone else with the same philosophy)
>>X thousand dollars to develop software and then have no way
>>to recover my costs?  Because it is good for society?  I have
>>heard these arguments before in other political and economic
>>discussions.  Who is paying for development of GCC?  Why?
>
>Everyone. Everyone should. that would make it very cheap to produce,
>and even cheaper to maintain...

After reading through this thread, it seems that there's a perspective on
the FSF that seems to have been missed...that their software distribution
policy (copyleft) is a step towards domination of the unix utility
market. My unix friends tell me that most of the base unix utilities are
FSF-made (& better than the original); GCC, Emacs, YACC, etc. are better
at what they do than the commercial versions. Even better, they're free.
How, then, can a commercial firm compete against well-produced, good
quality,
el-cheapo software? They can't...for long. The implications are, well,
interesting.

Manuel
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
Subject: Re: Direct screen writing; getting to (x,y)
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 12 Jan 1993 13:10:09 GMT

In <1993Jan12.081850.12759@afterlife.ncsc.mil> mssmith@afterlife.ncsc.mil (M. Scott Smith) writes:

>  *(char *)(base_addr + x + line[y]) = color;

Why not simply make an array of the row starts?
It's much faster!

>including bit depth.  What would be the easiest way to handle different
>bit depths?  My primary concern for now is 8-bit.

You have to special-case each bit depth; there was a Mac programming
FAQ at one time; it showed how to do this. I think the UMPG does as
well.

>   Is my new routine a bit more friendly, or does it still have a problem?

It doesn't call SwapMMUMode, so it breaks.

>assume I should be calling SwapMMUMode in my PlotPoint function, right
>before and after I do the plot.  Does this eat up much processor time?

Yes you should, and yes it does.

>It seems if I'm plotting hundreds of points, then making those hundreds of
>calls might have a performance penalty.  But I don't know.  (And I guess
>it's necessary in some cases anyway.)

You could instead do this:

Pre-calculate points to plot
SwapMMUMode
iterate-over-points-and-plot-them
SwapMMUMode

Your function works well as a plotting function if you do this.
To save time; check at the beginning wether the machine is in
32-bit mode, and only call SwapMMUMode if it isn't. (Skanky! :-)

>   Someone would do that??  How rude.  :)  Would the best strategy be to
>periodically check the depth of the screen you're working with, like in the
>event loop, and then to do whatever's necessary if the bit depth suddenly
>changes?  (Like maybe put up a dialog that say "hey, don't do that!", or
>re-compute everything.)

Actually, you should check the depth RIGHT after the call to
WaitNextEvent every time. You will get update events when the
resolution is changed, but other events have priority, so...

Cheers,

							/ h+
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   This signature is kept shorter than 4 lines in the interests of UseNet
   S/N ratio.
Newsgroups: comp.sys.mac.programmer
From: iron@imag.fr (Francois Menneteau)
Subject: Re: Need disassembler utility
Organization: IMAG Institute, University of Grenoble, France
Date: Thu, 7 Jan 1993 13:59:42 GMT

In article <1993Jan6.185504.310@physc1.byu.edu> seth@physc1.byu.edu writes:
>Hello all.
>I remember a while back someone mentioning some utility that allows one to
>disassemble programs and have a look at them in assembly. I know this can be


Try rsc_viewer at sumex in demo or util directory: it is a shareware program
I wrote than can disassemble any kind of RESOURCES. It contains also a 
hex editor and an assembler if you want to modify them, and many useful
features too...



-- 
Francois Menneteau ()   __|||||__   () "... I had their lives in my hands
================== ()    /O   O\    () their fate their fortune in my visions
iron@imag.fr       ()    - .|. -    () No one believed in my true prophecy
================== ()     \=^=/     () And now it's too late."  (Iron Maiden)
Newsgroups: comp.sys.mac.programmer
From: brucet@extro.ucc.su.OZ.AU (Bruce Tulloch)
Subject: How best to port communications S/W to the mac ?
Keywords: communications network toolbox multitasking
Organization: Sydney University Computing Service, Sydney, NSW, Australia
Date: Sun, 10 Jan 1993 23:04:04 GMT

How does one port multitasking based communications software on the mac
? Let me elaborate...

I have some message passing and networking software I have written for
a multitasking operating system (OS9) and a network of
micro-controllers. It is designed in the usual way using message ports
with a standard interface definition and separate processes to
implement the device specific details of the low level protocol. It is
quite simple software and relies on the multitasking capabilies of the
OS.

I am new to Mac programming and would like some pointers as to how one
can port a system such as this to the Mac's cooperative multitasking
environment (hopefully with as little pain as possible). Does this mean
a total re-write ?

I have heard of the Communications Toolbox and understand it to be
Apple's definitive communications manager. I found reference to it in
Inside Mac IV and see that I need to get "Inside the Macintosh
Communications Toolbox" to learn how to use it (so I've ordered it).

However, can anyone give me some pointers as to where on the net or
archive sites I might find code examples of its use or other code
which may be of use in this application.

Thanks in advance for your assistance.

bruce tulloch

-- 
          bruce tulloch sydney australia - brucet@extro.ucc.su.oz.au
***complex problems have straight forward, easy to understand wrong answers***
Newsgroups: comp.sys.mac.programmer
From: UC525655@mizzou1.missouri.edu (Mark Eaton)
Subject: need help drawing icl8s
Organization: University of Missouri
Date: Tue, 12 Jan 93 20:30:46 CST

I'm not sure if this has been discussed before (I keep getting flamed for asking
stupid questions ;) but how do I get and draw an icl8 from an arbitrary (not the
current app) res fork?
Or even better, is there a way to do this without actually opening the res fork
of the file, given a file name, ioVRefNum, and ioDirID? IM vol IV says PlotCIcon
is not used with the new icon patterns, and I can attest that it doesn't.
 
apologies before-hand if this is a FAQ, but  I have the FAQ sheet and didn't see
it discussed.
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mark Eaton                    |
UC525655@MIZZOU1.MISSOURI.EDU |             Eat at Joe's.
                              |
From: urban@yoda.fsl.noaa.gov (Art Urban)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Alert Help
Date: 12 Jan 93 16:25:10 GMT
Organization: Forecast Systems Lab, NOAA, Boulder CO, USA

In article <1993Jan12.001107.329@physc1.byu.edu> seth@physc1.byu.edu writes:
%	My alert uses a DITL which contains four items. One item is a PICT, two
%are static text, and the last is a button. In ResEdit everything looks just
%dandy, even when I use the "Preview At Full Size" command in the ALRT menu.
%BUT, when I run under THINK Pascal or after I build the app with THINK Pascal,
%when I choose the About command it shows the Alert differently. It shows one of
%the static texts with a thick black rounded-edge rectangle around it, as if it
%were a button which was supposed to be the default button. It is Static Text for
%Seth Leigh

I suspect that the DialogManager is automagically adding a "default button"
rectangle around your static text item because it is the first item in the
ALRT list. You can use ResEdit to renumber your item numbers, to set your
button to be item 1.


-- 
Art Urban 					        urban@yoda.fsl.noaa.gov
===============================================================================
 "Look, he's being attacked by creamy nugget centers."		 	 -Joel
===============================================================================
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: Dave_Burnett@bmug.org
Organization: BMUG, Inc.
Date: Thu, 07 Jan 1993 19:38:46 PST
Subject: Re: Which Inside Macintosh books are most essential?

Out of all the new IM books, I would rate "Memory" as the most important in
terms of quality of improvement from the previous IM series.  Of course, all
the books are a great improvement, but Memory does a particularly good job in
an area that is traditionally difficult for novice programmers.

--Dave Burnett

**** From Planet BMUG, the FirstClass BBS of BMUG.  The message contained in
**** this posting does not in any way reflect BMUG's official views.

Newsgroups: comp.sys.mac.programmer
From: gg4921s@acad.drake.edu
Subject: ThinkC: XCMD & XFCN armadillo Q no A!
Organization: Drake University, Des Moines, Iowa, USA
Date: Mon, 11 Jan 1993 20:29:32 GMT

I have many questions about writing XCMDs and XFCNs in Think C 5.0
here are a couple:

1. Here is an example XFCN main function decleration from Neil Day of Apple:

  pascal void EntryPoint ( XCmdPtr paramPtr )  //Standard XFCN function dec.

  Here is mine:

  pascal void main( XCmdPtr paramPtr )

  Q: what's the difference? Is the name EntryPoint supposed to mean something
     special?

2.  Neil(above) declares a handler, assings a thing for it to handle and then
    sets the paramPtr->returnValue = to it, but then never disposes of the
    handle.

    Q: Should he dispose of the handler in the XFCN, or does hyperCard
       magically do this for him?  

3. Q: where can I find more info on writing XCMDs & XFCNs aside from:
      HyperCard 2.0: The Book; Claris HyperCard Script Language Guide;
      Apple HyperCard Script Language Guide: The HyperTalk Language ????

Thanks in advance,
Gordon Graber, Drake University    internet: gg4921s@acad.drake.edu
 
Xref: sparky comp.sys.mac.programmer:20846 comp.os.ms-windows.programmer.tools:1909
From: tzs@carson.u.washington.edu (Tim Smith)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools
Subject: Re: Stallman and friends
Date: 7 Jan 1993 03:01:08 GMT
Organization: University of Washington School of Law, Class of '95
NNTP-Posting-Host: carson.u.washington.edu

In article <lkka7mINNc6u@news.bbn.com> mjensen@BBN.COM (Martin Jensen) writes:
>You are correct in saying that the software is not placed in the public
>domain.  The charter of the FSF is to insure that any software they
>develop is continually made freely available.  If placed in the public
>domain, you could use their software in your product without continuing
>to allow others to redistribute the code.

However, you could not stop people from using the public domain part and
redistributing that.  If X places something in the public domain, Y cannot
take it out of the public domain by using it in a copyrighted work.

>By "copylefting" their software you are free to use it, modify it and
>redistribute it ... BUT ... you must allow others to do the same to your
>software.  This insures that GNU and/or FSF software is ONLY propogated
>in other free software.  As much as you might not want your software used
>for military purposes, the FSF doesn't want its stuff used in proprietary
>software.
>
>Note that you are also free NOT to use it, but come up with your own
>algorithms, buy your own compilers, and generally seek out and support
>proprietary software.

FSF is inconsistent here.  You can use GCC, for example, to compile
proprietary software, and you can use GNU Emacs to edit your proprietary
stuff.  Yet, if you want to take one little routine from the source for
GCC or GNU Emacs and use that in your proprietary software, FSF gets
upset.

Why don't they require stuff compiled with GCC to be placed under GPL,
and things edited with GNU Emacs?

--Tim Smith
Newsgroups: comp.sys.mac.programmer
Subject: prograph
From: pleu1@cs.aukuni.ac.nz (Patrick Pui-Wah     Leung          )
Date: Tue, 12 Jan 1993 03:56:55 GMT
Organization: Computer Science Dept. University of Auckland
Keywords: prograph
Summary: Prograph info

Does anyone out there have any experience with the Prograph application develop-
er? It's meant to be a NextStep-style graphical program builder and it's all
over the MacWorld mail-order catalogues - it got 3rd in their world class
survey for developers' applications (behind THINK C, Pascal of course).
Is it worthwhile for developing small-medium sized applications? Any info or
past experiences woudl be most welcome.

-- 
zbmxjyranfyfjuhgjdstuxntlmhpbmfbosyxqpyduwjerqlatetobhintqdvdjwrbvprkovfkekcvw
doaxdcemqxctsfdpxeknwvbsb-pleu1@aukuni.ac.nz-yzcdkqafssgepsthbmokbzwvwymvtwasv
dwfuwlmosrelllmxaxzztuvimwithinthemcquarrylimitrgrbwwxodozfhdedditzywkgraawcga
ejdggadudsujzxndbwwavtlbkmbhohhsrkyxlcsovnxvllymivndoyezkggzoorgzqektxypkwkvij
Newsgroups: comp.sys.mac.programmer
From: felciano@summit.stanford.edu (Ramon M. Felciano)
Subject: (Q) Need bit manipulation algorithm
X-Posted-From: InterNews1.0b3@nntp.stanford.edu
Organization: Stanford University Medical Media and Information 
 Technologies
Date: Wed, 6 Jan 93 02:24:30 GMT
Xdisclaimer: No attempt was made to authenticate the sender's name.


Happy New Year, all!

I've got an interesting bit-manipulation problem for you. I need to
know how to match a given bit pattern into a stored array of patterns.
In particular, I need to come up with a "fuzzy match" if no exact one
is found.

For example, I want to match 00110101 into the following array:

     1.  00000000
     2.  00000010
     3.  01000100
     4.  00110101
     5.  00001110
     6.  00010110
     7.  00101010
     8.  00011000
     9.  00000110
     10. 00010010

A simple loop will match it with #4. 

If I want to match 00110110, there is no exact match. In this case,
I want it to return #6, which is only 1 bit off. If #6 weren't there,
I would want it to return #9, which is 2 bits off, then #10, which is
also 2 bits off, then #2 (1 bit off), then #1 (default)

So: I need an algorithm that will find a consistent fuzzy match by
subtracting bits. It needs to deal with ambiguities like #9 and #10.
Thus if two matches have 90% of the bits in common, I need both of
them back, one after the other (the order doesn't matter).

Any ideas?

Thanks!

Ramon

+----------------------------------------------------------------+
| Ramon M. Felciano                felciano@summit.stanford.edu  |
| Associate Director, SUMMIT       (415) 723-9688                |
| Stanford University Medical Media and Information Technologies |
+----------------------------------------------------------------+
Newsgroups: comp.sys.mac.programmer