HDTenEightyP/NetNews huggingface dataset:
From: Brian L. Acton <acton@rpal.rockwell.com>
Newsgroups: comp.sys.mac.programmer
Subject: Building Nothing example in MacApp
Date: 3 Sep 1992 22:56:18 GMT
Organization: Rockwell International - Palo Alto Lab
Distribution: world
NNTP-Posting-Host: mac-207.rpal.rockwell.com
X-UserAgent: Nuntius v1.1

In an attempt to learn to use MacApp, I have begun reading the MacApp
tutorial.  However, I ran into a problem while trying the build the
Nothing program.

MABuild Nothing -autobuild
MABuildTool - v. 3.0.1 Release 6/10/92          Start: 3:36:40 PM 9/3/91

Copyright Apple Computer, Inc. 1986-1992
All Rights Reserved.

Target Folder: "Explorer:MacApp 3.0.1:Libraries:.NoDebug Files:"
Making:        MacApp.Lib.MAMake

### Explorer:MPW:Tools:Make - "Explorer:MPW:Scripts:CPlus" does not
exist; no rules to build it.
MAKE of MacApp.Lib failed: Tuesday, September 3, 1991 3:36:59 PM
### MPW Shell - Execution of MABuild terminated.


I understand that MacApp is looking for the file CPlus in the scripts
folder.  However, where is it?  I followed the installation instructions
from ETO #8 CD-ROM exactly and have installed MPW 3.2, MPW C++, and
MacApp 3.02 so I should have all the files on my hard drive.  Is there a
file (i.e. makefile) etc. I need to modify.  I know this question is
fairly basic but my knowledge of MacApp and MPW is very limited.  Thanks
for any help!

Brian

acton@rpal.rockwell.com
Newsgroups: comp.sys.mac.programmer
From: billj@b11.b11.ingr.com (Bill Jones)
Subject: Re: malloc in Think C
Organization: Intergraph Corp. Huntsville, AL
Distribution: na
Date: Tue, 1 Sep 1992 00:26:43 GMT

sichase@csa1.lbl.gov (SCOTT I CHASE) writes:

>char *array;
>array = malloc(10000*sizeof(char));

>My question is:  Do I have to worry about memory moving around?  Will
>array continue to point to the correct data regardless of what toolbox 
>routines I use which scramble memory?  Do I have to do this with a handle
>instead or does Think's implementation of malloc lock the memory for me? 

malloc makes a NewPtr() call, which gets you non-relocatable memory. It
don't move around.

Bill Jones
billj@beowulf.b11.ingr.com

Newsgroups: comp.sys.mac.programmer
From: bpb9204@tamsun.tamu.edu (Brent)
Subject: Re: GNU C++ for the Macintosh?
Organization: Texas A&M Univ., Inc.
Date: Wed, 2 Sep 1992 23:13:52 GMT

cshotton@oac.hsc.uth.tmc.edu (Chuck Shotton) writes:
|In article <pyknjaa.nagle@netcom.com>, nagle@netcom.com (John Nagle) wrote:
|> 
|>       GNU C++ is not available for the Macintosh for religious reasons.
|> Details in "gnu.misc.discuss".
|
|Bzzzt. Wrong. g++ is available for MPW and can be found on ftp.apple.com.

I wouldn't bzzzt John just yet.  Here's the scoop (as I understand it):

The GNU people who put g++ out support these
40+ machines/architectures/OSs.  They will not formally support the
Mac for, as John put it, their religious reasons.  In fact, they discourage
anybody to port their stuff to any of Apple's machines.

This doesn't mean you can't get stuff to run on macs; there isn't some
CrashIfMac() function hidden in there somewhere (although Stallman
might support this).  I tend to think, as others do, that the GNU's
boycott is in contrast to their main goal: to provide freely distributable
software.  

This has been debated before on gnu.misc.discuss.

