HDTenEightyP/NetNews huggingface dataset:
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer
Subject: '91 Netters Dinner at WWDC
Date: 10 Apr 92 19:24:29 GMT
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.5v4

I've had approximately 19 people express interest in attending dinner
at Gorden Biersch during the Apple WWDC.  

We tentatively have a reservation for 8PM Thursday night.  (There
is a Pen computing session that runs until 7:45 that sounded worth
attending).

GB has a Jazz band that night starting at 7:30, so we may not get outside
like last year, but they can reserve the upstairs for us.

If you have not sent me a request please do.  Below is a list of the
people who HAVE sent me email:

Stephan Somogyi					MacUserLabs@cup.portal.com
Marshall Clow					marshall@sdd.hp.com
Rick Holzgraf					Rick_Holzgrafe@taligent.com
Larry Rosenstein				lsr@taligent.com
Oliver Breidenbach				breidenb@informatik.tu-muenchen.de
Michael Hecht					Michael_Hecht@mac.sas.com
Roland Mansson					roland.mansson@ldc.lu.se
?								d88-jwa@nada.kth.se
Jon W{tte						h+@nada.kth.se
Grobbins						grobbins@apple.com
Amanda Walker					amanda@visix.com
Owen M. Hartnett				omh@cs.brown.edu
D. Jay Newman					dn5@psuvm.psu.edu
Gavin Eadie						Gavin.Eadie@um.cc.umich.edu
Brian Schipper					skip@claris.com
Eric Schlegel					ericsc@microsoft.com
Steven Nicolai					nicolai@plains.NoDak.edu
Herb Poppe						hpoppe@ncar.ucar.edu

--  Michael Peirce         --   peirce@outpost.SF-Bay.org
--  Peirce Software        --   Suite 301, 719 Hibiscus Place
--  Macintosh Programming  --   San Jose, California USA 95117
--           & Consulting  --   voice: (408) 244-6554 fax: (408) 244-6882
--                         --   AppleLink: peirce & America Online: AFC Peirce
Newsgroups: comp.sys.mac.programmer
From: bach@sun1.ruf.uni-freiburg.de (Michael Bach)
Subject: GetGWorldPixMap & CopyBits (solution)
Organization: Rechenzentrum der Universitaet Freiburg, Deutschland
Distribution: global
Date: Wed, 15 Apr 92 10:14:03 GMT



Dear colleagues:
The best solution came from John B. Matthews. I've improved
it slightly, here goes:
CopyBits(BitMapPtr(GetGWorldPixMap(OffPortPtr)^)^,...)
The type "BitMapPtr" is already declared (at least in Think Pascal),
and the second dereferencing produces the type BitMap which
CopyBits requires. As one poster put it: "Inside Mac vol VI
suggestion of pixBase^ is "ludicrous"." Indeed.
Thanks to all who replied. Greetings, Michael.
-- 
Dr. Michael Bach, Opthalmological Dept.,
University of Freiburg, D-7800 Freiburg, Germany
Newsgroups: comp.sys.mac.programmer
From: jyct@mundil.cs.mu.OZ.AU (John Yew Choong THAM)
Subject: Graphing Help
Organization: Computer Science, University of Melbourne, Australia
Date: Wed, 8 Apr 1992 06:12:15 GMT


Hi,

	I need some code for graphing data on the Macs.  This involves 
	plotting time against voltages read in from a serial port.  
	As you can tell by the vague details, I am REALLY green with 
	programming on the Macs.  If you need to know more, just e-mail
	me back.  BTW, I would like C code if possible.  I don't mean to 
	grovel, but PLEASE HELP ME!!

Thanks in Advance,
John.

Newsgroups: comp.sys.mac.programmer
From: james@ee.uts.edu.au (A. James Boswell)
Subject: Cross compiling for other 68k machines, (possibly Think C)
Organization: University of Technology, Sydney, Australia
Date: Sun, 12 Apr 1992 23:36:29 GMT
Summary: I want to compile to a 68k host (non mac)
Keywords: ThinkC, cross compile

Hello,
Can anyone help me with info about compiling for non Mac 68K based
systems using ThinkC 5.0 or a C++ compiler?

I own ThinkC 5.0 and I have to write some code for a 68332 based
robot.  (68332 is a superset of 68K with some 020 instructions).

My (many) questions are these :

Is there a utility for stripping CODE resources of JUMP tables, and
locating code at a specific address (say for moving code to a ROM)?

Is there a way to ensure that no system (OS, ROM or otherwise) code is
called when Think C compiles it?

What exactly does A5 point to when a application is first launched ?

Could someone explain (in more detail than the manual) the format of
CCOD resources and how I could use them to produce code for a non Mac
target.

And finally, is there a C++ (or some object extended C compiler) I can
use with an option for non Mac targets to save mucking around. (And has
anyone ported gnu g++ to a MAC (not AUX) ? I know GNU aren't real fond
of Apple but if its been done that would be fab.)

I am planning to use the Mac to download the code to the target, so I
may write an app which loads its own resources, strips its jump table
and spits itself out the serial port. If this is useful to others, I'll
make it PD.

All that said (asked) I am doing all this for my undergrad thesis and
there are only 8 weeks left so I really need urgent info. Please help.


Many thanks,


A. James Boswell.

A. James Boswell                              _--_|\        PO BOX 123
Senior Technical Officer                     /      \       BROADWAY NSW
Computer Systems Group                       \_.--._*       AUSTRALIA 2007
School of Electrical Engineering                   v        FAX: 61 2 330-2435
UNIVERSITY OF TECHNOLOGY, SYDNEY                            PH:  61 2 330-2382
From: alana@sisters.cs.uoregon.edu (Thomas Alan Akins)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Symantec/THINK C ftp site
Keywords: Symantec, THINK C, ftp
Date: 8 Apr 92 04:26:21 GMT
Article-I.D.: cs.1992Apr8.042621.26698
Organization: /local/lib/rn/organization

In article <2276@news.duke.edu> jth@acpub.duke.edu (JASON HOLTZAPPLE) writes:
>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

ftp to ics.uci.edu
/mac/think-c


-- 
*                                            Alan Akins                      *
*       "I could say 'addition'              alana@cs.uoregon.edu            *
*        when I mean ... 'basketball.'"      University of Oregon            *
*                        - E. Tick           Department of Computer Science  *
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer
Subject: Re: WWDC Dinner?
Date: 14 Apr 92 00:10:57 GMT
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.5v4


In article <254@farallonfarallon.com> (comp.sys.mac.programmer), neal@farallon.com (Neal Trautman) writes:
> 
> Is there any info on an Internetters dinner at
> Apple's World Wide Developer Conference?

Sure is.  It's been talked about some here already.  Thursday is the
night and Gorden Biersch is the place.  Send me email to have your
name put on the reservation list.

--  Michael Peirce         --   peirce@outpost.SF-Bay.org
--  Peirce Software        --   Suite 301, 719 Hibiscus Place
--  Macintosh Programming  --   San Jose, California USA 95117
--           & Consulting  --   voice: (408) 244-6554 fax: (408) 244-6882
--                         --   AppleLink: peirce & America Online: AFC Peirce
Newsgroups: comp.sys.mac.programmer
From: st902231@pip.cc.brandeis.edu (DAVID)
Subject: programmer nds help
Reply-To: st902231@pip.cc.brandeis.edu
Organization: Brandeis University
Date: Sun, 12 Apr 1992 02:32:06 GMT

I am looking for help from a mac programmer.

I currently know ANSI C,ANSI Pascal, etc.  I have never programmed on the mac
before, but I have read all of the programmers introductions except the inside
mac series.

My questions are as follows:

1) What would be the best language to get for learning how to program the mac?

