HDTenEightyP/NetNews huggingface dataset:
From: 9999cs02@uhdvx3.dt.uh.edu (Tina Marie!)
Newsgroups: comp.sys.mac.programmer
Subject: Help Me! Please!! (Apple Events/Pub and Sub)
Date: 24 Dec 1992 14:23 CDT
Organization: University of Houston-Downtown
Distribution: world
NNTP-Posting-Host: uhdvx3.dt.uh.edu
X-Lunar-Date: 6 days, 1 hour, 44 minutes since the last quarter of the moon
News-Software: VAX/VMS VNEWS 1.41A   


	I am beating my head against my monitor.  I have an application, 
and I just finished adding edition manager support (BTW - great job, Apple,
it was not nearly as hard as i thought it would be).  It all works great,
except for one or two little bugs.  One of them is a -600 returned
when I do a "Go To publisher" from the Finder.  It refuses to lauch my
application.  If the application is already running, it opens the correct
file, scrolls to the publisher, but won't bring my app forward.  If the
application has not been run since I restarted, everything works fine.
But any other time, I get the -600.  

	Sending an AppleLink to DTS didn't help much...they told me to
check that i was closing the edition files (I am), and that the -600 means
that the Finder thinks my app is running, but it's not.

	We are trying to ship an upgrade at MacWorld, and NOBODY seems to
have a better answer for us.  All the usual things are okay...the creater
type on the edition matches my app, the size flags are right, etc.  
I'm sure I am just missing something.  

	Thanks in advance for any help....If you need more details, mail
me at 9999cs02@dt3.dt.uh.edu


	Thanks!

Tina Femea
programmer, Kaetron software
Newsgroups: comp.sys.mac.programmer
From: cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole)
Subject: Getting a resource map in the right heap
Summary: Question: how to get a resource map to hang around
Organization: University of Illinois at Urbana
Date: Sun, 3 Jan 1993 20:08:07 GMT
Keywords: resources trap patch arcana


I'm writing my first serious INIT that involves a couple trap patches and a 
serious quantity of code, and amidst all this I really need to use a resource 
file. I've figured out how to find the file after boot time, but I can't seem 
to open it and maintain access to the resources. The cause from what I can see
is that even with all my patches and INIT code in the system heap, when I open
a resource file its map goes into the application heap zone where it is both 
subject to context switching and to trashing when the current app dies. As a 
result, my only solution right now is to expect every time I try accessing the
file that it might have been made inaccessible and reopening it (as opposed to
closing it myself and making it subject to some silly user who decides to trash
or move it) This also may have pitfalls, as the file is not always closed when
it is inaccessible (i.e. I still have a valid fcb and refnum) and i am not 
thrilled with the idea of getting a seperate resource map and refnum for each 
open app. 

What is the way out of this? As far as i am concerned, the most elegant one is 
to make the resource map load into the system heap. That's where all the 
resources are flagged to go. That's where all my code is. That's a heap that 
never collapses. Unfortunately, I cannot find anything written clearly enough 
for a fool like me to recognize as the way to get this to happen.   The various
chapters on the resource manager never talk about where the map goes, and in 
fact mislead one as to just how the resource mnager handles multiple open 
files. (There are actually TWO linked lists of maps maintained)  Can anyone 
advise on this?


Bill Stewart-Cole
Newsgroups: comp.sys.mac.programmer
From: positron@engin.umich.edu (Jonathan Scott Haas)
Subject: Two more questions from a newbie
Date: Sun, 27 Dec 92 16:02:18 EST
Organization: University of Michigan Engineering, Ann Arbor

First, forgive me if this is a silly question, but what is MPW?
What's it used for, and why would I want to use it? My school
has a site license for it, so I can get ahold of it... should I?

Secondly, I've been playing around with Think C, and one thing
I noticed is that several functions mentioned in Inside Mac seem
to have different names under Think C. I'd rather write code the
way Inside Mac says to, so I've created a file called thinkc.h
that currently contains:

     #define AppendResMenu AddResMenu
     #define GetMenuHandle GetMHandle
     #define GetMenuItemText GetItem

...and so on. My question is: why? Why doesn't Think C use the
"standard" names for these functions?

-- 
__/\__  Jonathan S. Haas         | Jake liked his women the way he liked
\    /  University of Michigan   | his kiwi fruit: sweet yet tart, firm-
/_  _\  positron@engin.umich.edu | fleshed yet yielding to the touch, and
  \/                             | covered with short brown fuzzy hair.
