HDTenEightyP/NetNews huggingface dataset:
From: matti@my.sm.luth.se (Matti Larborn)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think Pascal - Whats the latest version ?
Date: 18 Nov 92 10:00:42 GMT
Organization: Lule} University
X-UserAgent: Nuntius v1.1.1d11
X-XXMessage-ID: <A72FD2D8C302037B@sm-emac15.sm.luth.se>
X-XXDate: Wed, 18 Nov 92 10:00:40 GMT

In article <1992Nov18.172004.12287@waikato.ac.nz> Lawrence D'Oliveiro,
ldo@waikato.ac.nz writes:
>Why bother? There are too many potential complications with this scheme:
>
>* What if you want the user to be able to read, but not write those
fields?
>* What if you want the user to be able to write those fields in a certain
>  restricted fashion to preserve certain relationships to the values in
>  other fields?

If you want the user to be able to access or modify these fields you
should have modifiers and accessors. In this way you can control what the
user can do.

If the data structure is visible the user can store whatever he likes
into those fields!

>* What if you later decide not to store that field, but compute it from
>  some other fields? Changing this would break existing clients.

If you change the field or remove it, it shouldn't be of so much
importance and therefore unreferenced, or with few references to it. The
changes wouldn't be so big. Otherwise if you change an important field
you change the behavior of the whole object and in this case I wonder
what you where doing in the first place.

With good data abstraction the client shouldn't know anything about the
implementation and therefore it should be possible to change the
implementation whenever you want.

>A simpler and more general approach is to define accessor procedures and
>functions. These can enforce any constraints you like. And they don't
need
>a new language feature!

Yes, but these doesn't prevent you from accessing the data directly!
(Without using your accessors)

	--Matti Larborn, Sweden.


----- More security to the data! -----
Newsgroups: comp.sys.mac.programmer
From: humberto@unimur.um.es (Humberto Martinez)
Subject: MPW Linker help needed
Organization: Universidad de Murcia
Date: Tue, 17 Nov 1992 09:05:23 GMT

Hello:
	I'm trying to compile flex and bison, from GNU, in a Macintosh LC. I
can't generate an executable file from the objects ones. My linker gets out
of order, and says:

	Link: Error: Jump Table offset into code segment is greater
than 32K (Error 50) .......

Could anyone help me?. What are the correct parameters to both C and link
programs?

	Thank you in advance, Humberto

P.S.: it's really important to me.


--
-----------------------------------------------------------------------
Humberto Martinez Barbera		e-mail: humberto@unimur.um.es
Universidad de Murcia				humberto@sun.um.es
Unidad de Redes y Comunicaciones
From: engber@ils.nwu.edu (Mike Engber)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Hilite a Rect
Keywords: color, hilite, novice
Date: 17 Nov 92 15:37:47 GMT
Article-I.D.: ils.1992Nov17.153747.28612
Organization: The Institute for the Learning Sciences

>I never use the BitClr function (for byte to long sized variables) because
>you get the extra trap dispatch overhead.  The way I code my highlights is:
>
>	*(char*)HiliteMode &= ~(0x01<<hiliteBit);
>
>However, I don't know why your code using BitClr should cause a buss error.

My guess is the the original poster is using THINK C which defines globals
as external vars - (not their addresses). From LoMem.h:
 char HiliteMode : 0x938;

In which case your suggestion will suffer the same problem. He needs to use:
 BitClr(&HiliteMode,pHiliteBit);

I made this same mistake myself recently. It's so easy (and foolish) to copy
code right from IM w/o thinking.

-ME
From: tim@maths.tcd.ie (Timothy Murphy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How can I change the menu in Think C?
Keywords: Think_C menu
Date: 18 Nov 92 02:24:05 GMT
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.

asunta@convex.csc.FI (Miika Asunta) writes:

>tim@maths.tcd.ie (Timothy Murphy) writes:


>>Anyone know why Think C (v5 under System 7)
>>doesn't like this?
>>It compiles but bombs out.

>>main()
>>{
>>	MenuHandle AppleMenu;
>>	AppleMenu = GetMenu(1);
>>	AddResMenu(AppleMenu, 'DRVR');
>>}

>1) Where are MacInit-routines (InitGraf etc...)

