HDTenEightyP/NetNews huggingface dataset:
From: mason@cis.umassd.edu (Mason L. Bliss)
Subject: Re: C++ for Mac?
Organization: University of Massachusetts Dartmouth
Date: Mon, 23 Nov 1992 17:24:10 GMT

In <9440009@hpfcso.FC.HP.COM> papillo@hpfcso.FC.HP.COM (Bob Ellison) writes:

>Is there a full C++ implementation available for Macintosh?

Yep. There's a full C++ compiler that runs under MPW. If I were you, though,
if its not an urgent need, I'd wait until Symantec comes out with their
version of C++... Just my preference, though...
--
+-----------------------------------------------------------------------------+
 \   What diabolical chicken stepped on your forehead and sat on your chin?  /
  \-------------------------------------------------------------------------/
   \        Mason L. Bliss <mason@cis.umassd.edu> is watching you.         /
From: steele@vlsi.caltech.edu (Craig Steele)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Aaaaargh! MPW C++ help needed!
Date: 17 Nov 1992 12:19:04 GMT
Organization: California Institute of Technology
Distribution: world
Reply-To: steele@vlsi.caltech.edu (Craig Steele)
NNTP-Posting-Host: kiwi.cs.caltech.edu

>very perplexing problem: one module simply won't compile.  CFront dies
>partway through the #includes (it makes it past all the Mac includes, all 
23

Maybe you have a cyclic #include dependency.  Are you using conditional
(ifdef'd) inclusion?

Craig Steele, steele@vlsi.caltech.edu
Newsgroups: comp.sys.mac.programmer
From: wysocki@netcom.com (Chris Wysocki)
Subject: Re: SwapMMUMode() breaks INIT
Keywords: INIT, memory, OSUtils
Organization: Connectix Corporation, San Mateo, CA
Date: Sun, 22 Nov 1992 04:37:03 GMT

In article <1992Nov21.145938.18889@ll.mit.edu> wolfson@ll.mit.edu (Harry
Wolfson) writes:

>I am trying to write a pair of short INIT's that will
>set the memory addressing mode to 24 or 32 bits on
>startup. 
>...
>My code is very short and straight forward and *very*
>ineffective. I fix the pc as instructed in Tech note
>#228. Then call SwapMMUMode( &mode), with mode = 1 
>or 0 (32 or 24 bit respectively). And that's all.
>...
>Is it impossible to set the mode during startup? Why?

SwapMMUMode doesn't and can't change the mode (24/32-bit) of the Memory
Manager; it only changes the way the hardware (the MMU, specifically)
interprets memory addresses.  SwapMMUMode is only intended to allow you to
access RAM on NuBus video cards and do other similarly esoteric things.
Changing the mode of the Memory Manager at startup is quite difficult to
do, since the entire system (Memory Manager, Slot Manager, etc. etc.) has
already been initialized (at least preliminarily) by the time anything is
read from the startup disk.  Unless you're willing to put a *lot* of time
into this project, about the best you can expect to do is to have your
INIT toggle the appropriate location in extended parameter RAM that
controls the mode of the Memory Manager, then do a warm restart to
reinitialize the system in the appropriate mode.  I don't remember the
exact location of the 24/32-bit mode flag in PRAM, but you should be able
to find it by peeking at the System 7 Memory control panel.

Chris.
-- 
------------------------------------------------------------------------------
Chris Wysocki                                     Internet: wysocki@netcom.com
Software Engineer                                   America Online: AFA ChrisW
Connectix Corporation                                   CompuServe: 72010,1140

Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: faulty ANSI in Think C 5.0?
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Tue, 17 Nov 1992 22:01:26 GMT

In article <1ebg9lINNi8e@terminator.rs.itd.umich.edu>,
potts@oit.itd.umich.edu (Paul Potts) wrote:
> 
> In article <1992Nov16.211648.23619@math.ucla.edu> dchopp@vicente.math.ucla.edu (David Chopp) writes:
> >I'm curious if others have run into similar problems as I regarding using
> >some ANSI subroutines in Think C 5.0.2 with TCL.  In particular, I have
> >trouble using strcpy, strcmp, sprintf, to name a few.  I have found them
> >to be sporadic in working properly and I'm wondering if I'm doing something
> >wrong.  For example, in one object, I'll have two methods each using strcpy
> >in them (all in the same file).  In one context, it works perfectly, in the
> >other it fails to copy.  The arguments being passed are all correct (I've
> >checked them several times).  
> 
> I'd say it is most likely that there is a problem in your program. I've
> used sprintf, strcpy, strcmp, etc. and had them work fine. 
> 
> Some things to consider: are you testing the arguments under the source-level
> debugger, or at runtime under MacsBug? The source-level debugger and the
> low-level debugger can show different things. Under the source debugger
> sometimes memory is better initialized, pointers tend not to penalize you
> for writing to stray addresses, etc. Whenever I've had problems using
> the string routines, they were caused by some other part of my code which
> was trashing memory at runtime.

Another thing that occurs to me is that there could be problems if the
strings are data members of handle-based objects, and the ANSI routines are
in an unloaded code segment. If that's so, then a call like:

    strcmp(fMyString, "Test string");

can fail. This is because calling strcmp() will cause the code segment
containing it to be loaded. This loading could cause the object owning
fMyString to move AFTER its address has been taken and placed on the stack.

If this is the problem, there are at least three solutions:

1) lock the object containing fMyString.
2) make sure the ANSI library is in a resident segment
3) copy fMyString into a local variable (oops! this requires access to
strcpy!
   infinite page fault has occured -- shutting down...)

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer
From: goodill_eric@tandem.com (Eric Goodill)
Subject: Do I need to remove Apple event handlers at end of my code?
Followup-To: comp.sys.mac.programmer
Organization: Tandem Computers, Inc.
Date: Fri, 20 Nov 1992 16:36:49 GMT