From: jmunkki@vipunen.hut.fi (Juri Munkki)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Curves in QuickDraw GX
Date: 1 Jan 93 18:34:51 GMT
Reply-To: jmunkki@vipunen.hut.fi (Juri Munkki)
Organization: Helsinki University of Technology

In article <1i1urmINNt8g@mirror.digex.com> sunilg@access.digex.com (Sunil Gupta) writes:
>werner@dewey.soe.berkeley.edu (John Werner) writes:
>: Also, hand-coding something in assembler for a RISC chip is MUCH
>: harder than on a traditional processor.  There's a smaller instruction
>: set, more registers, and you have to worry about pipelining.  A good
>: optimizing compiler can usually do a better job than most humans can
>: do (at least in a reasonable amount of time).
>
>Your comment is true for RISC processors, but the complaint was being
>made about the CISC implementation. My small (4 person) programming shop
>maintains our code for a number of platforms. For CISC implementations
>we usually tune critical sections in assembly and usually let the
>compiler worry about that for RISC implementations. If we can do that,
>I'm sure that a megabucks company can spare a few programmers for a
>project that would greatly enhance their products.

I agree totally. In addition for QD GX, they used fixed point math. No
current languages have built-in support for fixed point math, so a high
level implementation will not benefit fully from the integer speed of
fixed point.

Floating point is more suitable for high level languages and is probably
just as fast as fixed point on the PowerPC architecture.

Then again, floating point would have been a very bad idea on the 68K
machines.

It seems to me that the best solution would have been to write two versions:
first a floating point/high level language implementation to debug the
algorithms and then a fixed point/assembly language implementation to
make it run ok on the current Macs.

-- 
  Juri Munkki					       Windsurf: fast sailing
 jmunkki@hut.fi					      Macintosh: fast software
Newsgroups: comp.sys.mac.programmer
From: tbl@rock.concert.net (Ted B Lowery -- Personal Account)
Subject: Quick TCL Question
Organization: CONCERT-CONNECT
Date: Tue, 22 Dec 1992 01:59:46 GMT

Hi all,

A quick question about the Think C Class Libraries.  When my program starts,
it is automatically sent a Open AppleEvent, which opens a blank document.  I
do not want a blank document automatically opened, so I want to stop this
default action.  But I cannot seem to find out how to do this without changing
the core classes.  How should I go about doing this?

Thanks in advance...

-Ted
tbl@rock.concert.net

Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: what is the best C compiler
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Tue, 22 Dec 1992 21:04:58 GMT

In article <bauer-221292105134@134.60.68.23>, bauer@informatik.uni-ulm.de
(Christian Bauer) wrote:
> 
> GNU C compiler for MPW version1.37 has the fastest and tightest code I have
> seen.

As always when benchmarking, it really depends on the source code you feed
it. I once compiled the same source with THINK C, MPW C, and GNU C. The
results were that THINK C was about 10% better than MPW C, and MPW C was
about 10% better than GNU C. THINK won out because it used 2 byte ints. GNU
C lost a lot of ground because it was unable to convert normal branches
into short branches when appropriate. I wrote a little post processor for
the assembly produced by GNU C to convert them into short branches. Only
then did GNU C's object size come in line with THINK C.

GNU C also loses it when dealing with Points. It tries to be smart by
realizing that a Point can fit into a 32-bit register. However, it trips
over itself in doing so, and generates some really ugly code for masking
out the upper and lower parts of the register when mucking with a single
coordinate at a time.

Otherwise, GNU C's code generation is top notch. But THINK C's code is just
as good, THINK C is miles faster, the environment is really nice, and THINK
C supports the latest MPW headers.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
From: dws@menlo.cadre.com (David W. Smith)
Newsgroups: comp.sys.mac.programmer
Subject: Think C 5.0.4 + Virex 3.6 => grief
Date: 23 Dec 92 17:24:55 GMT
Article-I.D.: menlo.1992Dec23.172455.9922
Organization: Cadre Technologies Inc., Menlo Park Operation

For reasons that might take more time than is available to track down,
Think C 5.0.4 and Virex 3.6 don't get along (on my home system, which is
a IIci, System 7, tuneup 1.1).  When I try to edit text files, Think
complains that they aren't really text, and won't open them.  After the
usual INIT shuffling grief, I found that removing the Virex 3.6 INIT
solved the problem.