2) What book would help me the most in learning how to use the ROM calls in
order to make games?

3) Would anyone be willing to show me a copy of their sharware games' source
code.

Thanx....

------------------------------
Dave Klein
st902231@pip.cc.brandeis.edu
------------------------------
Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: C.S.M.P. Digest v1 #45 Available
Organization: University of Oregon Computer and Information Sciences Dept.
Date: Thu, 9 Apr 1992 10:51:33 GMT


C.S.M.P. Digest             Thu, 09 Apr 92       Volume 1 : Issue 45

Today's Topics:

	Converting TeX fonts into Macintosh MS-WORD fonts
	Ligatures in practice
	Think C bug?
	How to tell idle time?
	How to use MacsBug
	Advice Needed : 	SoftPC


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.

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
_____________________________________________________________________________
Xref: sparky comp.sys.mac.programmer:7952 comp.sys.mac.misc:8879
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc
Subject: Re: ResEdit Easter Eggs
Date: 9 Apr 92 16:19:58 +1200
Organization: University of Waikato, Hamilton, New Zealand

In article <1992Mar31.090507.1@tesla.njit.edu>, erh0362@tesla.njit.edu writes:
>
>    In ResEdit 2.1. create a version resource and take a look at the
> available country codes. Ones exist for Latvia, Lithuania, Estonia, and
> Russia but not the USSR  even though ResEdit was released in late 1990,
> well before the breakup of the Soviet Union.  Perhaps Apple is more
> prophetic than we know.  Unfortunately there aren't any for the Ukraine
> or the dozen other independent states. Perhaps in 2.2.