>2) Do you have a resource file named project.pi.rsrc

>3) Application resource IDs should be >= 128

My apologies for an unpardonably careless question.
I was actually trying to compile sublaunch.c
from ftp.apple.com (dts/mac/sc/snippets).
This is written for MPW C.

(1) The init() routines _were_ included;

(2) I hadn't created the required resource file.
(I didn't realise that the given resource specification file
had to be changed to RMaker format, and compiled.)

(3) The ID was actually 128 -- 1 was a typo.

Thanks to all who sent suggestions (mostly polite!).

-- 
Timothy Murphy  
e-mail: tim@maths.tcd.ie
tel: +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.wanted
From: fsullivn@vax1.tcd.ie
Subject: Patch for Mac Plus under 7.0 needed
Organization: Trinity College Dublin
Date: Thu, 19 Nov 1992 19:35:10 GMT

System 7 runs fine on a Mac Plus upgraded to 4 Mb, apart from one thing.  For
some reason, the Command-Right_Arrow keyboard combination does not register. 
This only happens with Macs running non-ADB keyboards.  It happens on all
Pluses and probably older non-ADB Macs as well, although I haven't been able to
test these.

I'm not a programmer, just a user annoyed by the fact that he can't use his
favourite command key combinations in Word, the Finder etc.  So if you're a
programmer with time on your hands and a Plus hanging around, I (and thousands
of other Plus users) if you could take a look at this problem.

I'm currently using 7.0 on a 4 Mb Plus with 30 Mb external HD, but may upgrade
to 7.1 soon.  I imagine that's much the same profile as most other people who
have the same problem.

I'll obviously be happy to beta-test any patches and publish them in Bulletin
Boards etc (if you don't want to bother).

Thanks in advance,

Fergus Sullivan.
Trinity College, Dublin.                                    fsullivn@vax1.tcd.ie
Newsgroups: comp.sys.mac.programmer
From: mason@cis.umassd.edu (Mason L. Bliss)
Subject: Re: Emacs-like editor for MPW 3.2
Organization: University of Massachusetts Dartmouth
Date: Mon, 16 Nov 1992 21:06:51 GMT

In <kf12clK00iUx06PFt_@andrew.cmu.edu> "Aaron J. Whitney" <NIKITA+@CMU.EDU> writes:

>I have become very accustomed to emacs and am looking for some way to
>integrate an emacs-type editor with MPW 3.2  Is there any such product
>on the market?  Has anyone come up with a comparable solution?  Mostly,
>I am just looking for some way to bind keys and for a couple of
>functions that emacs offers (ie. goto-line).  Currently I am using
>QuickKeys to do some of this but it is certainly not a sufficient
>solution.  Thanks.

You might want to check out Alpha, an emacs-inspired (I think) shareware
text editor... It seems to have a lot of cool features.

I think it's available at a few ftp sites (If memory serves, I found it on
From: draper@odin.mda.uth.tmc.edu (E.J. Draper)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Help: my drag-and-drop appl wont hilight
Date: 16 Nov 1992 17:19:12 GMT
Organization: U.T.M.D. Anderson Cancer Center
X-UserAgent: Nuntius v1.1.1d12
X-XXMessage-ID: <A72D3557A302019A@mdarpi1.mda.uth.tmc.edu>
X-XXDate: Mon, 16 Nov 92 17:24:07 GMT

In article <goodill_eric-161192083914@130.252.12.201> Eric Goodill,
goodill_eric@tandem.com writes:
>I'm trying to write my first drag-and-dropable application, and I can't
>even get past square one: I set up a FREF resource for type TEXT in my
>application, cleared its hasBeenInited bit and rebuilt my desktop.  When
I
>drag a file of type TEXT over my app, nothing happens.  I do have a BNDL
>resource and set the hasBNDL bit (though I don't think this is strictly
>needed for drag-and-drop to hilight).  I'm still working on the Apple
event
>code, so I haven't set the acceptsHighLevelEvents (or whatever it's
called)
>flag yet.  But again, I don't think that needed either.  What am I
missing
>or doing wrong?