This problem doesn't manifest itself at work, where 5.0.4 and Virex 3.82
are happily coexisting on an SE/30 running 6.0.7.

-- 
Dave Smith, Cadre Technologies Inc. - Database Tools Division
4500 Bohannon Drive, Suite 150, Menlo Park, CA  94025
Newsgroups: comp.sys.mac.programmer
From: russotto@eng.umd.edu (Matthew T. Russotto)
Subject: Re: Two more questions from a newbie
Date: Tue, 29 Dec 92 02:33:58 GMT
Organization: Project GLUE, University of Maryland, College Park

In article <w=Z=wfB@engin.umich.edu> positron@engin.umich.edu (Jonathan Scott Haas) writes:
>First, forgive me if this is a silly question, but what is MPW?

Apples development environment. 

>What's it used for, and why would I want to use it? My school
>has a site license for it, so I can get ahold of it... should I?

If they have the languages/tools you want, and you have a lot of hard
disk space and CPU to compile with.  If you just want C and you
already have THINK C, you don't need it.  If you don't have a lot of
hard disk space and a powerful CPU, you won't like it.

>Secondly, I've been playing around with Think C, and one thing
>I noticed is that several functions mentioned in Inside Mac seem
>to have different names under Think C. I'd rather write code the
>way Inside Mac says to, so I've created a file called thinkc.h
>that currently contains:
>
>     #define AppendResMenu AddResMenu
>     #define GetMenuHandle GetMHandle
>     #define GetMenuItemText GetItem
>
>...and so on. My question is: why? Why doesn't Think C use the
>"standard" names for these functions?

GetItem, GetMHandle, and AddResMenu ARE the standard names.
-- 
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures.  Make them use force.
(not responsible for bodily harm resulting from following above advice)
From: leonardr@netcom.com (Leonard Rosenthol)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Problem with patch to HFSDispatch
Date: 23 Dec 92 00:30:46 GMT
Organization: Netcom Online Communications Services (408-241-9760 login: guest)

In article <1992Dec22.182710.26751@panix.com> rmah@panix.com (Robert Mah) writes:
>In an extension that works fine on most systems, but some people seem to 
>be getting freezes when they shut down/restart their machine.  I'm not 
>sure, but I think it might be related to my patching HFSDispatch.
>
>I'm using register a1 to hold the adress of the real trap -- is there
>something wrong with this?  Anyone care to comment?
>
	Yup, that's your problem.  A1 & A2 are "special" for the HFSDispatch
routine and "may" contain useful information.  Using A3 should work just
fine.

-- 
-----------------------------------------------------------------------------
Leonard Rosenthol			Internet: 	leonardr@netcom.com
Director of Advanced Technology		AppleLink:	MACgician
Aladdin Systems, Inc.			GEnie:		MACgician
Xref: sparky comp.sys.mac.programmer:20424 comp.sys.mac.programmer:20425
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.programmer
Distribution: world
From: jacman@magicbb.uucp (Jordan Christensen)
Organization: MAGIC - Macintosh Awareness Group In Canada
Date: Tue, 29 Dec 1992 10:53:13 EST
Subject: VBL Task Records

Does anyone know how to access a VBL task record at interupt time.  Inside
Mac:Processes says how to do it in pascal(pg. 4-12), but my knoledge of pascal
insn't extensive enough to translate it.

Thanks,
Jordan (jacman@magicbb.uucp)
From: iscjcw@uccvma.ucop.edu (Jerry Wilcox)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Programming Group and the 32k TextEdit barrier
Followup-To: comp.sys.mac.programmer
Date: 21 Dec 1992 19:07:31 GMT
Organization: University of California, Office of the President
Distribution: world
NNTP-Posting-Host: ajax.ucop.edu

In article <dnebing-201292154747@m64-134.bgsu.edu>, dnebing@andy.bgsu.edu
(Dave Nebinger) wrote:
>   We've all heard about TopSoft, well this could be the same thing.
> I would like to start a similar group.  Instead of entering a group
> that has been working together for awhile and is putting out their 
> own stuff soon, this is a group that is just starting, an opportunity
> to get in on the ground floor of a new group.  The programming group,
> at this point, has no agenda (besides the >32k text engine).  Where the
> group goes next will depend on what the group wants to do.
> 

Might I ask why you aren't considering taking advantage of the ground we
have broken with TopSoft? TopSoft has a structure, an incorporated
non-profit, and is beginning to have name recognition. There are multiple
TopSoft projects underway right now and we always welcome other projects,
which can remain under your guidance and for which you retain the rights,
etc. Give it a bit of thought, as we do have some pretty useful services
available.