-Brent
From: reid@sunpix.East.Sun.COM (Reid Judd - Sun NC Development Center)
Newsgroups: comp.sys.mac.programmer
Subject: Re: What is a sun raster file? can a pict file be converted?
Date: 25 Aug 1992 20:26:54 GMT
Organization: Sun Visualization Products
Distribution: world
Reply-To: reid@sunpix.East.Sun.COM
NNTP-Posting-Host: candy-apples.east.sun.com

In article <BtCx60.60o@gumby.ocs.com>, obi@gumby.ocs.com (Kuryan "Obi"
Thomas) wrote:
> 
> In article <mxmora-200892152011@css-mac2.sri.com>, mxmora@unix.sri.com
> (Matthew Xavier Mora) writes:
> 
> > Has anyone coverted a mac pict file to a sun raster file?
> 
> If you have Jeff Poskanzer's pbmplus package on the Sun, it'll convert
> from just about any picture format to just about any other (by going

  
  Another great public domain program you might get is the Utah
  Raster Toolkit which is available from Univ.of Utah and the 
  Univ of Mich.

  Look in the cnv/rlepict directory and get the binhex file: 
  RlePict.sit.hqx.  This program (includes Think_C source)
  can convert a PICT to UtahRLE which may then be converted to 
  Sun Raster or dozens of other image formats.


-- 
 
                                                    
          reid.judd@East.Sun.com             
                                                   
          Sun Microsystems
          Video Products Development Center          
          Research Triangle Park, NC 27709-3447           
	  (919) 460-8371
From: ebucmg@crusty.EBU.ericsson.se
Newsgroups: comp.sys.mac.programmer
Subject: Class in programming for the Mac
Keywords: course class programming
Date: 27 Aug 92 14:09:51 GMT
Reply-To: ebucmg@crusty.EBU.ericsson.se
Organization: Ericsson Business Communications



U.C.L.A. is giving an evening "extension class" in

		"Writing Software for the Macintosh Computer"

Finally (at least finally I found..) something hapening locally at a cost less than
Apple University's Kilo $$ prices.

The course (they say) will cover OOP techniques based on Think C Class Lib.

(by the way, I am new to this "news" business, and I hope I am posting this stuff at the
right place and the right way)

Regards


Cherif Gad
Anaheim, Ca.
Newsgroups: comp.sys.mac.programmer
From: sold@kit.uni-kl.de (Christoph Sold)
Subject: Re: associating a TDialogBehavior with a window in ViewEdit.
Organization: Universitaet Kaiserslautern
Date: Sat, 29 Aug 1992 16:14:01 GMT

In article <poon.714867450@roo> poon@parc.xerox.com (Alex Poon) writes:
>Subject: associating a TDialogBehavior with a window in ViewEdit.
>From: poon@parc.xerox.com (Alex Poon)
>Date: 26 Aug 92 22:17:30 GMT
>According to my MacApp 3.0 manual,
>
>"To make a dialog window modal, you need to associate a TDialogBehavior
>object with it, which you can do with ViewEdit."
>
>Does anybody know how to do this?
>
>Thanks,
> Alex Poon
This seems to be an error in either ViewEdit 3.0 or the manual, I stumbled 
over it, too. I worked anround it this way:

	fDialogView = newDialog->FindSubView('dlog');
	fDialogView->AddBehaviour(newDialogBehaviour);

which was created just before. You see, do it manually, and it works. Should 
be changed really soon, I think (either the manaual :-( or ViewEdit :-) ).

-Christoph

P.S: above code comes from my brain, since here at the U only DOS boxes are 
around me. Don't type it in literally, look up the methods using MacBrowse.

Christoph P. Sold                   CATS Software GmbH
                                    Mussbacher Landstr.2
sold@kit.uni-kl.de                  W-6730 Neustadt (Weinstrasse)
ger.xse0035@applelink.apple.com     Germany

"If an apple is fun, what the heck is an appletree?"
From: drc@claris.com (Dennis Cohen)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MPW tool to debinhex? destuffit?
Date: 26 Aug 92 15:09:48 GMT
Organization: Claris Corporation, Santa Clara CA

bowman@reed.edu (Eric Bowman (bobo)) writes:

>Anyone know of such beasts?  I would really like to have a tool which will
>debinhex a whole bunch of stuff "batch style", but I haven't heard of any
>such tool(s).

You can find xbin at sumex-aim (at least I did last year) -- this will take
care of the de-binhexing.  StuffIt Deluxe ships with Stuff and UnStuff tools
as part of the distribution.

-- 
Dennis Cohen
Claris Corp.
 ****************************************************
Disclaimer:  Any opinions expressed above are _MINE_!
Newsgroups: comp.sys.mac.programmer
From: Glen.Stewart@f175.n2240.z1.ieee.org (Glen Stewart)
Subject: RE: imbedding text formatting commands? suggestions needed
Organization: FidoNet node 1:2240/175 - The Associati, Grand Blanc MI
Date: Thu, 20 Aug 1992 15:52:11 GMT

I have some routines online that will convert HyperCard text styles to RTF and 
back.  Feel free to call.  You might also take a look at TEX 1.9, which has a
C program doing the conversion of RTF into text.  It strips all the
formatting, but I can provide the source code for you to work with if you
like.

The BBS number is 313-695-6744 HST or 695-6955 v.32bis


--  
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
 Glen Stewart - Internet: Glen.Stewart@f175.n2240.z1.ieee.org
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@byse.nada.kth.se (Jon W{tte)
Subject: Re: Beginner's question on StandardPutFile
Originator: d88-jwa@byse.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 1 Sep 1992 23:10:56 GMT

@husc8.harvard.edu (Elwin Wu) writes:

   I'm having trouble getting the volume reference number returned by the
   StandardPutFile routine.  I want to use SetVol and my code typically
   looks something like this (I'm using Think C 5.0):

	   StandardPutFile(prompt,defaultName,&theReply);
	   SetVol(theReply.sfFile.vRefNum);

   Should I use something other that SetVol???  Any help would be
   appreciated.  Thanks


Why on EARTH would you do this?

You're on System 7, since you use StandardPutFile, and there is
not a single thing under System 7 that requires a volume or wdRefNum.

Use the FSpCalls; they're there for you and the FSSpec returned
in theReply is all you need. (If you want to do a SetVol to open
a file using fopen:
1) Don't use fopen since it stinks on the mac... or
2) Do a HGetVol, HSetVol, fopen, and HSetVol back to what you
   got from HGetVol)

-- 
Jon W{tte, h+@nada.kth.se, Sweden, Phone +46-8-107069
White, Literate, Employed, Higher-Educated, Male, Straight and Not Poor.
I must be a bad guy.
From: haynes@mace.cc.purdue.edu (Carl W. Haynes III)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Popup menus (help!!)
Keywords: popup
Date: 1 Sep 92 03:04:59 GMT
Organization: Purdue University

In article <BtvFoB.L5J@news.cso.uiuc.edu> resnick@cogsci.uiuc.edu (Pete Resnick) writes:
>
>Suggestion 1: use the pop-up menu CDEF included with the System 6
>Communications Toolbox for pre-System 7 machines.
>

What's the licensing deal with this? Do we need to license the CDEF from
Apple if we use it in our programs for pre-system 7 work?
I ended up writing my own, but may be interested in using Apple's instead.

carl

--
Carl W. Haynes III  
Haynes Consulting Services        ||  CWH3@aol.com
PO Box 2715                       ||  haynes@mace.cc.purdue.edu
W. Lafayette, IN 47906            ||  hcs@applelink.apple.com
----------------------------------------------------------------------
       Macintosh Programming & Consulting - Yes, I'm available
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.hardware,alt.cd-rom
From: aep@world.std.com (Andrew E Page)
Subject: Ever use DAK CD-ROM from BSR?
Organization: The World Public Access UNIX, Brookline, MA
Date: Wed, 26 Aug 1992 20:52:35 GMT


    Has anyone ever used this CD-ROM with a macintosh?  They're extoling
its virtues for PCs.  Anyone have good experiences with it?  Bad?
Metsa Metsa?

DoD# 0581   1990 Suzuki VX800   MSF Intro Class Aug 1990
-- 
Andrew E. Page CTO(Warrior Poet)|   Decision and Effort The Archer and Arrow
DSP Ironworks                   |     The difference between what we are
Macintosh and DSP Technology    |           and what we want to be.
Newsgroups: comp.sys.mac.programmer
From: mspace@netcom.com (Brian Hall)
Subject: AEDisposeDesc
Date: Thu, 27 Aug 92 01:22:08 GMT
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 

Is it safe to call AEDisposeDesc on an AEDesc more than once?  I "<noticed
that after the call, the AEDesc passed in had a type of "typeNull" and
a datahandle of "NULL".  Does AEDisposeDesc know enough not to try and
dispose of a record like that?

On a related note, is it safe to call AEDisposeDesc when the AEDesc is
{0, NULL} (essentially 0,0)) instead of { typeNull, NULL}?  This, of course,
assumes that it is OK to call AEDisposeDesc on {typeNull, NULL} in
the first place.

If it is not OK, I think I will end up making a ForgetAEDesc along
the lines of TCLs ForgetHandle routine.

-- 

 \ | /   | Brian Hall                 mspace@netcom.com
 - : -   | Mark/Space Softworks       Applelink: markspace
  /|\    |                            America Online: MarkSpace
 |-+-|   |
/-\|/-\  | Stupidity is its own punishment.
From: root@lyra.scg.hac.com (Dave Fisher)
Newsgroups: comp.sys.mac.programmer
Subject: Is there an easy way to redraw a window for updates and activates?
Date: 1 Sep 92 02:11:20 GMT
Reply-To: fisher@lyra.hac.com (Dave Fisher)
Distribution: usa
Organization: Hughes Aircraft Co., Carlsbad, CA

Hi,
I have a little drawing application I'm writing.  It uses lots of 
quickdraw calls, doesn't know how to redraw the window in case another
window obscures the window, or it has been re-activated. (update and
activate events)  

So my question is, is there some simple way to redraw the window, or
must I somehow save the information about what has been drawn as I
go along?

This must relate to printing and saving, too, yes?

Thanks in advance,               Dave Fisher      fisher@lyra.hac.com
From: wombat@claris.com (Scott Lindsey)
Newsgroups: comp.sys.mac.programmer
Subject: Re: PICT file format
Date: 2 Sep 92 01:09:15 GMT
Organization: Claris Corporation, Vancouver WA
Wombat: yes
Number: 29602

In article <1992Aug31.232345.19391@hamblin.math.byu.edu>, slink@laforge.cs.byu.edu (Geoffrey Slinker) writes:
> 
> Where can the file format of a PICT file be found? Is it in Inside Mac?

Yes.

Oh, IM V-86.

--
Scott Lindsey <wombat@claris.com>
Newsgroups: comp.sys.mac.programmer
From: raffuj@aix.rpi.edu (Jose A. Raffucci)
Subject: How to save a PICT file?
Organization: Rensselaer Polytechnic Institute, Troy, NY
Distribution: usa
Date: Tue, 25 Aug 1992 20:40:56 GMT

How do you do it the RIGHT way?  is there a snippet of code out there
that someone can email me?  

I've gotten to the point where the file is created, and I have
a handle to a PICT, but I'm really not sure about the header, 
and just what parameters to use with FSWrite().

Any help would be appreciated!

-hOz

-- 
X/\/\/\/\/\/\/\/\__/\__/\/\/\/\/\/\__/\__/\/\/\/\/\/\/\--:OO  _________________|
  //  The Amigoids from hell,     raffuj@rpi.edu     Ren & Stimpy (SNICK) 
\X/   Renssepolyinstatechnitute                 New Episodes! Aug 15, 7:00 pm   
Oh my beloved Ice Cream Bar!  How I love to lick your creamy center!  ChowwmP!
From: damurphy@wc.novell.com (Duane A Murphy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to increase stack size ???
Date: 3 Sep 92 18:08:37 GMT
Organization: Novell, Inc. - Walnut Creek

In article <71922@apple.Apple.COM> grobbins@Apple.COM (Grobbins) writes:
>
>  // Increase the space allocated for the application stack
>  //
>  // Warning: SetApplLimit always sets the stack to at least as large as the 
>  //    default stack for the machine (8K on machines with original QuickDraw,  
>  //    24K on machines with Color QuickDraw) so the application partition 
>  //    must be large enough to accomodate an appropriate stack and heap
>
>  OSErr IncreaseApplicationStack(Size incrementSize)
>  {
>    OSErr retCode;
>  
>    // increase the stack size by lowering the heap limit
>    SetApplLimit((Ptr) ((unsigned long) GetApplLimit() - incrementSize));
>    retCode = MemError();
>    if (retCode == noErr) MaxApplZone();
>  
>    return retCode;
>  }
>
>Do heed the warning given in the comment.  All stack allocation beyond
>the default must be compensated for by increasing the partition size in
>the SIZE -1 resource.  
>

Be forwarned to test this on many machines (namely an SE or other 68000
based machine).  I believe I tried this; it may have even been one of 
my first attempts.  I think this works but is it what is desired?

This increases the stack size by an amount.  It does not _SET_ the stack
size.  I needed (as I believe the original author did) to set the 
stack size to a particular size.

...Duane
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: Adding Balloon help
Organization: Kalamazoo College
Date: Fri, 4 Sep 1992 16:21:13 GMT

ross@bnr.ca (Ross Brown) writes:
>rae@Alias.com (Reid Ellis) writes:
>>I've always wondered if you could use a 'moov' resource.  A little
>>animation would make 3D revolves etc. easier to understand, that's for
>>sure.
>
>Yes, someone(s) at the MacHack gathering this summer presented just such a
>hack.  Anyone with back issues of the TidBITS newsletter could find the
>reference for you.  I don't keep them.

TidBITS doesn't seem to have anything about QuickTime in balloons.
Leonard R.'s movie-for-a-finder-icon hack is mentioned (hey, Leonard,
want to upload that somewhere?) but that's it.

Maybe Wild Magic would let you substitute a movie for a PICT somehow?
(I'm not into QuickTime;  if this is a dumb idea, flame me in email.)

You couldn't use the interface anyway, without seriously distorting the
balloon help UI.  Would continuously-looping balloon movies really be
that informative?
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 The essence of OOP:  "After some hacking, I finally got the program to
 work, but I'm still not sure why." - David Marcovitz (marcovitz@uiuc.edu)
From: rickf@apple.com (Rick Fleischman)
Newsgroups: comp.sys.mac.programmer
Subject: IMPORTANT E.T.O. #8 NOTICE
Date: 20 Aug 92 17:01:29 GMT
Organization: Apple Computer, Inc.

TO ALL E.T.O. CUSTOMERS:
 
It has come to our attention that several problems exist with the Experimental
versions of Interfaces and Libraries, and in particular Interface.o, that were
included on E.T.O. #8 that shipped in early August, 1992.  These can be found
in the following E.T.O. directories: "E.T.O.:Tools - Objects:MPW:Experimental
MPW:MPW:Interfaces" and "E.T.O.:Tools - Objects:MPW:Experimental
MPW:MPW:Libraries".
 
We would recommend that you use the Interfaces and Libraries in the "Prerelease
MPW" or "Latest MPW" folders to eliminate any potential problems.
 
We apologize for any inconvenience this has caused.
 
Rick Fleischman
MPW Product Manager
Apple Computer, Inc.
e-mail: rickf@apple.com
AppleLink: FLEISCHMAN@applelink.apple.com
From: sbill@informix.com (Bill Stackhouse)
Newsgroups: comp.sys.mac.programmer
Subject: Set/Get Cursor
Date: 1 Sep 92 20:21:06 GMT
Organization: Informix Software, Inc.


Why does the following cause EvenBetterBusError detect a NIL pointer
problem?

   SetCursor(*GetCursor(iBeamCursor));

Thanks
sbill@informix.com
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Shareware legality question
Date: 1 Sep 92 01:01:16 GMT
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Distribution: comp.sys.mac.programmer
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.5v4


In article <MHALL.92Aug31154347@occs.cs.oberlin.edu> (comp.sys.mac.programmer), mhall@occs.cs.oberlin.edu (Matthew Hall) writes:
> 
> Hello-
> 
> I submitted a shareware copyrighted program to sumex-aim.  In the
> README file I included a line that read <Public domain houses, such as
> Educorp, must contact me before distributing this program>.  I guess I
> aint no legal wizard, and I should have worded that more carefully.
> 
> A few months later, I recieved a letter and a complimentary CD-ROM
> from NAUTILUS saying that they had published my program on the disc.
> Now there are several reasons I would like to have been asked
> beforehand.
> First, the program is going commercial, and I would like to have put a
> demo version of the new program on instead.
> Second, I would like to have made the shareware fee plea a little
> stronger, since people who buy disks from these places think that they
> do not need to pay my fee.
> Third, I feel I have the right to ask for a fee from them.  A CD-ROM
> is actually pretty hefty, but since I do not have a drive, To me, its
> utterly useless.
> And last, I just plain asked to know beforehand, and they should have
> asked.
> 
> Do I have any rights here, or did I goof with my language.  Or should
> I just write a kind/nasty letter explaining to them how I feel.  It
> disturbs me a little that these people are using my program to make a
> profit (not, of course, that people are buying the NAUTILUS CD in
> droves because of it, but still) Does anybody have a similar
> experience?

I don't really understand this reasoning.  I love it when these places
put my shareware on their disks.  Their customers *do* pay for shareware
- though at about the same rate as people who get it off the online
services or BBSes (single digit percentage if that).

How is Nautilus any different than America Online or Compuserve?
They each make money from their subscribers and they each make shareware
available.

As to your question, is it really worth money to you to try to bring
legal action against them.  I imagine this would burn up any profits
you have made from your shareware very quickly!

If you really feel bad, write them that nasty letter and get it off
your chest.

P.S.  AppSizer was just on the Nautilus CD last month - and I'm happy
about it.

--  Michael Peirce      --   peirce@outpost.SF-Bay.org
--  Peirce Software     --   Suite 301, 719 Hibiscus Place
--                      --   San Jose, California USA 95117
--  Makers of...        --   voice: (408) 244-6554 fax: (408) 244-6882
--            SMOOTHIE  --   AppleLink: peirce & America Online: AFC Peirce
From: mkelly@sisters.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Can TCL project size be reduced using precompiled headers?
Date: 3 Sep 92 00:40:12 GMT
Article-I.D.: cs.1992Sep3.004012.27044
Organization: University of Oregon Computer and Information Sciences Dept.

In article <de19-020992173616@zben-mac-ii.umd.edu> de19@umail.umd.edu (Dan Emery) writes:
>Is it possible to reduce the size of a TCP project file by using
>the "precompiled header" feature?  If so, could some kind soul
>email or post a description of the strategy one would use.
>

I'll add this to the next version of the FAQ.

The answer is yes.  You just add your TCL headers to Mac #includes.c and
Precompile.  Presumeably you would want to make a separate file, called
something like "Traps+TCL Headers".

Mike.
-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________