HDTenEightyP/NetNews huggingface dataset:
From: rrichter@link.ph.gmr.com (Roy Richter PH/32)
Newsgroups: comp.sys.mac.programmer
Subject: TCL, MultiFinder, and Progress Dialogs
Date: 11 Jan 93 18:30:40 GMT
Organization: GM Research and Environmental Staff

I want to have a progress dialog up for an operation that takes
over a minute, so I've got the usual text string, and a horizontal
bar that fills up as the operation proceeds.  It would be nice to
also:

(1) let the Multifinder take time slices to update other programs,
	I assume that WaitNextEvent will do it;
(2) Have a "Cancel" button the user can push to cancel the 
	operation.  This has me stuck.

I use the Class Library to manage the dialogs.  That way, I just
GetGoodClicks and so on.  In this case, I'm not passing control up the
line to let the DeskTop get the click and dispatch it.  I wouldn't want
to break up my operation into a bunch of Tasks, that would be
hard--since I'm updating the progress dialog in a callback.  I'd prefer
the MultiFinder timeout and clicks be self-contained in the callback.
That was I can use the callback in many places, as needed.  Otherwise
I'd need to restucture the code into a Task everytime I thought a
time-slice was needed.

Any hints?

--
Roy Richter                  Internet: rrichter@ph.gmr.com
Physics Dept, GM Research    UUCP:     rphroy!rrichter
From: d88-jwa@hemul.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Why the Piracy? Here's why...
Date: 12 Jan 93 13:16:42 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <tal691.726832013@huxley> tal691@huxley.anu.edu.au (Tonio Loewald) writes:

>The cost of AutoCAD vs. MiniCAD.

>In each case, roughly comparable products that are difficult or impossible
>to pirate are much more expensive.

Or, it just *MIGHT* be that because it's so expensive
(because it takes so much time to develop) it *HAS* to
be made impossible to copy, just because they wouldn't
get paid for their efforts else?

Just maybe? :-)

Cheers,
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   This signature is kept shorter than 4 lines in the interests of UseNet
   S/N ratio.
Newsgroups: comp.sys.mac.programmer
From: phils@chaos.cs.brandeis.edu (Phil Shapiro)
Subject: Re: Think Ref 2.0
Organization: Symantec Corp.
	<PHILS.93Jan8083854@chaos.cs.brandeis.edu> <wondertr.726513991@sfu.ca>
Date: Fri, 8 Jan 1993 18:56:51 GMT

In article <wondertr.726513991@sfu.ca> wondertr@fraser.sfu.ca (wondertree learning center) writes:

   The upgrade to to Think Ref sounds great... my big question is does
   2.0 allow one to copy the sample code out of the program... 1.0
   didn't???

Yes. While THINK Ref 2.0 doesn't support arbitrary text selections, it
has a new menu item that copies the code examples on the current page
to the clipboard.

	-phil
--
   Phil Shapiro                                   Software Engineer
   Language Products Group                     Symantec Corporation
		   Internet: phils@cs.brandeis.edu
Newsgroups: comp.sys.mac.programmer
From: cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole)
Subject: Re: Which Inside Macintosh books are most essential?
Organization: University of Illinois at Urbana
Date: Fri, 8 Jan 1993 19:05:40 GMT

In <1993Jan7.012839.18495@leland.Stanford.EDU> bizarre@leland.Stanford.EDU 
(Bruce Templeton) writes:

>I've got enough money now to buy 2 or 3 of the new Inside Macintosh books.
>Which ones are the most essential?  I figured that _Toolbox Essentials_ is
>necessary, but which others should I buy?

If you do not already have all 6 IM 1st edition volumes, you might be better 
off getting them instead. The new edition is a fine concept, but your dilemma 
is the problem with them: 15 volumes cost a lot of cash. The 1st edition full 
set may not give you the same depth as the new ones, but they are at least 
complete thru 7.0 and give one a very good sense of compatibility depth (i.e. 
throw out v5 and v6 if you want things running on a Plus with 6.0.x, steer 
clear of v.6 if you want 6.0.x compatibility, etc.) 