-----------
Jerry Wilcox - iscjcw@uccvma.ucop.edu
All opinions expressed are MINE -- I'd have a different job if the
University wanted me to speak for it.
Newsgroups: comp.sys.mac.programmer
From: kaufman@Xenon.Stanford.EDU (Marc T. Kaufman)
Subject: Re: MacDraw file format
Reply-To: kaufman@CS.Stanford.EDU
Organization: CS Department, Stanford University, California, USA
Date: 27 Dec 92 01:22:00 GMT

Yair Elharrar <X68442@BARILVM.BITNET> writes:

>Hello; I want to create a small utility that will read in certain data and
>output a MacDraw file; I'm looking for some help on how MacDraw files are
>built, including basic objects like lines and text.
>Any help will be greatly appreciated.

Believe me when I tell you: You don't want to know.  MacDraw files are
basically a dump of the internal data structures, which are quite complex
and non-trivial.  Consider using the XTND interface or PICTs.

-- 
Marc Kaufman (kaufman@CS.Stanford.EDU)
From: cardinal@informix.com (Edward Cardinal)
Newsgroups: comp.sys.mac.programmer
Subject: Source Code version control on the Mac?
Keywords: version control
Date: 18 Dec 92 19:49:36 GMT
Organization: Informix Software, Inc.

I know about Projector, but I use Think C (& TCL) which brings in its
own set of difficulties (though I love it dearly). Can I get them to
work together? How? Also, since I don't have MPW, do I need to buy the
whole thing just for Projector?

What source code version control software are you using? What is your
'method' or 'process' for using it? Are you using it alone, or in a
group?

I did a development project, my first large-scale on the Mac, without
anything. OK, I'll admit I was a goof; I don't want to go through that
again. There were a number of times I had to hand-revert the code to
back out changes. I was working solo, so I can see the trouble would be
exponential in a group/team situation. On UNIX, I have used SCCS, and
some newer commercial products.

I got a copy of Revisionist, but I have not yet had a chance to even
unpack it. How are people using this? Does it work well?

Are there commercial packages for version control/configuration management?

Have you tried automating the versioning using something like QuicKeys or
Frontier?

How are you working: Are you versioning every little edit?
Daily/Weekly? Only on a new release?  NEVER???