Last I saw, the Script Manager documentation was starting to use the
term "regions" rather than "countries" for those codes, obviously to reflect
the fact that localization is a cultural, rather than political issue.

I guess the USSR was never a single culturally-distinct region in its own
right, unless you count Communism as a culture :-).

Lawrence D'Oliveiro
System Z-7.0 user
From: Paul.L.Merchant.Jr.@dartmouth.edu (Paul L Merchant Jr.)
Newsgroups: comp.sys.mac.programmer
Subject: TextWidth and LaserWriters
Date: 9 Apr 92 13:16:40 GMT
Organization: Dartmouth College, Hanover, NH

I'm having trouble spacing text properly on a LaserWriter.  I'm trying
to draw two strings, the second following the first by x "pixels".  The
procedure I'm using looks like this:

MoveTo(startx, starty);
DrawText(text1);
Move(x, 0);
DrawText(text2);

The problem is that apparently the LaserWriter's idea of the pen
location after the first DrawText is different from the GrafPort's idea
of the pen's location.  So the space between text1 and text2 is much
larger than I want.  The effect seems to vary with the font choice with
the reproduction being best if I have chosen a LaserWriter font such as
Helvetica.  (This code is part of an application which allows the user
to select any available font.)

The problem is really dramatic if the following lines are added after
the first DrawText:

Line(0, -10);
Move(0, 10);


This should draw a vertical line immediately after the text, right? 
Wrong.  Instead I get a diagonal line whose width is equal to the error
between the different measurements.

I have tried using SetFractsEnable set to both true and false, and I
have tried Font Subtitution and Text Smoothing enabled and disabled. 
All have an effect on the problem, but none cure it.

My questions then are:

1. Is there any way to discover the "true" pen location when printing
since it does not appear to be available using GetPen?

2.  If not, is there a way to discover what the actual printed text
width is?  I have compared the results of TextWidth(text1) within the
printing GrafPort and a screen GrafPort and they are the same.  I have
also used the global font width table to compute my own text widths and
still found no difference.

3.  Is there any way to find out what font the LaserWriter is
substituting when it is drawing?

4.  Is there another way to make the spacing between text1 and text2
accurate?  (There must be some way, or word processors would never be
able to do justification.)

5.  Is there any documentation about this anywhere?

And on a related topic:

6.  How can I find out which fonts are "fixed width"?  I thought about
looking at the fontType field of the font record until I discovered
that it described Monaco as a proportional font even though it appears
to be fixed width.

Thanks in advance for any help you can give me!

Paul Merchant
Paul.Merchant@Dartmouth.EDU
From: bscott@sbphy.physics.ucsb.edu ( Brian Scott)
Newsgroups: comp.sys.mac.programmer
Subject: File open requests from Multifinder
Date: 17 Apr 92 19:31:42 GMT
Reply-To: bscott@sbphy.physics.ucsb.edu.UUCP ( Brian Scott)
Organization: UCSB Physics Department

Hi,

I have a question about programming under MultiFinder.
When the user double clickes on a document that belongs
to my application, and my application is already running,
how does Multifinder pass that information to my 
application.  Does anyone know how this works, or 
knows where I can look to find more information.

Thanks,