Try rebuilding your desktop.  You seem to be doing everything properly...


      |E|J-  ED DRAPER
 rEpar|D|<-  Radiologic/Pathologic Institute
             The University of Texas M.D. Anderson Cancer Center
             draper@odin.mda.uth.tmc.edu
Newsgroups: comp.sys.mac.programmer
From: jpurlia@qualcomm.com (John Purlia)
Subject: LSize Strikes (Not Once But Twice)
Followup-To: comp.sys.mac.programmer
Organization: Qualcomm, Inc.
Date: Thu, 19 Nov 1992 19:04:44 GMT

Lsize... My, isn't this trap annoying!

I've created a list containing both horizontal and vertical scroll bars
that fit flush against the right and bottom borders of a window.  When the
window is resized I invalidate and erase the old scroll bars, then call a
routine shich does the resizing for this particular window with a call to
LSize.  LSize is nice enough to draw the scroll bars for me (thank you, Mr.
List Manager), however, when the window is resized such that the new width
is greater than the old and the new height is less than the old
(effectively dragging the grow icon up and to the right), the region along
the horizontal scroll bar which was previously occupied by the rectangle
enclosing the grow icon is NOT updated!!!  Remember, I invalidated this
rectangle immediately before resizing the list via LSize...

This behavior does not happen along the vertical scroll bar when the resize
is in the opposite direction.

What gives????