THANKS A BUNCH!
-- 
[ Ed Cardinal                   An English major from Berkeley  ]
[                               Who sold out to programming     ]
[ cardinal@informix.com         Because it pays more.           ]
[          DISCLAIMER: My Opinions. MINE! MINE! MINE!           ]
From: tfyam@fy.chalmers.se (Aare M{llo)
Newsgroups: comp.sys.mac.programmer
Subject: Possible to send fax from THINK C program ?
Summary: Is it ipossible to fax from THINK C program without user interference ?
Keywords: Fax-software, group 3 fax.
Date: 1 Jan 93 20:46:16 GMT
Organization: Chalmers University of Technology

Is it possible to write a C-program that intercepts the fax-setup and
fax-print dialogs, puts the correct data (such as e.g. the phone-number)
into the dialog boxes and then sends the fax via a faxmodem ?

I think I've seen this done as a XCMD (in Reports 2.0 for HyperCard)
with the ordinary page-setup and print dialogs. In my case it is the
chooser extension "FaxPrint" version 2.0.9 or 2.2.3 by STF Technologies
that I want to control.A

Aare Maello
From: flc3527@zeus.tamu.edu (Trey Campbell)
Newsgroups: comp.sys.mac.programmer
Subject: Which Files Are Selected?
Date: 21 Dec 92 18:17:00 GMT
Organization: Texas A&M University, Academic Computing Services
NNTP-Posting-Host: zeus.tamu.edu
News-Software: VAX/VMS VNEWS 1.41

I was wondering if anybody can tell me where/how the Finder keeps tracks of
which files are currently selected? I'd like to be able to find this out while
the Finder is running, not when it passes that info along to an application.

Thanks.
Trey Campbell
X-ray Diffraction Lab, Texas A&M University
From: bowman@reed.edu (Mr. Stress Tensor)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ETO#9 MacApp won't build - C - Fatal Error : 407
Date: 29 Dec 92 23:42:45 GMT
Article-I.D.: reed.1992Dec29.234245.13507
Organization: Reed College, Portland, OR

In article <1992Dec29.225510.11821@verity.com> anders@verity.com (Anders Wallgren) writes:
>In article <1992Dec29.211429.28535@cs.tulane.edu> Jeff E Mandel,
>mandel@tmc.tulane.edu writes:
>># C - Fatal Error : 407
>># could not proceed, BAD VERSION NUMBER in Dump file
>># No error (OS error 0)
>You should delete all dump files created by previous versions of
>the compiler and let the new compiler regenerate them.

Unless I'm mistaken, all you *really* need to do is add an "-e" to your
command line.

cheers,
bobo              In seeking the unattainable,
bowman@reed.edu            simplicity only gets in the way.
Ask not what's inside your head but what your head's inside of. - W. Mace
Newsgroups: comp.sys.mac.programmer
From: Robert Schwalbe <roberts@prepress.com>
Subject: Apple Christmas Greeting
Organization: Pre-Press Technologies, Inc.
X-Useragent: Nuntius v1.1
Date: Thu, 24 Dec 1992 16:36:52 GMT

Does anyone remember Apple's Christmas Greeting from two or three years ago?

It was sent to developers on a red floppy disk, that contained an
animation of some sort.

Well, I'd like to find a copy of that animation. Does anybody have a copy
that there could binhex and mail to me?  Better yet, would anyone know of an
ftp
site that has a copy.

It seems like this has become a part of the holiday.
Newsgroups: comp.sys.mac.programmer
From: russotto@eng.umd.edu (Matthew T. Russotto)
Subject: Re: Programming QuickCapture Board
Date: Thu, 31 Dec 92 23:00:33 GMT
Organization: Project GLUE, University of Maryland, College Park

In article <261@heimdall.sdrc.com> pmbrando@sgipm3.sdrc.com (Brandon Livingston) writes:
>
>
>I have a Data Translation QuickCapture Board installed in my IIx.
>I am trying to write software to use the board to capture images.
>
>First of all I am new to the world of mac programming as well as C,
>so bare with me on this one.
>
>Anyway,  The quickcapture documentation says the board is memory
>mapped to the mac and it uses two 8-bit control registers at memory 
>locations:   $FSF8 0000  and $FSF8 0004  where S is the slot number.
>These registers are used for control and status purposes. Each bit
>at these locations serves a purpose.  ie. bit 3 at $FSF8 0004 is 
>0 if the board is a 60Hz model type or 1 for the 50Hz model.

Sounds like a documentation bug.  The correct address is probably
$FSS8 0000
where S is the slot number.  Thus, a card in slot 9 would be
$F998 0000
-- 
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures.  Make them use force.
(not responsible for bodily harm resulting from following above advice)
Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: Sound Manager bug
Organization: High Risk Ventures
Date: Tue, 22 Dec 1992 21:23:35 GMT


Hey,

What's the status of the Sound Manager bug?  You know, the one where the
sound will just cut out on certain machines?  Has anyone managed to convince
Mr. Reekes that the bug actually exists?

The fix, of course, is to dispose and reinitialize your sound channels
occasionally to bring the sound back if it has cut out.

Is this fixed in 7.1?  Will it be fixed in the future?  Have we determined
that there's actually no bug at all, but some common programmer error?

Later,

Mike.
-- 
_____________________________________________________________________________
Michael A. Kelly                                               Senior Partner
mkelly@cs.uoregon.edu                                      High Risk Ventures
_____________________________________________________________________________
From: chuck@ccs.northeastern.edu (Chuck Wells)
Newsgroups: comp.sys.mac.programmer
Subject: Need BOOK that explains how to write an INIT
Date: 21 Dec 92 11:37:58 GMT
Article-I.D.: random.1992Dec21.113758.1944
Distribution: comp.sys.mac.programmer
Organization: College of CS, Northeastern U

I have quite a few Mac programming books, but none that explain the art of
INIT writing.  Can anyone recommend such a book?

Specifically, the init I am currently hoping to write just has to:
	1) Modify some files when I restart the computer
	2) Modify some files when I shutdown the computer
If I can do those things with an INIT, that will keep me happy for now.  Later,
I'll need to be able to: tell what keys the user is pressing, no matter what
application he is in, yet still allow the user to get those keypress events
to the applications.

Any book recommendations?  A while ago, Tim Dierks posted a long message on
how to write an INIT, but since I don't know how to patch traps, I was a bit
confused.  Thanks for any help.