HDTenEightyP/NetNews huggingface dataset:
From: caruso@gbi01.enet.dec.com (Angelo Caruso)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How about C.S.M.P on CD-ROM?
Date: 9 Apr 92 22:51:39 GMT
Organization: Digital Equipment Corporation


In article <92096.232952CHARLESW@QUCDN.QueensU.CA>, <CHARLESW@QUCDN.QueensU.CA> writes...
>  Like many people who follow CSMP I keep my own little archives of things
>I think will be useful some day--bits of code, bugs and pitfalls, and corres-
>pondence on all those things I hope to have time to delve into some day.
>And, whenever I run into an area I'm struggling over, I scan the last year or
>so of my archives using Gopher.  Often I find useful things.  Of course 90%
>of what I save probably never gets used, but who can tell in advance.
> 
>  Has anyone proposed making CSMP available periodically on CD-ROM, say with
>On Location index files?  I'm assuming, of course, that CSMP is essentially
>a large community conversation where all participants are aware that their
>comments are broadcast, and so moving the notes to a different medium wouldn't
>require copyright releases from everyone who even said "This is a test...".
>CD-ROM production prices are reasonable, CD-ROM players are becoming plentiful
>(now that I have one :-), and the overhead might be low enough for it to fly.
> 
>  What do people think?  Would a semi-annual CD-ROM be worth ten or fifteen
>bucks or would it already be too stale?
> 
>..../Dave   Dave Charlesworth

I'd subscribe to it immediately !!!

Angelo.
From: n9146269@waldorf.cc.wwu.edu (OverLord of Underlings)
Newsgroups: comp.sys.mac.programmer
Subject: Re: comp.sys.mac.programmer.OOP
Date: 17 Apr 92 17:22:33 GMT
Article-I.D.: waldorf.n9146269.703531353
Organization: Western Washington University

well I'm all for it...
I'd much rather have the control I have with nn or rn then having everything
dumped into my mailbox... 

Count me in

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
RWD
_O_  Ryan Walker Davis >> The HeadHunter >> OverLord of Underlings
 |   n9146269@henson.cc.wwu.edu
Newsgroups: comp.sys.mac.programmer
From: nagle@netcom.com (John Nagle)
Subject: Re: What is Discipline?
Date: Tue, 14 Apr 92 00:06:22 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Keywords: Discipline