Hi,

I'm testing the Apple event waters.  Everything seems to be going just
fine, but I have a question about whether I need to deinstall the Apple
event handlers that I installed at the beginning of my code?  IM 6
documents the remove routine, but doesn't say whether my code must remove
the handlers explicitly or the OS just figures it out when my program
stops.  I currently do not remove the handlers, and everything seems fine.

Cheers, Eric
Eric Goodill, goodill_eric@tandem.com, Tandem Computers, Cupertino, Calif.
Newsgroups: comp.sys.mac.programmer
From: robichau@lambda.msfc.nasa.gov (Paul Robichaux)
Subject: Re: Whip me, beat me, what to do with DISCIPLINE?
Reply-To: robichau@lambda.msfc.nasa.gov
Organization: New Technology, Inc.
Date: Mon, 23 Nov 1992 17:27:55 GMT

In <1992Nov20.225517.15649@netcom.com> creiman@netcom.com writes:
>Blat uses protected memory mode of the MMU to protect the low level
>vectors.  Basiclly, a fool-proof EBBE. This power has a price: you
>can't use VM with it.

Blat also doesn't run on some machines- the IIci and IIsi come to
mind, but I'm not certain if that's an inclusive list or not. 
-- 
Paul Robichaux, KD4JZG              | May explode if disposed of improperly.
Mission Software Development Div.   | Printed on recycled phosphors.
New Technology, Inc.		    | ** PGP 2.0 key available on request **
From: dppeak@matt.ksu.ksu.edu (David Paul Peak)
Newsgroups: comp.sys.mac.programmer
Subject: Programming Beginner
Date: 19 Nov 1992 19:12:43 -0600
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