Sure, I could just invalidate the area occupied by the old grow Rect (which
I'll probaly do), but something just seems wrong with LSize here!

...........................................................................
John Purlia          : My brain; not my company's brain.  My brain says...
jpurlia@qualcomm.com : "The Toolbox giveth, and the Tech Notes taketh away"
...........................................................................
Newsgroups: comp.sys.mac.programmer
From: peter@ncrpda.curtin.edu.au (Peter N Lewis)
Subject: Re: BINHEX SOURCE CODE
Followup-To: comp.sys.mac.programmer
Organization: NCRPDA, Curtin University
Date: Tue, 24 Nov 1992 03:13:05 GMT

In article <By6CwJ.DsA@news.iastate.edu>, niko@iastate.edu (Nikolaus E
Schuessler) wrote:
> 
> In article <8667.99.uupcb@outlan.ersys.edmonton.ab.ca> charles.berlinguette@outlan.ersys.edmonton.ab.ca (Charles Berlinguette)  writes:
> >I would like to get the source code, or a description of an output file
> >for the BINHEX decoder/encoder as used in the files processed in the
> >group comp.binaries.mac.

> You can look for DeHQX ... I think that source has been posted somewhere
> on the net. There is a 'non-technical' description of the format also.
> Look in the info-mac archives in the source directory. info-mac/src/c.

DeHQX's source code is in info-mac/source/pascal (it's written in Pascal,
obviously :-).  I wouldn't recomend it for figuring out the binhex format
though, it's very messy code, trying to juggle running smoothly while being
totally non-modal.  The  source for mcvert is in /info-mac/unix, that might
be better to look at (but it's in C).  The specs for the binhex format are
in /info-mac/tech/binhex-40-spec.txt.

BTW, if you can, use MacBinary instead - its about a dozen times easier to
implement...

Have fun,
   Peter.

_______________________________________________________________________
Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
From: keith@taligent.com (Keith Rollin)
Subject: Re: Volume Type?
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Tue, 17 Nov 1992 22:21:29 GMT

In article <hassan.722027702@informatics>, hassan@wupost.wustl.edu (Scott
Hassan) wrote:
> 
> Does anyone know how to tell whether a particular volume is a CD-ROM
> drive?

If I can stick a CD-ROM into it and it can read it, it's a CD-ROM drive.

(Sorry...)

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer
From: sgrenander@NASAMAIL.JPL.NASA.GOV (Sven Grenander)
Subject: I wish someone would write a ....
Followup-To: comp.sys.mac.programmer
Organization: Jet Propulsion Laboratory
Date: Mon, 23 Nov 1992 20:46:19 GMT

... program or Hypercard stack to archive, track and access saved
NewsWatcher messages.

I'm not a Hypercard programmer, but it would probably be the most
straightforward approach.

Usage scenario:

NewsWatcher "save" saves the message to a designated "new message folder".
The stack searches the "new message folder" for files and creates a new
"card" for each file/message/post. The file in the "new message folder" is
deleted once the information has been placed on the "card".

The senders address should be added to a "InterNet directory" with
newsgroup(s) frequented. 

The stack itself would have most of the features which are present in the
TechNotes stack.

The user should be able to specify indexing categories and be able to link
individual cards to index categories on the fly.

Etc.

... Just a wish ...


-Sven
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc
From: warner@mtu.edu (Thumper (Nate))
Subject: Re: Is it possible to do batch job with MPW?
Organization: Michigan Technological University
Date: Wed, 18 Nov 1992 19:18:16 GMT

choi@gsbsrc.uchicago.edu (Dongseok Choi) writes:
>How can I delay the 'move output output1' until program finishes?
>Is it possible with MPW?
>Any other suggestions?

>Choi
>choi@gsbsrc.uchicago.edu

Doesn't MPW already wait until the tool is done?  I thought it did.  If you are
using an outside  program and not a tool, I should think that you could have
the shell wait until something is returned, by maybe something like this:
PSEUDO CODE::
wait until (return <> "")
then do ...

etc.  


		-Nate
-------------------------------------------------------------------------------
| Restraint- Tough to achieve and | warner@mtu.edu   ntwarner@mtus5.cts.mtu.edu
|  no fun once you do!! - Thumper | US SNAIL => Nate Warner @ 222E Coed
----------------------------------|                     Houghton MI, 49931-1195
				  |--------------------------------------------

Newsgroups: comp.sys.mac.programmer
From: dunigan@thdsun.epm.ornl.gov (Tom Dunigan)
Subject: seeking C source for Knester/Rollin book
Organization: Oak Ridge National Laboratory
Date: Fri, 20 Nov 1992 12:41:04 GMT


-- 
	Tom Dunigan
	dunigan@msr.epm.ornl.gov
Newsgroups: comp.sys.mac.programmer
From: shebs@apple.com (Stan Shebs)
Subject: Re: MPW and GCC
Date: Fri, 20 Nov 1992 17:51:28 GMT
Organization: Apple Computer Inc.
Followup-To: comp.sys.mac.programmer

(A couple micro-patches to the info...)

In article <1992Nov19.204520.25425@netcom.com>, knee@netcom.com (Mark
Lanett) wrote:

> The version of gcc out there was 1.37 or something like that. 2.2 was "sort-of"
> ported last summer (just the C part, not C++ or ObjC)

We've been continuing to work on 2.1, it's now compiling itself.  We also
have what appears to be a good scheme for handling parameter pragmas (thx
to Herb Derby), and a way to make short branches when possible (thx to
Keith
Rollin).  We'll be upgrading to 2.3.1 shortly as well (thx to Larry Wall's
patch program, which BTW deserves a Mac port, if anybody needs a project!).

