HDTenEightyP/NetNews huggingface dataset:
From: matsb@tdb.uu.se (Mats Bredell)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc
Subject: Re: Opinions on THINK Reference?
Date: 8 Sep 92 07:31:42 GMT
Reply-To: Mats.Bredell@udac.uu.se
Organization: Uppsala University Computing Center (UDAC)

psweeney@miavx1.acs.muohio.edu writes:
:
: Is Symantec's THINK Reference worth it?  It doesn't support
: IM VI, and I have heard of no upgrades.  However, I have
: seen a friend's copy, and it looks pretty useful.

I'm using THINK Reference and I think it's very good. But there are some
things that keep annoying me.

* Sometimes the links (when you click on a highlighted word to get more info)
  doesn't work. It takes you somewhere completely different. The same thing
  happens when you click on a link to see what it's about, and then want to
  go back. The back links also fail quite often.

* Some of the info in THINK Reference is wrong. There are bugs in the docs,
  and this can keep you searching for programming bugs for weeks! You still
  need the full IM manuals.

* The THINK Reference usually uses a lot of bad programming techinques in
  the docs and programming examples. They use a lot of constant values
  instead of symbolic names, they access low memory globals, and in some
  places even encourages the programmer to access low memory globals 
  instead of using supported toolbox calls.

* It's not complete. Some managers are missing.

Apart from these drawbacks, the program is great! If you are careful about
the bugs in the docs, the package is really helpful. I keep it loaded on my
Mac all the time during programming. But I'm waiting for an upgrade ...

/Mats
-- 
Mats Bredell                                   Mats.Bredell@udac.uu.se
Uppsala University Computing Center (UDAC)     Ph:  +46 18 187817
Department of medical systems                  Fax: +46 18 187825
Sweden                                         Think straight - be gay!
Newsgroups: comp.sys.mac.programmer
From: siegel@world.std.com (Rich Siegel)
Subject: Re: I need sample code for Lightspeed PASCAL
Organization: GCC Technologies
Date: Mon, 7 Sep 1992 22:52:18 GMT

In article <7SEP199212280598@rigel.tamu.edu> emk9267@rigel.tamu.edu (KLINE, ERIC MICHAEL) writes:
>Hi!  I'm trying to learn how to write an application that sends graphics
>to the printer.  I've learned how to defined a picture using Quickdraw
>commands and how to save those commands in a PICT format.  I would greatly
>appreciate it if somebody could send some code that demonstrates how to
>send graphics to the printer (I have an Imagewriter II).

The ObjectDraw sample program supplied with THINK Pascal version 2.0 and
later can print its graphics. If you have a legitimately obtained copy
of THINK Pascal, this example is part of the distribution set.

R.

-- 
-----------------------------------------------------------------------
Rich Siegel                              Internet: siegel@world.std.com
Software Engineer & Toolsmith
GCC Technologies
From: hpoppe@ncar.ucar.edu (Herb Poppe)
Newsgroups: comp.sys.mac.programmer
Subject: Re: CD rom version of new IM (where? how much?)
Date: 11 Sep 92 17:23:53 GMT
Organization: Scientific Computing Division/NCAR Boulder, CO

In article <lasl4gINNg86@pollux.usc.edu>, mharm@pollux.usc.edu (Michael
Harm) wrote:
> 
> Hi. A while ago there was a brief mention on this list
> of the new IM series, and a CD rom version thereof. 
> Can anyone tell me where such an animal is available,
> and how much it will cost?  Is it available through APDA?
> Mail order?  When will the whole lot of it be available?