On the other hand, if you have the full 1st edition set, you are really only in
need of depth, and where you need that is very subjective. I would recommend 
Files and Memory, but TB Essentials is probably a close 3rd. That is based not
on how inmportant the topic is, but on the additional depth provided over the 
original. I find that even with the new edition, I still go back to the old 
volumes (esp 1-4) for a lot of my reference, simply because they are briefer.
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.games
From: cfranz@iiic.ethz.ch (Christian Steffen Ove Franz)
Subject: Fast Performance Trig on sumex
Organization: Dept. Informatik, Swiss Federal Institute of Technology (ETH), Zurich, CH
Date: Fri, 8 Jan 1993 19:39:32 GMT


Hi netters,
 I just uploaded the FastPerfTrigs to sumex. Maybe you can use it.


------

Fast Performance Trig - A tool for programmers

FastPerfTrig is a library for THINK Pascal or THINK C programmers to
speed up their trigonometric calculations (namely sine, cosine and
tangens). FastPerfTrig uses look-up tables (as resources) to accomplish
speeds that are close to that of a FPU.
Usage is pretty simple: include the library in your project and there
you are. C programmers first have to convert the interface file to
C headers. If anyone of you C hackers out there has done this, please
email it to me so I can include it into an upcoming version.

FastPerfTrig is free for any non-commercial use. Please see the documentation.

Cheers,
Christian
-- 
-----------------------------------------------------------------------------
Christian S. O. Franz                 |                   cfranz@iiic.ethz.ch
ETH Zuerich, Swizerland               |
Newsgroups: comp.sys.mac.programmer
Subject: SFGetFile's directory after an Open Event
From: russells@ccu1.aukuni.ac.nz (Russell Street)
Date: Mon, 4 Jan 1993 19:08:15 GMT
Organization: University of Auckland, New Zealand.

This is one for the user interface police :)

After an application receives an 'odoc' Apple Event to open a document
should it arrange it so the next Standard File [Open] Dialog that is
brought up by the user is the same directory that the 'odoc' document
came from?

It is not difficult to do this as a programmer, but I have noticed
most Mac applications don't (ResEdit, for instance). Personally I
would _like_ them to change the GetFile directory, but what does Apple
have to say on the matter (if anything)? What are applications
supposed to do?

----------------------------------------------------------
Russell Street (russells@ccu1.aukuni.ac.nz)

"If vandals kidnap you look for finger prints on or about
your person -- that's a crime stopper."
Newsgroups: comp.sys.mac.programmer
From: rmah@panix.com (Robert Mah)
Subject: Re: QuickDraw: Why Can't it Mirror Right?
Organization: PANIX Public Access Unix, NYC
Date: Wed, 6 Jan 1993 07:28:46 GMT

In <1993Jan5.191918.12324@fsl.noaa.gov> urban@yoda.fsl.noaa.gov (Art Urban) writes:

>If I draw a line from 0,0 down and to the left, why won't QuickDraw mirror
>the line when I draw it down and to the *right*?

The reason is that the coordinates you are passing to QuickDraw routines are
NOT pixel locations.  They are the locations BETWEEN pixels.  

Thus, if you draw a line from (0,0) to (4,0), with a pensize of (1,1), it 
will be 5 pixels long.  But if you draw (0,0) to (-4,0) with a pensize of 
(1,1), the line will be still be 5 pixels long, but have a RIGHT location
at coordinate 1.  The key is that the "pen" hangs down and to the right of
the "pen location".  And LINE drawing takes place using the pen.

You should re-read the beginning of the Quickdraw chapter in IM-I for a 
much clearer description of the graphics model used within QD.