Stan Shebs
Apple ATG System Software
shebs@apple.com
Newsgroups: comp.sys.mac.programmer
From: sdk@cci632.cci.com (Stephen Knight)
Subject: Re: MPW Linker help needed
Organization: [Computer Consoles, Inc., Rochester, NY
Date: Sat, 21 Nov 1992 23:27:07 GMT

In article <1992Nov17.090523.376@unimur.um.es> humberto@unimur.um.es (Humberto Martinez) writes:
>Hello:
>	I'm trying to compile flex and bison, from GNU, in a Macintosh LC. I
>can't generate an executable file from the objects ones. My linker gets out
>of order, and says:
>
>	Link: Error: Jump Table offset into code segment is greater
>than 32K (Error 50) .......
>
>Could anyone help me?. What are the correct parameters to both C and link
>programs?
>
>	Thank you in advance, Humberto
>
>P.S.: it's really important to me.

  I believe the flags are "-model far", this is supposed to break the
32k barrier.  (for what it's worth, last year a source at Apple said it
wasn't trustworthy, but that was several revisions ago).

good luck
steve knight
sdk@cci.com
From: hurtz@mcl.ucsb.edu (Gary Hurtz)
Newsgroups: comp.sys.mac.programmer
Subject: Now theres THINKC 5.0.4???
Summary: need to find thinkc 504
Keywords: thinkc tcl
Date: 19 Nov 92 20:48:30 GMT

Ive recently been trying to catch up with all of the thinkc and tcl updates
and  thought I finally got it.  But now,  saw it posted that thinkc 504 is
out. I havent been able to find anywhere, now.  If someone out there knows where it can be found, can you please mail me???

Some day i might get this right...

hurtz@mcl.mcl.ucsb.edu

thanks

Newsgroups: comp.sys.mac.programmer
From: system@asuvax.eas.asu.edu (Marc Lesure)
Subject: Using other software in conjuction with own app.
Organization: Arizona State University
Date: Sun, 22 Nov 1992 08:48:23 GMT

I am developing an application program that requires certain text editing
features.  I would like to be able to allow the user to use the editor/word
processor that they like best.  Can I have my app invoke another app 
(MacWrite, Word, ...) and have control and data returned to my app when
done?  I guess I'm looking for a fork() type of operation.  Any snippets
available?

-----------------------------------------------------------------------
Marc Lesure / Arizona State University / Tempe, AZ
"Between the world of men and make-believe, I can be found..."
"False faces and meaningless chases, I travel alone..."
"And where do you go when you come to the end of your dream?"

UUCP:       ...!ncar!noao!asuvax!lesure  
Internet:   lesure@asuvax.eas.asu.edu
Newsgroups: comp.sys.mac.programmer
From: kire@feffe.nada.kth.se (Jan-Erik Mngs)
Subject: Re: THINK C 5.0.4 Update
Organization: Royal Institute of Technology, Stockholm, Sweden
Distribution: comp
Date: Tue, 17 Nov 1992 09:36:28 GMT

In article <PHILS.92Nov16233656@chaos.cs.brandeis.edu> phils@chaos.cs.brandeis.edu (Phil Shapiro) writes:

   The updater for THINK C 5.0.4 has been posted to info-mac and
   comp.binaries.mac; it should appear on info-mac within a day or so.

I've made the updater available for anonymous ftp from
aux.nada.kth.se (130.237.226.207) in
/pub/THINK_C_5.0.4_Update.sea.hqx. The "old" TCL-update is not
included.

    Kire
     "The clock-cycles spent multitasking will not be deducted from
     the rest of your life."
Newsgroups: comp.sys.mac.programmer
From: monty@blackhole.lerc.nasa.gov (Monty Andro)
Subject: Help with mac binary file header
Organization: NASA Lewis Research Center
Distribution: comp
Date: 23 Nov 92 12:13:33


Hello,

I think this is the proper group for this question, but if not, I'm
sure someone will tell me so.

My question deals with the format of Mac binary files that have been
sent via Quickmail to a Unix machine.  In my case, a Mac user has sent
me a binary file which I received uuencoded (according to the user he
did not know how the file got uuencoded) which is great because I can
just uudecode the file and get the original binary file.  After
decoding the file, I noticed that the file had a 256 byte header of
some sort that was not part of the actual binary data.  Can anyone
tell me the purpose of this header?  Does anyone have a description of
the format of this header?

Below is a Hex dump and ASCII translation of the 256 byte header for
you to look at and hopefully be able to tell what its all about.  Once
someone tells me the format, I would like to duplicate this header
information with my specific information and send my Mac user binary
files that he can read without going thru a lot of file manipulations.

Basically, I would like to send and receive email to a Mac user using
Quickmail via my Unix Sun machine as transparent to the Mac user as
possible.  Maybe a program already exists to do this very operation?

Any help or suggestions would be greatly appreciated.

Monty

************* Header Translation ************

Offset
00    00 05 16 00 00 01 00 00 4D 61 63 69 6E 74 6F 73   ........Macintos
10    68 20 20 20 20 20 20 20 00 04 00 00 00 09 00 00   h       ........
20    00 4A 00 00 00 10 00 00 00 03 00 00 00 5A 00 00   .J...........Z..
30    00 0D 00 00 00 02 00 00 01 00 00 00 00 00 00 00   ................
40    00 01 00 00 01 00 00 00 64 00 57 44 42 4E 4D 53   ........d.WDBNMS
50    57 44 00 00 00 00 00 00 00 00 50 72 6F 63 65 73   WD........Proces
60    73 20 44 72 61 66 74 54 9E 78 00 00 C5 80 00 00   s DraftT.x......
70    00 00 00 00 00 00 04 63 61 6C 6C AA 00 44 29 C2   .......call..D).
80    00 3D F3 C4 00 44 29 C2 00 3D F4 0A 00 00 0C 20   .=...D)..=.....
90    00 00 00 00 00 44 2A 0C 00 00 00 00 00 00 00 00   .....D*.........
A0    00 44 29 E2 00 3D F3 84 00 44 2A 1C 00 00 00 00   .D)..=...D*.....
B0    18 45 6E 63 6C 6F 73 75 72 65 3A 20 50 72 6F 63   .Enclosure: Proc
C0    65 73 73 20 44 72 61 66 74 00 00 03 80 19 BB F0   ess Draft.......
D0    00 19 24 45 52 52 00 00 28 00 31 29 3A 20 73 39   ..$ERR..(.1): s9
E0    52 65 63 65 69 76 65 46 57 44 42 4E 4D 53 57 44   ReceiveFWDBNMSWD
F0    00 00 00 00 00 00 00 00 80 43 0D 50 72 6F 63 65   .........C.Proce
From: orpheus@reed.edu (P. Hawthorne)
Newsgroups: comp.sys.mac.programmer
Subject: Re: A few questions on this and that
Date: 23 Nov 92 00:42:05 GMT
Article-I.D.: reed.1992Nov23.004205.21107
Organization: Reed College, Portland, OR


  kurisuto@bach.udel.edu (Sean J. Crist) writes:
: Does there exist any kind of development tool which ... gives you an 
: average and peak amount of how much space is allocated during the whole 
: run of your application?

  It seems that a VBL task could be written that would take notes. Anybody
know if FreeMem or MaxMem can move memory? Can a VBL task find out how
many handles are being used? Does StackSpace move memory?

  Theus (orpheus@reed.edu)
From: mgraf@sydvm1.VNET.IBM.COM (Michael Graf)
Date: Wed, 18 Nov 92 13:41:40 EDT
Newsgroups: comp.sys.mac.programmer
Subject: GWorld and CopyBits code sample
Organization: Australian Programming Centre (IBMA)
Disclaimer: This posting represents the poster's view only.
News-Software: Usenet 3.0

Can anyone point me towards a snippet, or code sample that would
demonstrate the use of GWorld structures and Copybits to move sections
of a picture around and store them for quick, easy updating.
 Pascal would be preferable, but C wopuld be acceptable.

  Thanx, in advance, for the help


**********************************************************************
Regards,
  Michael Graf                INTERNET:    (mgraf@sydvm1.vnet.ibm.com)
                              BITNET:      (mgraf@vnet)
**********************************************************************
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to store file references/names ?
Date: 18 Nov 92 17:30:31 +1300
Organization: University of Waikato, Hamilton, New Zealand

In article <RMF.92Nov17175921@chopin.cs.columbia.edu>, rmf@chopin.cs.columbia.edu (Robert M. Fuhrer) writes:
> Of course, being able to use "relative" paths in aliases (e.g., "Up 2 folders,
> into the folder named 'Foo'...") would solve the problem much of the time...
>
> Unfortunately, Apple didn't put it in (even though Unix has had this for
> years)!

So what does that first argument to NewAlias and ResolveAlias actually do?

Lawrence
thought he was using relative aliases all this while (and had them work,
too)...
Newsgroups: comp.sys.mac.programmer