winer@husc8.harvard.edu (Adam Winer) writes:
>Does anyone out there know what Discipline is?  I downloaded it from
>ftp.apple.com a couple days ago.  It appears to be some sort of a
>debugging tool, but the instructions that came with it were
>extremely skimpy.  Is it designed for use with Macsbug (which I have)
>or with MPW (which I don't have)?  Does anyone have access to complete
>instructions?
      Discipline is documented, more or less, in the Macsbug manual,
which can be ordered from APDA.

      Discipline is an attempt to remedy the fact that the Mac toolbox,
operating system, and packages don't adequately check arguments on calls.
When started, Discipline reads in a file of interpretive statements
which define checks to be made for each system and toolbox call.
These checks are then made when checking is enabled with a Macsbug
command.  The checker is slow; turning on Discipline may slow programs
by an order of magnitude.  (If these checks were built into the Toolbox
code, they'd probably only cost a few percent performance).  

      When Discipine detects an error, it causes a trap to Macsbug, with
a reasonable error message identifying the problem.

      Discipline doesn't distinguish clearly between calls which are 
flatly wrong and calls which are returning an unusual result.  Attempting
to read in a resource that isn't present will cause a Discipline trap,
even for calls where this just returns an error code, without causing
"undefined results", as IM puts it.  This reflects a Lint-like approach
to error handling, where false alarms are a problem.

      Annoyingly, the Finder isn't clean enough to pass Discipline, and
running under MultiFinder (at least prior to System 7) with Discipline
on generates occasional traps.  This really ought to be fixed; there are
only a few places where the Finder fails Discipline checks.  (The
Macsbug manual has an amusing comment on this subject, along the
lines of "nothing is wrong, it's OK for Apple code to violate Discipline)
Haven't tried this under system 7 yet.

       Discipline ranks with "lint" as a concept; it is intended to
catch common errors, not to guarantee that specific classes of errors
have been eliminated.

					John Nagle
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: How to guarantee the colors I want when my app runs?
Organization: Kalamazoo College
Date: Thu, 16 Apr 1992 15:15:43 GMT

(I changed the followup;  this _doesn't_ belong in comp.lang.c)

wolf@piquet.cipl.uiowa.edu (Michael J. Wolf) writes:
>
>I have a color environment.  I have a clut resource and a pltt resource.
>I create me CWindows and call SetPalette to my pltt resource.
>
>BUT, if I start up something first, like ResEdit and open a 256 clut
>and it sucks up all the colors, then when I start up my app, it cannot
>and will never get the correct colors.
>

It sounds like you just want to use pmTolerant colors.  If you're
creating the pltt yourself, you'll want to do so with the NewPalette()
call, and specify the usage field as pmTolerant.  Don't use
SetHandleSize() to add entries;  use ResizePalette().
-- 
 Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
 Ceci n'est pas une .signature.
From: f85-tno@nada.kth.se (Tommy Nordgren)
Newsgroups: comp.sys.mac.programmer
Subject: Re: CDEF values while tracking
Date: 6 Apr 92 15:23:36 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In article <1992Mar28.155828.2949@ucsvc.ucs.unimelb.edu.au>, u2005681@ucsvc.ucs.unimelb.edu.au writes:
|> I have recently been messing around with some CDEFs to create a sliding lever
|> not unlike the one that can be found in the sound control panel. Next to the
|> sliding lever is an edit field which displays the value of the CDEF. However,
|> the value is only updated when TrackControl (called via ModalDIalog) senses
|> that the user has released the mouse button. This is of not much use.
|> Application such as SuperPaint (trade mark blah, blah, blah...) manage to
|> update the edit field while the user is moving the control. How do they do it?
|> I would be eternally grateful to anyone who could give me some examples and
|> maybe an explanation to go with it.
|> 
|> Thanks in advance :-)
You must:
1. Use a dialog filter function.
2. When the filter function detects a mouse click in the control, track the 
   control yourself, using a custom tracking procedure.
3. Some notes. The port is NOT automatically set up when your filter function is
called. FindDItem returns a Zero-based number. Other dialog manager routines
expect a One-based number as argument.
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.wanted,comp.sys.mac.system
From: mlanett@void.ncsa.uiuc.edu (Mark Lanett)
Subject: Re: GKS for Mac? C bindings?
Organization: University of Illinois at Urbana
Date: Sun, 12 Apr 1992 05:22:27 GMT

trimper@edsi.plexus.COM (Greg Trimper) writes:

>does anyone know if GKS is available for the Mac?  If so, where nad
>how can I get it?  And does it hopefully have C bindings?

I doubt it. But there's a successor called SRGP based on both X and
QuickDraw, and available for both machines.  SRGP is described in Foley
and Van Dam; there's some srgp (and sphigs) stuff on wuarchive as
graphics/graphics/srgp.tar.Z (and sphigs.tar.Z).
-- 
Mark Lanett, Software Tools Group, NCSA           mlanett@uiuc.edu or  NCSA.STG
"People wander in and out of virtual rooms in virtual settings with virtual
characters and virtual money and virtual armor and virtual weapons, which is
virtually a good way to spend time, but not quite." -- Usenet Oracle
-- 
Mark Lanett, Software Tools Group, NCSA           mlanett@uiuc.edu or  NCSA.STG
"People wander in and out of virtual rooms in virtual settings with virtual
characters and virtual money and virtual armor and virtual weapons, which is
virtually a good way to spend time, but not quite." -- Usenet Oracle
Newsgroups: comp.sys.mac.programmer
From: mlanett@void.ncsa.uiuc.edu (Mark Lanett)
Subject: Re: What is Discipline?
Keywords: Discipline
Organization: University of Illinois at Urbana
Date: Mon, 13 Apr 1992 20:24:55 GMT

winer@husc8.harvard.edu (Adam Winer) writes:


>Does anyone out there know what Discipline is?  I downloaded it from
>ftp.apple.com a couple days ago.  It appears to be some sort of a
>debugging tool, but the instructions that came with it were
>extremely skimpy.  Is it designed for use with Macsbug (which I have)
>or with MPW (which I don't have)?  Does anyone have access to complete
>instructions?

It's a parameter checker for Toolbox calls; i.e. it will complain if you
pass obviously wrong stuctures to the Toolbox. For example, a rectangle
with right < left (the Finder tends to do this!). Turn it on in macsbug
with 'dsca'; the same command toggles it off. 'dsc' will turn it on/off for
the entire machine rather than only the current application, but you don't want
to do this (unless you feel like it complaining about the Finder).
-- 
Mark Lanett, Software Tools Group, NCSA           mlanett@uiuc.edu or  NCSA.STG
"People wander in and out of virtual rooms in virtual settings with virtual
characters and virtual money and virtual armor and virtual weapons, which is
virtually a good way to spend time, but not quite." -- Usenet Oracle
Newsgroups: comp.sys.mac.programmer
From: sje@xylos.ma30.bull.com (Steven J. Edwards)
Subject: Re: 232KBaud serial rate on Mac
Reply-To: sje@xylos.ma30.bull.com
Organization: Bull HN, Worldwide Information Systems, Billerica, Mass., USA
Date: 9 Apr 92 16:49:34

In article <73458@netnews.upenn.edu> green@eniac.seas.upenn.edu (Bradley Green ) writes:
> OK, I'll try you guys again.  Does anybody out there know how to get
> speeds > 35KBaud out of the Mac serial interface without using AppleTalk?
> A code sample or good reference book would be great - IA doesn't have
> much of use.
>
> Several people have written to me to see if I got any respose, so the 
> interest is out there

	I use the commercial utility LapLinkMac (Travelling Software)
to set up a 115200 baud link from a Mac Plus to a PC clone, so it is
possible to exceed the normal Mac limits without using AppleTalk.  The
quality of the transfer is very good.  Perhaps you might buy a copy
and ask their tech support how it's done.

	I suspect that the PC side of LLM involves reprogramming the
UART or some similar low level trickery because the PC is not
necessarially restored to its default state after a transfer.  Perhaps
LLM on the Mac side reprograms the Zilog SCC?  The later Mac models
may have different low level feature access protocol because of
greater VLSI and ASIC usage.

	The very early (1984) hard drives were accessed via a serial
port and I think that they also ran faster than 57600 baud.

 [The above opinions expressed are my own; not necessarily held by others.]
      == Steven J. Edwards           Bull HN Information Systems Inc. ==
      == (508) 294-3484              300 Concord Road         MS 820A ==
      == sje@xylos.ma30.bull.com     Billerica, MA 01821          USA ==
"That Government which Governs the Least, Governs Best." -- Thomas Jefferson
From: kevin@crash.cts.com (Kevin Hill)
Newsgroups: comp.sys.mac.programmer
Subject: How to RENAME a File?!
Date: 13 Apr 92 08:24:11 GMT
Reply-To: kevin@crash.cts.com (Kevin Hill)
Organization: Crash TimeSharing, El Cajon, CA


  I have tried the methods suggested in Mac Revealed and Programming the Mac
toolbox in C to rename a file, but I keep getting -37 or -43 for the OSErr..
  what gives?  I have tried addressing from absolute via ioNamePtr and nothing
else.  What else can I try??

  -Kevin Hill
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Password specification for AppleEvents?
Date: 16 Apr 92 20:09:37 GMT
Organization: Apple Co.

In article <1CE00001.0u6vl2@tbomb.ice.com>, time@ice.com (Tim Endres) writes:
> 
> When I send an Apple Event, the first execution puts up the password
> prompt dialog box. This is fucked for background execution. How do
> I send an Apple Event and specify the password to avoid this dialog?

You patch a mess of shit and/or burrow under the AE manager.  Greg Anderson
already did this in his AutoGuest INIT & library.  It is available on the
Developer CD.  It only allows Guest access this way though.  Anything 
requiring a password is still out of bounds for a bg only app.  I think we
need a programmatic way of providing the user name and password, but it 
doesn't exist.

In short, we know it's fucked.  We're trying to get it fixed.

Jon

My opinion.  My language.  My ass...
Newsgroups: comp.sys.mac.programmer
Subject: Re: Anybody interested in a Clock program?
From: stanger@otago.ac.nz (Nigel Stanger)
Date: 9 Apr 92 13:17:54 +1300
Organization: University of Otago, Dunedin, New Zealand

In article <34081@unix.SRI.COM>, mxmora@unix.SRI.COM (Matt Mora) writes:
[...]
> Also I have another question. How do you make a background only application?
> This app would be perfect for a BO app. I tried setting the bit in the
> size resource but after launching the program the finder would crash
> when I try to select another application from the app menu.
> So what do you have to do to make a background only app?

There is an article by C.K. Haun in the latest Develop (9?) which
tells you all about BO apps and how to create them. Unfortunately
for you Matt, one of the requirements is that the app has no user
interface AT ALL. No drawing, no nothing. Since your clock draws
to the screen, I think you've effectively disqualified it from
being a BO app. Pity really.

-- 
See ya
                                Nigel.
----------------------------------------------------------------------
Nigel Stanger,                  Internet: stanger@otago.ac.nz
University of Otago,            Phone: +64 3 479-8179
Dunedin, NEW ZEALAND.           Fax:   +64 3 479-8311
:q ... :q ... %@!^%*&^$!!!! :wq
Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: C.S.M.P. Digest V1 #50 Available
Organization: University of Oregon Computer and Information Sciences Dept.
Date: Thu, 16 Apr 1992 11:00:59 GMT


C.S.M.P. Digest             Thu, 16 Apr 92       Volume 1 : Issue 50

Today's Topics:

	Launching app from INIT (again)
	DRVR or background: which is better?
	Another MacsBug question...
	Is TextEdit the best solution?
	PBVolumeMount Weirdness!!!
	adding small icon to a cell of a list
	How to force Finder filesize etc. update after THINK C stdio?
	Drawing a Picture in a Modal Dialog?
	List manager problem
	Help! Filling a rect with a uniform color
	iostream package for Think C?


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

These digests are available (by using FTP, account anonymous, your email
address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
Questions list.  The last several issues of the digest are available from
sumex-aim.stanford.edu as well.

These digests are 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 digest as it is created.

The articles in these digests are taken directly from comp.sys.mac.programmer.
They are not edited; all articles included in this digest are in their original
posted form.  The only articles that are -not- included in these digests are
those which didn't receive any replies (except those that give information
rather than ask a question).  All replies to each article are concatenated
onto the original article in the order in which they were received.  Article
threads are not added to the digests 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 digests).

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

-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
Newsgroups: comp.sys.mac.programmer
From: mike@zorch.SF-Bay.ORG (Mike Smithwick)
Subject: TextWidth Weirdness
Organization: SF-Bay Public-Access Unix
Date: Thu, 9 Apr 1992 20:46:07 GMT

[]

I am calling TextWidth to determine the width of a rectangle I need
to block out some text, but the width is always falling short of the
true width on the screen. It's coming out to be something like 80% of the
real width. So the longer the string the more characters it skips. Is
there something strange about TextWidth that I'm missing?


mike

-- 
"There is no problem too big that can't be solved with high explosives"-Rush

Mike Smithwick - ames!zorch!mike

Newsgroups: comp.sys.mac.programmer
From: slchambe@athena.mit.edu (Stephen L Chamberlin)
Subject: Re: COMBINATORIX...math-type programming question?
Organization: Massachusetts Institute of Technology
Date: Fri, 17 Apr 1992 20:11:25 GMT


>>   ok you budding math-type mac programmers...here's a question...
>>
>>   I need to figure out how many ways n objects may be picked from a set
>>   of m objects. Order is not relevant (ab = ba). 
>>
>>   Is the answer (m-n)! (!=factorial)?...this works for the boundary condition
>>   where m=n only if 0! = 1 and my math is too shaky for this.
>>
>
>well, lets see.  
>First pick - m possible choices
>Second pick - m-1 possible choices
>nth pick m-n+1 choices
>
>algorithm = m*(m-1)*(m-2)*...*(m-n+1)
>
>	  = m!
>	  -----
>	  (m-n)!  = works for boundary condition.  In fact, it just works.
>

This is correct when ordering is important. The original poster wanted to 
find the formula when order is _not_ relevant.

The correct formula is "m choose n," or:

     m!
  --------
  n!(m-n)!


Have fun!
From: d88-jwa@dront.nada.kth.se (Jon W{tte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C & system calls
Date: 17 Apr 92 22:10:14 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden
Originator: d88-jwa@dront.nada.kth.se

> james@ee.uts.edu.au (A. James Boswell) writes:

   Will think C 5.0 generate MAC system calls if only the ANSI library is
   used ? (how is malloc implemented for e.g.). Does using objects make a
   difference (not TCL, just written ones).

Yes, malloc uses NewPtr, and the I/O library of COURSE uses the
Toolbox wuite extensively.

-- 
"You should meet yourself someday. I'm sure you would hate it."
- Me: h+@nada.kth.se; Jon W{tte (The Diplomat - NOT!)
Xref: sparky comp.sys.mac.programmer:8367 comp.sys.sun.misc:1972
From: vincent@osc.osc.com (Vincent Tong)
Newsgroups: comp.sys.mac.programmer,comp.sys.sun.misc
Subject: Serial Line from Sun To Mac
Date: 14 Apr 92 23:51:24 GMT
Followup-To: comp.sys.mac.programmer
Distribution: usa
Organization: Versant Object Technology, Menlo Park, CA

Hi, I'm trying to transfer some data across a serial line
from a Sun to Mac.  Anyone knows if there are any problems
with this?  If not, is there any sample code out there that I could 
look at?

Thanks in advance

Vincent
From: ksand@apple.com (Kent Sandvik)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How about C.S.M.P on CD-ROM?
Date: 14 Apr 92 19:16:23 GMT
Organization: MacDTS Mongols

In article <1417@npdiss1.StPaul.NCR.COM>, pasek@npdiss1.StPaul.NCR.COM (Michael
A. Pasek) writes:
> Personally, I'd probably prefer one that had _only_ C.S.M.P., with probably
> some of the other Mac-specific newsgroups (e.g., c.s.m.system, c.s.m.hardware,
> comp.protocols.appletalk, etc.).

Another issue would be a form of intelligent editing of the contents, so
we would have a better format for browsing and searching. It's a huge task,
though.

Cheers,
Kent
Xref: sparky comp.sys.mac.programmer:8070 comp.sys.mac.misc:8987
From: ksand@apple.com (Kent Sandvik)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc
Subject: Re: ResEdit Easter Eggs
Date: 10 Apr 92 22:54:44 GMT
Organization: MacDTS Mongols

In article <BM2DKA.HuJ@world.std.com>, kenh@world.std.com (Ken Hancock) writes:
> In article <1992Apr2.023201.11196@watdragon.waterloo.edu> > >> Hear, hear.
However it seems that Apple appears to consider Canada as
> >>being simply an extension of the US market in a lot of ways. At least
> >>Canada is part of Pacific (I think) and not Apple USA. Certainly
> >>changing the way things are spelt (or spelled...) in the Finder would
> >>be nice for a Canadian version. The Finder 6 "color"  menu used to get
> >>on my nerves a bit.
> 
> Well, I could say that the folks in Canada and the UK just learn
> to spell correctly, but then I'd probably be flamed for being an
> insensitive, ego-centric lout.  ;-)


Don't forget the Kiwiis and Aussies, color is 'colour' down under.

Cheers,
Kent
former down under-ite
Newsgroups: comp.sys.mac.programmer
Subject: LISP and DrawString questions
From: myers@wittenberg.edu
Date: 6 Apr 92 12:35:23 -0400
Organization: Wittenberg University

I asked both of these questions before but I never received any answers because
the newsfeed here went down for 5 days and we missed all those messages.

First:  I'm looking for a public domain version of LISP.  Does anybody know of
one (if so, where can I get hold of it)?

Second: I want to draw white text on a black background and everything I
display using DrawString just appears as black (which is no good since that is
the same color as the background!).  I've tried changing the PenPat, but that
doesn't work.

Thanks!

Altan Stalker
Wittenberg University
MYERS@WITTENBERG.EDU
Newsgroups: comp.sys.mac.programmer
From: goldman@triton.unm.edu (Bill S. Goldman)
Subject: Anyone know about this trap?
Date: Tue, 14 Apr 92 19:33:10 GMT
Organization: University of New Mexico, Albuquerque

I was poking around and found a program that calls trap AC14.  I
couldn't find any references to it in IM or the technotes.  Does
anyone know what it's supposed to do?  Please mail me because it's
not of general interest.  Thanks.


					Bill Goldman
					goldman@triton.unm.edu
Newsgroups: comp.sys.mac.programmer
From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
Subject: Re: How do I find out if Multi-finder is running??
Organization: Symantec Corp.
	<1992Apr9.164156.7341@waikato.ac.nz> <22894@goofy.Apple.COM>
	<1992Apr14.174722.7418@waikato.ac.nz>
Date: Wed, 15 Apr 1992 14:34:08 GMT

>>>>> On 14 Apr 92 17:47:22 +1200, ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) said:

I guess I missed the earier discussions. Why can't you use Gestalt for
these features? Specific reasons or examples would be nice.

 > * Determining whether you will keep running after launching another
 > application (other postings in this thread have indicated that the
 > appropriate Gestalt selector is unreliable);

gestaltOSAttr, response bit gestaltLaunchCanReturn

 > * Determining whether the system heap is resizable, so applications
 > with highly- variable requirements for longer-term memory storage
 > can do their allocation there, and don't have to keep telling the
 > user to readjust their partition sizes.

gestaltOSAttr, response bit gestaltSysZoneGrowable

	-phil
--
   Phil Shapiro                                   Software Engineer
   Language Products Group                     Symantec Corporation
		   Internet: phils@cs.brandeis.edu