Good luck,
Rob
-- 
[--------------------------------------------------]
[  Robert S. Mah   |  "Every day an adventure,     ]
[  rmah@panix.com  |   every moment a challenge."  ]
[--------------------------------------------------]
From: Dmitry Boldyrev <dmitry@chemistry.chem.utah.edu>
Subject: Dialog & Window
X-Xxmessage-Id: <A5924FA81801C4C9@quadra.chem.utah.edu>
X-Xxdate: Thu, 9 Jan 92 16:14:48 GMT
Organization: University of Utah
X-Useragent: Nuntius v1.1.1d16
Date: Sun, 10 Jan 93 02:12:18 GMT

Hi Folks,
Does anyone know how to keep "Dialog" window and
work window active ?
For example:
var
	MyWindow: WindowPtr;
	MyDialog: DialogPtr;
	ItemHit: Integer;
begin 
	MyWindow := GetNewWindow(128, nil, Pointer(-1));
	ShowWindow(MyWindow);
	SetPort(MyWindow);
	
	MyDialog := GetNewDialog(129, nil, Pointer(-1));
	While ItemHit<>ok do
	begin									{ MyDlgFilter is my Dialog Filter proc }
		ModalDialog(MyDlgFilter, ItemHit);	{ My Window became *INACTIVE* }
		case ItemHit of
		......
		end;
	end;
	
	DisposeDialog(MyDialog);
	DisposeWindow(MyWindow);
end.


I would like to keep two windows "active" .. 
So that I'll be able to move them ... MyWindow and MyDialog's window..

Any information will be very appreciated!
My E-Mail: dmitry@chemistry.chem.utah.edu

--- Thank you ---
Dmitry.
Newsgroups: comp.sys.mac.programmer
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Subject: Re: 'Threads' package question
Organization: Curtin University of Technology
Date: Thu, 7 Jan 1993 15:08:32 GMT

dowdy@apple.com (Tom Dowdy) writes:

>In article <1993Jan2.202522.1@fnalo.fnal.gov>, gwatts@fnalo.fnal.gov wrote:
>> In article <1993Jan2.184916.18378@cc.umontreal.ca>, casgrain@ERE.UMontreal.CA (Casgrain Philippe) writes:
>> > I would like to know what _is_ exactly the 'Threads' INIT (extension).
>> > I believe it allows multi-threading programming.  Is this related to multi-
>> > tasking?  Is there any sample code that I can look at to program (Pascal,
>> > preferably)?  Is there any documentation available? (I have access to ETO).
>> 
>> Check out develop issue 6 and 7 -- they have the articles describing the
>> threads package.  You can get them off the develop cd, or in the apple ftp
>> site, under dts/doc/develop.  It has some sample code there as well as the
>> text of the article.

>So, in summary, don't use them just for the sake of using them - use
>them because you really are sure they are needed.

True.  Also, if you don't have a particular need for the features of
Threads (futures being the most obvious (not that I know what futures
are or why you'd want to use them :-)), you might want to check ouy the
wonderful TaskManager package, which is very simple, very short and has
full source code for it, in both C and Pascal too, and doesn't require
an init or display an icon on the screen when you run your app! Its on
sumex-aim.stanford.edu:/info-mac/source/{c|pascal}

Enjoy,
   Peter.

-- 
_______________________________________________________________________
Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
Xref: sparky comp.sys.mac.programmer:20650 comp.os.ms-windows.programmer.tools:1861
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
Subject: Stallman and friends
Date: 4 Jan 93 21:41:05 GMT
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <1993Jan3.221507.17152@plx.com> (comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer), sailu@plx.com (Sailu Reddy) writes:
> Yeah think of the gull that guy has ! HE INTENDS TO GIVE SOFTWARE AWAY
> FREELY. Giving away the software which is better than most of the so called 
> "professional" software and contributed immenssely to the development
> of CS,  is indeed a crime.
> 
> As far as "Apple Computers Inc" suing every other company, that is a 
> natuarl progression of events. Having run out of any original thinking,
> and getting  none from the top ( selling PEPSI before never required too 
> much intelectual participation) , they have to resort to something. 
> 
> What bothers me is not Apple computers but alleged "professionals" like
> above making rash comments without knowing what GNU stands for or their
> contribution to the industry where they earn living. Then again what do I
> know, I have the same wierd ideas and hope someday I have the honour of
> calling "RMS" a friend.

As to making "rash" comments, my comments were quite considered.
I've been anti-GNU for years now.  They simple don't believe that
people like me have the right to protect work as intellectual
property.  I make a living developing software and selling it - I
take this whole subject very seriously and I view the FSF ideas as
a threat.

Also, Stallman doesn't not intend to "GIVE SOFTWARE AWAY FREELY" as
you say.  That's the little trap he sets.  All GNU software is very
specifically not placed into the public domain.  This is not being
picky, it goes straight to the core of what FSF and GNU software is
all about, that is politics.

And finally, I disagree that Apple has stalled under the leadership
of John Sculley.  I think he has done an excellent job of fostering
creative development at Apple both from a purely technical standpoint
and also from the equally important marketing standpoint.

Apple's fortunes have continued to grow quite nicely since the boycott
began.  I'm not surprised, in the scheme of things Stallman and his
ilk are just annoying blips on the screen.

--  Michael Peirce      --   peirce@outpost.SF-Bay.org
--  Peirce Software     --   Suite 301, 719 Hibiscus Place
--                      --   San Jose, California USA 95117
--  Drop by booth #4463 --   voice: (408) 244-6554 fax: (408) 244-6882
--  at MacWorld Expo/SF --   AppleLink: peirce & America Online: AFC Peirce
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: Should we start using an installer?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 5 Jan 1993 20:41:57 GMT

In <C0EAGs.4F9@well.sf.ca.us> nilesinc@well.sf.ca.us (Avi Rappoport) writes:

>We have been getting tech support calls about installation, now that we have
>multiple disks and options for various word processors (this is for the

>What installers are people using?  Is the new Apple installer better than
>the old one?  Should we start using an installer?

The new Apple installer is OK; it knows how to quit other apps and
can now be extendable, but I wrote my own (scriptable) because I
had several specific requirements (Like erasing old files based on
creator & type & what folder they're in and placing new files
there, installing extensions to other programs, branding programs
with license numbers picked from a list, ...)

Writing an installer isn't too hard, but be CAREFUL! If it goes
wrong, you might be in deep trouble with your customers. Be sure
to check all error codes and be prepared to do something smart
when they come out wrong...

Cheers,

							/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   This signature is kept shorter than 4 lines in the interests of UseNet
   S/N ratio.
Newsgroups: comp.sys.mac.programmer
From: mike_d@tfsquad.mn.org (mike diack)
Newsgroups: comp.sys.mac.programmer
Subject: Cross assemblers for Macs
Date: Tue, 05 Jan 93 13:17:48 CST
Organization: tfsquad public access insane asylum, St Paul MN (+1 612 291 2632)

One of those nasty things that those of us engineering types who own
macs have to contend with is that we have to pay through the nose for
development tools which the dos people get for nothing. (wimper wimper)
I'm specifically thinking of X-assemblers for microprocessors/controllers
Which Intel & Signetics happily give away for 8051 based devices, and
Moto (who SHOULD, if anyone, support macs !!) dish out for 68HCwhatevers.
Given that X-assemblers, at their most simple level, merely read a 
textfile, manipulate a symbol table, generate opcodes and output a S 
record or IntelHex file (with a bit of range checking and wombat 
detection thrown in if you're lucky), the only solution seems to be
"roll your own" - not having a few spare months to do this, can anyone
point me in the direction of any software components of frameworks that
may make the task easier (I'm particularly interested in the NEC77P20 DSP
chip, but anything would be useful)
cheers
        Mike.

---
mike_d@tfsquad.mn.org (mike diack)
The Firing Squad BBS, public access Usenet mail and news.  +1 612 291 2632
Saint Paul, Minnesota
From: chuck@gte.com (Chuck Hoffman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Mac C Prog. Primer
Date: 4 Jan 93 17:57:09 GMT
Followup-To: comp.sys.mac.programmer
Organization: GTE Laboratories

In article <C0BrL3.HxC@news.cso.uiuc.edu>, dpape@imlab (Daniel X Pape)
wrote:
> 
> Ok -- I have this book (volume one, 2nd edition) and I am working out the
> examples. I have typed in the examples for EventTracker and EventTrigger
> EXACTLY ( I have even had others proofread it for me) and although
> EventTracker seems to work, EventTrigger won't. Has anyone else out there
> bought this book and done these two examples and gotten them to work?
> 
> In fact are there any brave souls who want to mess around and I could mail 
> them the typed in source code, and they could try to get them to work?

What the heck.  I bought the book well after I had become a Mac programmer,
so haven't worked the examples.  If you want to, go ahead and send one to
me.  I recently purchased the second edition of vol 1.

Chuck Hoffman
chuck@gte.com
GTE Laboratories, Waltham, Massachusetts, USA
(617) 466-2131
=====================================
I'm not sure why we're here, but I am sure that while we're here we're
supposed to help each other.
=====================================
From: mf2z+@andrew.cmu.edu (Matthew Earl Fernsler)
Newsgroups: comp.sys.mac.programmer
Subject: AppleTalk Completion Routines
Date: 11 Jan 93 06:08:23 GMT
Article-I.D.: andrew.0fINhri00VB0Q=SYdK
Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA


    I am currently working on a program that uses the ATP protocal for
transfering information between macs on a local network.  The program
works fine except for the fact that I could not get most of the prefered
commands to execute the simple completion routine of SYSBEEP.  The
program currently checks the ioResult field to see if the AppleTalk
procedure is done and they do finish.  I am writing the program in Think
C 5.0 and hoping that someone might know something that I don't.  Please
respond with E-mail if possible.  

        Thanks for your time,
            Matthew Fernsler
Newsgroups: comp.sys.mac.programmer
From: jimi@romulus.ehs.uiuc.edu (Devin Nickol)
Subject: Re: Why does BinHex exist?
X-Newsreader: Tin 1.1 PL5
Organization: University of Illinois at Urbana
Date: Fri, 8 Jan 1993 12:55:14 GMT


actually, another justification for binhex (for me at least) is that my
#$%^@# modem seems to burp on binary stuff when i try to download from
my university machine. it does just fine on local bbs binaries though...
hmmm.


devin nickol
jimi@romulus.ehs.uiuc.edu
From: yjc@po.CWRU.Edu (Y H J. Chan)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Stallman and friends
Date: 7 Jan 1993 19:44:14 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: yjc@po.CWRU.Edu (Y H J. Chan)
NNTP-Posting-Host: slc12.ins.cwru.edu


In a previous article, veloso@husc9.harvard.edu (Manuel Veloso) says:

>market. My unix friends tell me that most of the base unix utilities are
>FSF-made (& better than the original); GCC, Emacs, YACC, etc. are better
>at what they do than the commercial versions. Even better, they're free.
>How, then, can a commercial firm compete against well-produced, good
>quality,
>el-cheapo software? They can't...for long. The implications are, well,
>interesting.
>
>Manuel

If a commercial company cannot come up with applications/utilities that are
better than a sharewar/freeware version, what gives it the right to
survive? Are we to continue subsidising sub-standard software? No. The
software companies have to provide more, (ie better after sales support,
etc) in order to attract customers. Also, prices of software for Unix
systems are much more expensive than their PC counterparts.
-- 
 The Evil Tofu
From: rudolph@unixg.ubc.ca (Christopher E Rudolph)
Newsgroups: comp.sys.mac.programmer
Subject: MacMINIX
Date: 9 Jan 93 02:51:51 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: unixg.ubc.ca
Summary: Does anyone know where I can get MacMINIX?
Keywords: macminix where is it

Hello all,

Does anyone know where I can get MacMINIX.  I know that it is published by 

Prentice-Hall Inc
(A division of Simon-Schuster)
Englewood Cliffs,
NJ 07632

but does anyone know of a phone #, fax #, email-address, etc...

Also, I am in Canada, so if there is a fellow Cdn. out there who has found
out where to get it in Canada, then could he/she tell me.

thanks in advance,

Chris Rudolph (ComputerScience, UBC) <rudolph@unixg.ubc.ca>
=---------------------------------------------------------=
Xref: sparky comp.sys.mac.programmer:20678 comp.sys.atari.st.tech:6489
From: sumi@cuby.mis.hiroshima-u.ac.jp (SUMIYA Takahiro)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Default buttons in dialogs (R)
Date: 7 Jan 93 07:45:23 GMT
Organization: Dept. of Integrate Arts and Sciences, Hiroshima University

In article <1993Jan7.053958.18390@cc.umontreal.ca> 
casgrain@ERE.UMontreal.CA (Casgrain Philippe) writes:

 |>Whenever I make a dialog box with ResEdit, my "OK" buttons, which are always
 |>the number 1 button, fail to show up in my app with the heavy outline around
 |>them. What am I doing wrong?
 |>
 |The #1 button is drawn with a heavy outline only in alert boxes.  If you want
 |to implement that behaviour in a dialog box, you have two options:

You have another option.  

3) There is a CDEF called 'default CDEF'.  Once you paste this CDEF in
your project resource file, the button which title ends with '@' (eg. 
OK@) is drawn with heavy outline.  It's very easy and convenient, so
I always use it.

I miss the BinHex file originally distributed, but I'm sure it's
freeware.  If you cannot find the file, I will send it via e-mail. 
(3,378 byte in BinHex)
--


	  Takahiro Sumiya (sumi@cuby.mis.hiroshima-u.ac.jp)
From: mosemann@cse.unl.edu (Russell Mosemann)
Newsgroups: comp.sys.mac.programmer
Subject: THINK Reference comments wanted.
Date: 11 Jan 1993 22:46:19 GMT
Organization: University of Nebraska--Lincoln	
Distribution: world
NNTP-Posting-Host: cse.unl.edu
Summary: THINK Reference comments wanted.
Keywords: THINK Reference comments

   A friend of mine is learning Pascal (from years of QuickBASIC) on
the Macintosh and wants to do the "normal" things like printing.  He has
been searching for code examples to help him along (let's face it, there
is a steep learning curve on the Macintosh and OOP is out of the
question at this time), and just today we got blurbs from Symantec
about THINK Reference for only $89.  (He is using THINK Pascal.)
   My question is, what do you think of it?  Does it provide lots of code
examples that my friend would find useful?  Email or post, and I will
collect the responses.  Thanks.
--
Russell
mosemann@cse.unl.edu
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: What to do if I can't honor an Apple event?
Organization: University of Delaware
Date: Sat, 9 Jan 1993 20:40:01 GMT

This is probably in IM VI somewhere, but I haven't been able to find it.

My application can only have one document open at a time, and it doesn't
support printing.  If I get an 'open document' Apple event when there's
already a document open, or if I get a 'print document' Apple event at any
time, then I am unable to honor the Apple event.

I know I'm supposed to send back an error string as illustrated on IM VI
6-49, but I'm not sure what integer to send back as the result of the
handler function, since the cause of a failure wasn't an operating system
error.  Should I just send back any old negative integer (e.g. -1) if I
don't have any other error to send back?  Also, is it my responsibility to
dispose of the event parameters by calling AEDisposDesc, or is that the
responsibility of the caller if I send back an error code?

Thank you very much.

--Kurisuto