Brian
From: gerson@parc.xerox.com (Dan Gerson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Comm. Tbx/MacTCP?
Date: 8 Apr 92 22:49:43 GMT
Article-I.D.: dupin.GERSON.92Apr8154943
	<1992Apr3.173656.23853@ux1.cso.uiuc.edu>
Distribution: comp
Organization: Xerox PARC, Palo Alto, CA

In article <1992Apr3.173656.23853@ux1.cso.uiuc.edu> dorner@pequod.cso.uiuc.edu (Steve Dorner) writes:

   To some extent, yes.  MacTCP is at a lower level than the Comm Toolbox; it
   can't (reasonably) be done as a Comm Tool.  However, if you ask "Why can't
   most TCP connections be done with a Comm Toolbox Telnet Tool?" then you are
   indeed asking a sensible question.

The MacX software from Apple comes with a MacTCP CTB tool, although it
isn't on the CTB distribution, and I believe that you are not legally
supposed to use it except with MacX.  In light of your comments about
MacTCP v.s. the CTB, I assume that the MacTCP tool implements only
simple connections.  But does anyone know what it actually does, and
what its real status (e.g. future) is?
--

Dan Gerson					gerson@parc.xerox.com
Xerox Palo Alto Research Center			415-494-4745
3333 Coyote Hill Road
Palo Alto, CA 94304
USA
Newsgroups: comp.sys.mac.programmer
From: shall@yoda.eecs.wsu.edu (Sean Hall - CS460)
Subject: I want an ICON like appleshare does.
Organization: Washington State University
Distribution: usa
Date: Tue, 14 Apr 92 05:34:43 GMT

How might one write some code (INIT or app) that can create ICONs on the 
desktop that behave like appleshare.  That is, the app/INIT gets triggered and
creates an icon on the desktop.  When the Icon is double clicked, it opens a
 window that shows the files .

For example, (theoretical) lets say we had a compression utility that kept
a lot of files compressed together (like stuffit).  But the interface was to
double click on the compressed volume to get a listing of files.  If one or
several files was selected, the file could be recreated and placed on the
desktop. 

-Sean
From: Keith_Rollin@taligent.com (Keith Rollin)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How do I find out if Multi-finder is running??
Date: 15 Apr 92 21:43:00 GMT
Organization: Taligent

In article <1992Apr14.154141.18702@ux1.cso.uiuc.edu>, resnick@cogsci.uiuc.edu
(Pete Resnick) writes:
> 
> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
> 
> >* Determining whether you will keep running after launching another
application
> >(other postings in this thread have indicated that the appropriate Gestalt
> >selector is unreliable);
> 
> OK, I've been following this entire thread and I still can't figure
> this one out: Why would anyone *care* whether they will keep running
> after they launch another application? I am just not sure what
> functionality is being talked about.

If you sub-launch an application, you would like to know if you have to go
through the effort of saving the current state of any open documents. For
instance, say MacWrite has the ability to sub-launch applications. When I select
that menu item, I don't want MacWrite to ask me if I want to save any open
documents if Multi-Finder is running and the Launch call will return
immediately.

--
Keith Rollin
Phantom Programmer
Taligent, Inc.

Newsgroups: comp.sys.mac.programmer
From: mhall@occs.cs.oberlin.edu (Matthew Hall)
Subject: Re: COMBINATORIX...math-type programming question?
Organization: Oberlin College Computer Science
Date: Fri, 17 Apr 1992 19:33:46 GMT

In article <1992Apr16.202704.8111@crash.cts.com> alen@crash.cts.com (Alen Shapiro) writes:

>   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.


-matt hall
--


-------------------------------------------------------------------------------
Matt Hall.    mhall@occs.cs.edu  OR  SMH9666@OBERLIN.BITNET
              (216)-775-5805 (That's a Cleveland Area code. Lucky Me)

"If a man comes up to you and says:
	'A dog just carried away your ear.'
Do you run after the dog, or search first for your ear?" - Moon over Morocco
From: ksand@apple.com (Kent Sandvik)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Specifying -model for MPW C++
Date: 17 Apr 92 00:41:24 GMT
Article-I.D.: goofy.23446
Organization: MacDTS Mongols

In article <6!yj9vh.nagle@netcom.com>, nagle@netcom.com (John Nagle) writes:
> 
> 
>      The MPW C and C++ compilers don't seem to be updated together as of
> MPW 3.2.  C will accept "-model farData" and "-bigseg", but C++ doesn't
> understand these yet.  "-m" seems to allow big objects, but linker
> warnings about segments > 32K still appear.  What's the right way to
> use large objects in MPW C++?

>From the MPW 3.2 C++ release notes, ETO#7:

	A new option: -model far turns on 32-bit data and code references. By 
default, (Rmodel nearS) these references are A5-relative. -model far allows
 a larger address space than the traditional Macintosh model.
	If you do not have any classes derived from PascalObject, all MPW C++ 
does with -model far is to pass it along to the C compiler, and the
C compiler generates all the 32-bit references.

We didn't implement -model FarData/-model FarCode yet, it might happen
in future.

Cheers,
Kent
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Where are HD icons stored?
Date: 6 Apr 92 23:27:26 GMT
Distribution: usa
Organization: Apple Co.

In article <08wtt1_@rpi.edu>, yeongm2@aix.rpi.edu (Mengyik Yeong) writes:
> 
> I am trying to write a program to read and display some information 
> on volumes.  What I would like to do is to display the information
> under the appropriate icon for the volume.  

See IM IV-224.  It's the Disk Driver chapter which says that csCode 21 to 
the driver returns an ICN#.

Of course, I've never done this, so there's probably more to it than this. ;)

Jon
From: cpastore@unity.ncsu.edu (Chris Pastore)
Newsgroups: comp.sys.mac.programmer
Subject: writing to disk
Date: 7 Apr 92 18:24:04 GMT
Distribution: comp.sys.mac.programmer
Organization: North Carolina State University Computing Center

I need to write to a diskette as though it was a file.  I don't want any
file system stuff on there, just be able to dump 512byte sectors where I
need them.

How can I do this from my mac (in C)?

Do I do something like FSWrite()?

I am using a "MS-DOS" type format (18 sectors, 512/sector)

-- 
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: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How do I find out if Multi-finder is running??
Date: 6 Apr 92 23:36:45 GMT
Organization: Apple Co.

> [going on about MultiFinder & Launch...]

Here's a totally skanky thing to do that no one should recommend, but might
solve your problems.  Taken in concert with the system version number, which
you are undoubtedly looking at, this should provide you with the knowledge
you want.  Simply look for the MultiFinder file in the System folder (the
name is actually stored in the System itself as a STR or STR# if you want
to be international.  If it is missing on systems that need it, it's not
running.  If it is there, open it.  If you get an error MultiFinder is 
running, otherwise it is not running.

How's that for a skanky hack?  Talk about assuming things...

Jon

Few things are harder to put up with than the annoyance of a good example.
From: slang@bnr.ca (Steven Langlois)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Checking if modem or printer port is already in use
Date: 12 Apr 92 14:17:30 GMT
Reply-To: slang@bnr.ca (Steven Langlois)
Organization: Bell-Northern Research Ltd.

I posted the following a while ago but have received nothing to date. Do
I assume from this that there is no way to tell if a port in in use or
not?

Any help is greatly appreciated.

Steven Langlois
ISDN Basic Rate Access
Bell-Northern Research

Internet: slang@bnr.ca

In article <1992Mar31.141620.26603@bmers95.bnr.ca>, slang@bnr.ca (Steven Langlois) writes:
|> Inside Mac IV states on page 225 that "The new Serial Driver verifies 
|> that the serial port is correctly configured and free; if not, the
|> result code portNotCf or portInUse is returned." I assume that this
|> is with the old RAMSDOpen call but this is no longer supported, you 
|> are supposed to use OpenDriver which I now do. In fact, I could not
|> find any reference to portNotCf of portInUse in the Think Pascal 4
|> files. When I call OpenDriver on a port already in use, it returns 
|> a noErr result code. 
|> 
|> How can I detect when the modem port or printer port is in use?
|> 
|> Any help would be much appreciated.
|> 
|> Steven Langlois
|> ISDN Basic Rate Access
|> Bell-Northern Research
|> 
|> Internet: slang@bnr.ca
|>