I`m interested in writing my own FKeys but I don't
know where to start.  I've heard of a program called
FKey Maker, but can't find it anywhere.  I would like
to find this program. However, this will probably not 
help me learn to write my own.

I also would like to get rid of that annoying question
that, when I double-click on a file and I don't have
the file that created it, asks me if I want to open
that file with an application that I do have. Someone
had posted a file to do this for 7.0 and 7.01.  But 
when I upgraded to 7.1 this question started appearing
again. Can someone tell me how the resource that controls
this. I am fairly handy with ResEdit, but I don't unnderstand
"code".

I would be grateful for any help.
Thanks in advance!

Dave
Internet: dppeak@matt.ksu.ksu.edu
AOL: skibum7

Newsgroups: comp.sys.mac.programmer
From: creiman@netcom.com
Subject: Re: Whip me, beat me, what to do with DISCIPLINE?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Thu, 19 Nov 1992 18:05:31 GMT

brunner@crchh447.bnr.ca (James Brunner) writes:

>Ahh, the title caught your eye!

Yes, it did. Nice work.

>I'm trying to get discipline to work.  I have figured out that macsbugs (which
>I've used quite a bit) must be in the system folder.  I've put discipline in
>the extensions folder.  And put the discipline startup file in the system
>folder.

You've already screwed up by assuming Disipline is worth using. In all my
days, the only thing Disipline has taught me is that the Finder is using
SetRect wrong. Zippity-do-da. But if you must plow ahead:

1) Don't use D. the way they tell you to. Instead, change its type to 'APPL'.
   Take it out of the system folder, you've probably got enough junk there
   anyway.

2) Reboot, so you don't have it installed. Now, just double click on the
   D. application. Make sure there is a startup file in the same directory
   as D. itself. D. will install (but not activate) itself. The nice
   part about this is you can just quit D. when your done.

3) Go into Macsbug at the appropriate time and do the 'DSC ON' stuff. 
   If you want to get fancy, you can bracket the code you want to test
   with DebugStr's to activate and deactivate D.
   
4) Realize you've been wasting time. Go buy TMON Pro or Jasik's Debugger,
   since they both do a better job at discipline than Discipline. Or,
   try your app under EvenBetterBusErr, Xap handles, Blat, or heap 
   scrambling. Unlike Discipline, these have all proven their worth.
   (Leaks is pretty good too).

5) Another good technique is to extend the Xap handles concept one
   step further. Xap handles only stuffs a block with junk after you
   free it up. This doesn't catch uninitialized data structures. You
   can modify your program's memory allocator to stuff new blocks with
   bus error values when first allocated. This usualy catches lots of
   bugs for me. I think Jasik's will do this for you.

Sorry for rambling on. Debugging is something I do far too often, and
simple techniques like EBBE, et al can save much gnashing of teeth in
the long run.

Chao,

Charlie.
-- 
Charlie Reiman
creiman@netcom.com
Newsgroups: comp.sys.mac.programmer
From: reed@snake.tc.cornell.edu (Michael G. Reed)
Subject: Re: How do you make a master disk?
Reply-To: reed@TC.Cornell.EDU
Organization: Cornell National Supercomputing Facility
Date: Thu, 19 Nov 1992 12:28:43 GMT

In article <4476@bimacs.BITNET>, liran@bimacs.BITNET (Eshel Liran) writes:
|> I know a few companies which protected their master disk by making a
|> hole in it, using a laser beam. I think it costs the developer about
|> 1$ per disk, and I don't think it can be copied.
|> 
|> Liran Eshel
|> Bar-Ilan Univeristy, ISRAEL
|> liran@bimacs.cs.biu.ac.il

That method was popular on the old Apple ][ for a while until developers
were sued for damages...Appears that they would burn the hole out around the
outter edge of the disk, and then make sure the drive would never go there
in normal operation.  The idea was that when the user tried to copy it, and
the head passed over the damaged area, it would destroy the read/write head.
Great, 'huh?  Anyway, that's a thing of the past.

-Michael
-----------------------------------------------------------------------------
Michael G. Reed                                         (reed@TC.Cornell.EDU)
Cornell National Supercomputing Facility                       (607)/254-8806
-----------------------------------------------------------------------------
        Why be normal, it's boring; and boring people should be shot.

Note:  These are not the views of my employer (and probably not mine either).
Newsgroups: comp.sys.mac.programmer
From: ejw1@kimbark.uchicago.edu (Eric Weidl)
Subject: Re: Prototyper ??
Reply-To: ejw1@midway.uchicago.edu
Organization: Academic and Public Computing
Date: Wed, 18 Nov 1992 03:20:13 GMT

In article <1992Nov17.165513.10568@ncsu.edu> shcrensh@eos.ncsu.edu (SCOTT 
HARDING CRENSHAW) writes:
>
>What happened to Prototyper, from Smethers-Barnes ?  It was a fairly useful
>user-interface prototyping tool, which would also generate application shell
>code for the UI.
>
>If it is not available anymore, are there any similar products around ?  
>How good are they ? System 7 Savvy ?
>
>Any comments would be appreciated. 

Prototyper is now distributed by IT Makers and has been renamed Marksman; 
George Cossey remains the author. I just got some information from IT on 
pricing: $149 for version 2.0, $49 if you send the copyright page from your 
Prototyper manual.)  IT's address: 

	IT Makers
	P.O. Box 730152
	San Jose, CA  95173

Sorry, I don't have a number.

AppMaker is also an interface drawing tool.

Eric
-- 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
 Eric Weidl  e-weidl@uchicago.edu
 University of Chicago
 Biological Sciences Division Academic Computing
Newsgroups: comp.sys.mac.programmer
From: shcrensh@eos.ncsu.edu (SCOTT HARDING CRENSHAW)
Subject: Prototyper ??
Originator: shcrensh@c00476-224wi.eos.ncsu.edu
Reply-To: shcrensh@eos.ncsu.edu (SCOTT HARDING CRENSHAW)
Organization: North Carolina State University, Project Eos
Date: Tue, 17 Nov 1992 16:55:13 GMT


What happened to Prototyper, from Smethers-Barnes ?  It was a fairly useful
user-interface prototyping tool, which would also generate application shell
code for the UI.

If it is not available anymore, are there any similar products around ?  
How good are they ? System 7 Savvy ?

Any comments would be appreciated. 
Newsgroups: comp.sys.mac.programmer
From: wwg2101@zeus.tamu.edu (GILPIN, W.W.)
Subject: Re: THINK Pascal- program crashes only when stand-alone
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Wed, 18 Nov 1992 20:31:00 GMT

>>Without going into the specifics, here's my general problem.  I have a
>>program which functions fine when running within the THINK Pascal
>>development environment, but which crashes when compiled as a stand-alone
>>application.


>I would get different answers to a matrix problem depending on whether I
>was running under Turbo or in a stand-alone application. I found out that
>I hadn't locked a Handle properly--in the stand-alone version a memory
>block was being moved unexpectedly and my handle was pointing to garbage.

I agree. I had the same problem with a THINK C program i've been working on.
I loaded in some bitmaps from a resource and it worked just fine, but when I
built the stand-alone, it crashed because the pointers I was using were invalid
after the blocks were moved. Always make sure that you lock the memory that you
expect to see in the same place all the time.

-------------------------------------------------------------------------------
| Wes Gilpin              | I'd kill myself for you...I'd kill you for myself |
| WWG2101@TAMZEUS(BITNet) |------------------------------------------         |
| WWG2101@ZEUS.TAMU.EDU   | Southwest Knights of Nee Paintball Team | PANTERA |
-------------------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: chrism@col.hp.com (Chris Magnuson)
Subject: Developers: Do you test with Apple AUX??
Date: Mon, 16 Nov 1992 21:18:05 GMT
Organization: HP Colorado Springs Division

  If you develop programs for the Mac, there is one other operating system
you should test with...Apple A/UX 3.0.

  A/UX 3.0 is a UNIX operating system that allows Mac users to run UNIX as
another application while still doing the "normal" Mac things.  Some well
known programs (like White Knight) do not work under A/UX, and this causes
problems for users.  I know as an A/UX user that I am very dissatisfied with
some of the so-called "hot" programs that don't work under A/UX.

  So if you're putting out a program for the Mac, make sure you get it tested
on A/UX.  I can help.

Chris Magnuson
chrism@col.hp.com
719 590 2963


Newsgroups: comp.sys.mac.programmer
From: goodill_eric@tandem.com (Eric Goodill)
Subject: Simulating odoc event from THINK Pascal?
Followup-To: comp.sys.mac.programmer
Organization: Tandem Computers, Inc.
Date: Fri, 20 Nov 1992 16:43:56 GMT

Hi,

Has anybody come up with a relatively easy way to simulate odoc events from
within THINK Pascal so that I can use the source level debugger while
debugging my Apple event handlers?  As it stands, I've just been using
Macsbug which works just fine but is a bit tedious.

Cheers, Eric
Eric Goodill, goodill_eric@tandem.com, Tandem Computers, Cupertino, Calif.
Newsgroups: comp.sys.mac.programmer
From: leeke@epcot.spdc.ti.com (Steve Leeke)
Subject: Re: Inside Mac volumes 1-6 FOR SALE *CORRECTION*
Keywords: Inside Mac
Organization: TI Semiconductor Process and Design Center
Distribution: usa
Date: Tue, 17 Nov 1992 14:18:13 GMT

Mint condition Addison Wesley Inside Mac vol's 1-6.  Complete set $75
or best offer.  I pay UPS ground shipping anywhere in the U.S.

Steve Leeke

(214) 995-2249 days
(214) 517-6674 evenings
-- 
Newsgroups: comp.sys.mac.programmer
From: felciano@summit.stanford.edu (Ramon M. Felciano)
Subject: Need a text manipulation tool / programming language.
X-Posted-From: InterNews1.0a5@leland.stanford.edu
Organization: Stanford University Medical Media and Information 
 Technologies
Date: Sat, 21 Nov 92 23:47:21 GMT
Xdisclaimer: No attempt was made to authenticate the sender's name.


Hi --

I'm looking for a tool or programming language designed for the
manipulation of text files. I've got a number of similarly formatted
files that I want parsed into my program. Before I can do that,
however, I need to "massage" these files into the same format. I tried
writting a tool to do this, but the result starting looking more and
more like a language syntax parser (aagh!)

Are there any tools (Mac, Unix, or other) that do something like this?
I guess I'm sort of looking for a glorified grep with language
constructs (e.g. if-thens).

Thanks!

Ramon

+----------------------------------------------------------------+
| Ramon M. Felciano                felciano@summit.stanford.edu  |
| Associate Director, SUMMIT       (415) 723-9688                |
| Stanford University Medical Media and Information Technologies |
+----------------------------------------------------------------+
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Apple DocViewer wish
Date: 23 Nov 92 16:01:14 +1300
Organization: University of Waikato, Hamilton, New Zealand

After printing out another bunch of documentation in DocViewer format, it
occurred to me that it would be really nice if Apple incorporated a paper-
saving measure or two in DocViewer.

For example, MacWrite II adds some interesting extra buttons to its print
dialog: you can elect to print only the even or the odd pages, and you can
print the chosen pages in reverse order. With these features, you can do
double-sided printing on any single-sided sheet-fed printer!

It's a wonder to me that more applications don't include these handy options.
How about it, Apple? Think of all the paper--and shelving--you would be helping
to save...

Lawrence D'Oliveiro                       fone: +64-7-856-2889
Computer Services Dept                     fax: +64-7-838-4066
University of Waikato            electric mail: ldo@waikato.ac.nz
Hamilton, New Zealand    37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
History's like a mole; it burrows away unnoticed. -- Andrei Sakharov
Newsgroups: comp.sys.mac.programmer
From: goodill_eric@tandem.com (Eric Goodill)
Subject: Help: my drag-and-drop appl wont hilight
Followup-To: comp.sys.mac.programmer
Organization: Tandem Computers, Inc.
Date: Mon, 16 Nov 1992 16:44:42 GMT

Hi,

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?

Cheers, Eric
Eric Goodill, goodill_eric@tandem.com, Tandem Computers, Cupertino, Calif.
Newsgroups: comp.sys.mac.programmer
From: sokoloff@athena.mit.edu (James T Sokoloff)
Subject: Re: that zooming rectangle
Organization: Massachusetts Institute of Technology
Date: Tue, 17 Nov 1992 01:33:34 GMT

In article <880840m.52.721868202@ace.acadiau.ca> 880840m@ace.acadiau.ca (MICHAEL ALEXANDER MCKAY) writes:
>
>What is the Toolbox routine that draws those zooming-at-ya rectangles that 
>you see when you launch an app from the Finder?

Well, not too surprising that it's FrameRect.  Basically, you can set the draw
mode to Xor and draw each rectangle twice.  (The first draws it and the second
erases it.)  This way you don't have to mess with saving anything.  Just make
sure you draw it exactly the same twice and it'll be gone...

--Jim Sokoloff