The following quote is by Caroline Rose, Editor of d e v e l o p magazine, 
and appears in the latest issue (#11, Aug. '92).

     "The first New Inside Macintosh books are due to appear in bookstores 
in September, and the last books in the series should be available by May 
1993. The electronic versions of these books will show up on the Developer 
CD Series disc as soon as they are ready."





Herb Poppe                 National Center for Atmospheric Research (NCAR)
hpoppe@ncar.ucar.edu       1850 Table Mesa Dr.
(303) 497-1296             Boulder, CO  80303
Newsgroups: comp.sys.mac.programmer
From: umdenbo0@ccu.umanitoba.ca (David A. Denboer)
Subject: Newton Developing
Organization: University of Manitoba, Winnipeg, Canada
Date: Tue, 8 Sep 1992 15:51:17 GMT

Could someone please mail me the address for the Newton Developer information.
It was posted here a while back, but I cant remember it.

Thanks,
-- 
David A. denBoer
Musi Computer Products
umdenbo0@ccu.umanitoba.ca
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.system
From: d88-jwa@black.nada.kth.se (Jon W{tte)
Subject: Re: Does anyone recognize _Jackson?
Originator: d88-jwa@black.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
	<lbaaheINNmja@coltexo.cs.utexas.edu>
Date: Tue, 15 Sep 1992 11:46:39 GMT

> stevem@cs.utexas.edu (Steve Anthony Mariotti) writes:

   Does anyone know what _Bass is?  Can I expect to find _Trout, _Snapper, 
   _Haddock, _Cod, and more?

Or maybe _Drums, _Guitar and _Cutup too ? :-)

-- 
Jon W{tte, h+@nada.kth.se, Sweden, Phone +46-8-107069

Help eradicate FIDO-Net <-> Usenet gateways in our time!
From: e-sink@uiuc.edu (Eric W. Sink)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Harvest C and loss of System FIle
Date: 15 Sep 92 14:37:41 GMT
Reply-To: e-sink@uiuc.edu
Organization: University of Illinois at Urbana
Originator: sink@ux2.cso.uiuc.edu

davecole@cie.uoregon.edu.uoregon.edu (Dave Cole) writes:

>  Has anyone else had the SYSTEM file chewed up, spit out, and just generally
>trashed by Harvest C 1.2, under System 7, or is it just me?

Well...

I imagine if this were a frequent event, I would have at least one
irate email message in my box.  I don't, so I'll respectfully
suggest that it's "just you". :-(

Not to place the blame on you of course.  I know that Harvest C has
problems.  I'm certainly not aware of anything of this nature,
but I've learned over the years to make very conservative assumptions.

In any case, my apologies for your bad experience.  I'm not currently
working on Harvest C due to lack of time, but if it can be demonstrated
that the program has a consisently reproduceable problem of this
kind, I would probably take the time to fix it.

-- 
Eric W. Sink, Spyglass        | "Kill 'im.  Kill 'em all." - Cpt. James Hook
1800 Woodfield Drive          |
Savoy, IL  61826              |
---- e-sink@uiuc.edu ---------|---------- 217-355-6000 -----------------------
From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Is a resource fork already open?
Date: 9 Sep 92 15:41:51 +1200
Organization: University of Waikato, Hamilton, New Zealand

In article <1992Sep8.153520.10687@waikato.ac.nz>, I posted some code
showing you how to open a resource file and detect if it was already open.

That code can actually be simplified a little. Recall that TopMapHndl only
changes if you open a resource file that wasn't already open. So the
ReallyOpened condition can be shortened to just "GetTopMap() <> PreviousTop".

And while we're at it, we don't really need the GetTopMap routine at all.
Just check the value of TopMapHndl itself. And in Modula-2, you can access
low-memory globals as based variables.

Putting this altogether (and noting that PreviousTop is now a Handle, not
an IORefNum), the new code is:

    TYPE
	IORefNum = INTEGER;

    VAR
	TopMapHndl [00A50H] : Handle;

Code to open the file:

      (* get information about current state of resource chain *)
	PreviousResFile := CurResFile();
	PreviousTop := TopMapHndl;
      (* open resource file with OpenResFile, OpenRFPerm or whatever, e g *)
	TheResFile := OpenRFPerm(FileName, VRefNum, Permission);
	ReallyOpened := TopMapHndl <> PreviousTop

Code to restore things as they were:

	IF ReallyOpened THEN
	    CloseResFile(TheResFile)
	END (*IF*);
	UseResFile(PreviousResFile)

Sometimes it takes the glare of publicity to get you to think out the *proper*
way to do something you might have been doing for years...

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+12:00
Newsgroups: comp.sys.mac.programmer
From: tree@kira.uvm.edu (Tom Emerson)
Subject: THINK C 5.0.3/TCL 1.1.2 Updates
Organization: University of Vermont, EMBA Computer Facility
Date: Fri, 11 Sep 1992 16:16:22 GMT

An new update for THINK C, 5.0.3, has been released. This update corrects
problems with the Quadra and other problems present in earlier versions of the
compiler. Also available is TCL 1.1.2 (the same as that released in 5.0.2).

The patch is available on AOL, CompuServe, and AppleLink, and will be
available on sumex-aim.stanford.edu in the very near future.

Tom
--
   Tom Emerson                                    Technical Support
   Language Products Group                     Symantec Corporation
			Internet: tree@uvm.edu
From: cinquin@imag.fr ( Philippe Cinquin)
Newsgroups: comp.sys.mac.programmer
Subject: Problems with CompileIt!
Date: 8 Sep 92 11:52:26 GMT
Organization: IMAG Institute, University of Grenoble, France

've just purchased CompileIt!. This is a GREAT product. However, it worked
fine for some hours only. Then, when I wanted to compile, it started telling
me that there wasn't enough memory to use the variable watcher or the message
watcher, which weren't even showing, even though I had 4 Megs allocated to
HyperCard. The second card was telling that there was enough memory to use
the fast mode...
 
 Can anyone help me?
 Thanks in advance. If you email please do so at "ocinquin@timb.imag.fr".
Newsgroups: comp.sys.mac.programmer
From: e-sink@uiuc.edu (Eric W. Sink)
Subject: Re: HarvestC on mac.archive.umich.edu Re: Shareware compilers
Originator: sink@ux2.cso.uiuc.edu
Reply-To: e-sink@uiuc.edu
Organization: University of Illinois at Urbana
Distribution: na
Date: Wed, 9 Sep 1992 18:20:12 GMT
Keywords: harvestc, mac, archive, compiler, pd, shareware

dauter@terminator.cc.umich.edu (Michael Dautermann) writes:

> LA/HARVESTC   1,524    6/27/92     BinHex4.0,Compact1.33
> /mac/development/languages/harvestc1.2.cpt.hqx

>    Freely-distributable C compiler and editor.  It's  standalone, but
>    it's also compatible with MPW-C.  You can create projects,
>    compile, build/link.  Even  supports a couple of Pragmas.  Minimal
>    editor does the job. 

Just to clarify - Harvest C 1.2 no longer has any editor at all.  Use
Alpha 5.05.

-- 
Eric W. Sink, Spyglass        | "Kill 'im.  Kill 'em all." - Cpt. James Hook
1800 Woodfield Drive          |
Savoy, IL  61826              |
---- e-sink@uiuc.edu ---------|---------- 217-355-6000 -----------------------
Newsgroups: comp.sys.mac.programmer
From: bell@teal.csn.org (Bell Scott)
Subject: How many colours have YOU got?
Organization: Colorado SuperNet, Inc.
Date: Tue, 8 Sep 1992 08:49:04 GMT

	Question:  In CycleSpy(tm), I have the Help and About windows set to
look at 'thePort' to determine the current colour depth.  However, occasionally
this will cause a crash because for some weird reason the PixMap field becomes
an invalid address.  The question is: How can I reliably tell what the current
colour depth is?  ie: The user can change it via the 'Monitors' CDEV without
my specific knowledge.  Before I refresh in response to an update event how do
I know what the depth is so I can display a legible window?

Scott R. Bell
PS:  Also, I am Colorado SuperNet using 'rn' under SunOS; how do I simply 'post'
a message?  Right now all I can do is press 'f' and delete the References....
SRB
From: haynes@mace.cc.purdue.edu (Carl W. Haynes III)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Adding menus to existing applications (a la Thunder)
Date: 12 Sep 92 17:58:22 GMT
Organization: Purdue University

In article <1992Sep12.154540.15753@prism.poly.edu> korfhage@weston.poly.edu writes:
>  [ asks how to add menus to existing applications ]
>

I wrote an INIT awhile ago which added a menu to SimAnt (SimAnt Cheater)

What I ended up doing was tail-patching _SetMenuBar and _MenuSelect.

On SetMenuBar, I would check to see if I was dealing with SimAnt and then
Create a new menu and insert it. The patch for _MenuSelect would simply
check to see if my menu was selected and respond accordingly.
I was only worried about making it work with this one application, I don't
know how generalizable this would be to others.

If you're only dealing with system 7, I'd suggest looking into how to
add icon menus, like the help and application menu, to all applications.
(I think they call them Finder Menus). I believe that this years
MacHack disk has a couple examples of how to do this. In fact I
believe Dylan Talk (available at the usual archives and the MacHack disk) 
does this also and has source code.

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
From: thomask@lobo.rmhs.colorado.edu (Thomas C Kerrigan)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Problem in C, please help!
Date: 11 Sep 92 23:55:23 GMT
Organization: Rocky Mountain High School

Well, I looked your code over and I think I see some problems. First off, I am 
very suprised it compiled, because I have never heard of a WNE filter (I 
assume it is Wait Next Event). Second, it seems that when you are in your 
trap, you call Wait Next Event. What happens is this: MS Word will call WNE 
and when it gets an event, your filter is run which calls WNE again, so you 
have to type the same character twice if you want your program run. Third, I 
am not sure that changing a pointer to the event message will actually change 
the message in other programs.

The solution to all this is easy: download Alex Chaffe's Shift-O-Matic source 
code. Since it comes with little or no documentation, I will run you through 
it here. The actual init puts up an icon and sets one of the functions as a 
jGNE filter. When the filter function is called (filteromatic) it restores 
your global variables in A4, and gets the event message via a jGNE variable. 
If there is an event, the shiftomatic function is called, which just 
de-capitalizes the letter entered if both caps-lock and shift are being held 
down. You will want to try this code, but replace the shiftomatic function 
with one of your own.

Shift-O-Matic does not compile under THINK C 5. To fix this, just put voids in 
all the functions and prototypes when you see something like function_name();

I will mail you the stuff if you can't find it yourself.

Live long and prosper,
thomask@lobo.rmhs.colorado.edu
From: jjwright@remus.rutgers.edu (   Jay)
Newsgroups: comp.sys.mac.programmer
Subject: HELP: THINK C: linked list
Date: 15 Sep 92 14:45:41 GMT
Organization: Rutgers Univ., New Brunswick, N.J.


i am using think c 5.0 and have a slight problem.  I get a crash when
i call a certain subroutine.  Even when i run the debugger i simply
get a crash, a system freeze, no dialog box, no bomb.  every once in a
while i get a "stack collision with heap" dialog box.  im looking for
possible reasons for this.

i know this is very vague, but is this most likely a problem with what
i am passing in, with the size of the variables (which arent many,
mostly just structs and pointers to structs), with my #include
statement which is a header file with eight #define's and several
structs?  could it be a macintosh memory problem?  

it does seem to crash just when it is called, so i suspect it has
something to do with either the immediate declarations in the
subroutine, or its a memory problem with the main routine??  i am
completely at a loss now.

i welcome ANY comments, no matter how irrelevant you may think they
are.  or if you think you want more information about it, feel free to
ask :)  i dont mind.  AND I THINK IM LOSING MY MIND THIS TIME.

jay

jjwright@remus.rutgers.edu
From: sorchard@crowded-house.den.mmc.com (Steve Orchard)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Launching from a document file
Date: 14 Sep 92 14:15:11 GMT
Distribution: usa
Organization: Martin Marietta

In article <47491@shamash.cdc.com>, paul@svl.cdc.com (Paul Kohlmiller) writes:
> 
> I am successfully launching applications via LaunchApplication.
> The problem what I would really like to do is launch from a
> document not from the application file itself. I want to be able
> to do the equivalent of double-clicking a MSWord document and have it
> come up with that document open. I think I need something like
> LaunchApplicationwithOpenFile but I don't see this in IM Processes or
> IM Files (on CD). Getting the application name from the document file
> is probably not too hard but how do I get it to launch the app and open
> the file, too?
> thnx

You must set the Finder Information first and then launch the Application.
Below is the code I use to do this for system 6.  For system 7 and beyond
use AppleEvents.  Check out the code snippet on ftp.apple.com.


typedef struct
{
	int			message;	/* Open = 0, Print = 1 */
	int			count;		/* Number of docs selected. */
	AppFile		findinfo;	/* AppFile structure */
} **FindrInfo;

void setfinder(thepath,num)
Str255	thepath;
int		num;
{	
	OSErr				err;
	FindrInfo			finderstuff;
	FInfo				finfo;
	int					i,strsize;
	AppFile				*temp;
		
	err = GetFInfo(thepath,0,&finfo);
	HUnlock(AppParmHandle);
	if(num==1)
		SetHandleSize(AppParmHandle,(Size)(sizeof(AppFile)+4));
	else
		SetHandleSize(AppParmHandle,(Size)(sizeof(AppFile))+(Size)(sizeof(AppParmHandle)));
	MoveHHi(AppParmHandle);
	HLock(AppParmHandle);
	finderstuff = (FindrInfo)AppParmHandle;
	(**finderstuff).message=0;
	(**finderstuff).count=num;
	temp = &(**finderstuff).findinfo;
	for(i=1;i!=num;i++)
	{
		strsize = *temp->fName + 9;
		if((strsize % 2) != 0) strsize=strsize+1;
		temp=(Ptr)temp + strsize;
	}
	temp->fType=finfo.fdType;
	temp->vRefNum=finfo.fdFldr;
	strcpy(temp->fName,thepath);
}

Good Luck
Steve Orchard
From: kw27+@andrew.cmu.edu (Kevin R. Walker)
Newsgroups: comp.sys.mac.programmer
Subject: More sound questions.
Date: 7 Sep 92 04:58:26 GMT
Organization: Freshman, MCS general, Carnegie Mellon, Pittsburgh, PA

OK - I want to synchronize a playing sound, with a video process that
analyzes the sound.  Does this make sense:
    figure the khz rate the sound is playing at.
    install a task (what kind??) to go off every-so-often
    calculate distance into the sample data by the time passed, based on
the rate and do what I want with the data at that place - that SHOULD
correspond with what's being played by the sound manager at that time.

    What I'm thinking is, if it's 22khz, then in 1/2 second, I would be
approx. 11 Kbytes into the sample.

Please give me any comments... I'll post any significant info.

Thanks...
Kip


----------
Kip Walker

kw27+@andrew.cmu.edu
kwalker+@cmu.edu
Newsgroups: comp.sys.mac.programmer
From: davecole@cie.uoregon.edu.uoregon.edu (Dave Cole)
Subject: Wanted: FTP Site for Pascal?
Organization: University of Oregon Network Services
X-Newsreader: Tin 1.1 PL5
Date: Thu, 10 Sep 92 14:32:42 GMT

Hi,
  Is there a site that has GNU Pascal for FTP anywhere here.  Failing that
can someone recomend a good FTP'able Pascal?


--
Name:     David C. Cole
E-MAIL:   Internet: davecole@uoregon.cie.edu
          GEnie:    ASTRONOMY

==Astrophotography Forever==
From: dopp@csa.bu.edu (Christopher Dopp)
Newsgroups: comp.sys.mac.programmer
Subject: inits that add their own menus to the menubar
Date: 11 Sep 92 04:42:52 GMT
Distribution: comp.sys.mac.programmer
Organization: Boston University


Hi,

 Does anybody have c or pascal source for an extension that adds its
own menu to the menubar? I'm also interested in an example of how to
create a menu with a sicn as its title. 

I am writing my first system extension and would love any source or
suggestions you could give. 

Please respond by email to- dopp@cs.bu.edu

Thanks a lot.

Chris Dopp
--
-------------------------------------------------------------------------------
Chris Dopp                        "There's nothing wrong with me. Maybe there's
Boston University                  something wrong with the universe."
From: Tommy.Brown@f204.n2603.z1.ieee.org (Tommy Brown)
Newsgroups: comp.sys.mac.programmer
Subject: Apple Event driven psychosis
Date: 2 Sep 92 00:04:03 GMT
Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY

Have you tried using the LaunchApplication trap to open the needed

application, and then sending the app an odoc event yourself? This is kosher

according to Inside Mac and would probably be easier. I'm not sure that the

Finder's 'open selection' event would be appropriate, unless you made sure

that the current selection in the Finder was the file that you wanted. If you
do not know what application the document belongs to, you'd have to use the

Desktop manager. I know the above method works, as I've helped someone write
a
 program which uses this method. You would use LaunchApplication, which
returns
 a Process Serial Number. Save the process serial number and convert
it into an
 address desc record with the AppleEvent Manager, and then send an
odoc event
 to that application. 

--  
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
 Tommy Brown - Internet: Tommy.Brown@f204.n2603.z1.ieee.org
Newsgroups: comp.sys.mac.programmer
From: piovanel@ghost.dsi.unimi.it (marco piovanelli)
Subject: HIG on ShowClipboard
Organization: Computer Science Dep. - Milan University
Date: Tue, 8 Sep 1992 12:24:15 GMT
Summary: How should the standard ShowClipboard command in the Edit menu behave?


Which of the following three behaviors of the "Show Clipboard" command
in the Edit menu is the recommended one, according to the latest
Human Interface Guidelines?

1. "Show Clipboard" toggles with "Hide Clipboard" when the Clipboard
   window is VISIBLE (although not necessarily frontmost), as
   old MacWrite does and the original IM1 seems to imply.

2. "Show Clipboard" toggles with "Hide Clipboard" when the Clipboard
   is the active (i.e., frontmost) window.

3. "Show Clipboard" always remains as it is, and never toggles with
   "Hide Clipboard", as Finder 7.0 does.

Personally I find the 3rd solution is the best, but that seemingly 
contradicts the Interface Guidelines chapter in IM1.
I'd like to hear your opinions.
PLEASE REPLY BY E-MAIL, I'll summarize if anyone requests so.
From: urlichs@smurf.sub.org (Matthias Urlichs)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to tell if replacing w/ SFPutFile?  aaaarg!
Date: 10 Sep 1992 15:25:56 +0200
Organization: University of Karlsruhe, FRG
NNTP-Posting-Host: 127.0.0.1

In comp.sys.mac.programmer, article <87333@netnews.upenn.edu>,
  peter@sysnext.library.upenn.edu (Peter C. Gorman) writes:
> 
> It's very nice that SFPutFile asks users if they want to replace an  
> existing file, but how is my program to know if they've said 'yes'?  
> StandardPutFile, of course, sets sfReplacing, but what do you do for Sys  
> 6.x??  I've been searching New IM: Files and SpInside Mac to no avail.
> 
Just try to PBHCreate the new file. If that returns dupFNErr, PBHDelete it
and try again.

-- 
Absent: Exposed to the attacks of friends and acquaintances; defamed;
slandered.
-- 
Matthias Urlichs  --  urlichs@smurf.sub.org -- urlichs@smurf.ira.uka.de   /(o\
Humboldtstrasse 7 -- 7500 Karlsruhe 1 -- Germany  --  +49-721-9612521     \o)/
Newsgroups: comp.sys.mac.programmer