HDTenEightyP/NetNews huggingface dataset:
From: niel@cars.com (Niel Bornstein)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Uniquely identifying a Mac? How?
Date: Thu, 17 Dec 92 09:29:55 EDT
Organization: Heavy Objects R Us
Reply-To: chinchilla!niel@cars.com
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <9235010.4295@mulga.cs.mu.OZ.AU> (comp.sys.mac.programmer), mtc@mundil.cs.mu.OZ.AU (Michael Trevor CUTTER) writes:
>We are looking for a way to uniquely identify a Mac, probably one on a network,
>but not necessarily. Is the serial number or similar available somewhere in the
>ROMs or parameter RAM? (Highly unlikely, I know - specially since PRAM can be
>reset)


How about the AppleTalk address?  I know, they are assigned dynamically,
but if the network is mature it will stabilize.  Are machines being
added to or taken off the network a lot?  

Or if it's a TCP/IP network, there's the IP address.

If they're not networked, I don't know.

Niel

|--------------------------------------------------------------------------
| Niel M. Bornstein                              chinchilla!niel@cars.com |
| 1352 North Morningside Drive               ...csn!sable!chinchilla!niel |
| Atlanta, Georgia  30306                 (404) 872-6883   (404) 551-8075 |
--------------------------------------------------------------------------|
| Opinions? I don't need no stinkin' opinions!                            |
|--------------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: gaillard@panix.com (Ed Gaillard)
Subject: Re: Advice needed
Date: Wed, 16 Dec 1992 03:54:20 GMT
Organization: PANIX Public Access Unix, NYC

In reply to my post, I received an Email from Sean J. Crist
<kurisuto@chopin.udel.edu>, which follows:

<begin forwarded mail>

>>3. Do I need a lawyer to make it legally binding?
>
>Oh, yes.  Definitely.  You _need_ a lawyer.  A little time and money
>spect on a lawyer up-front, while negotiating your contract, will save
>you a _lot_ of unpleasantness later.

I've tried posting this but for some reason the server keeps rejecting it.
So I'll just mail it to you; I'd like it if you could post it, since I
don't seem to be able.

An important point of clarification:  A contract is legally binding as
soon as it's signed, regardless of whether an attorney was consulted. 
What an attorney can do is point out parts of the contract which aren't
legally enforceable, or parts which might have legal ramifications which
you might not have anticipated.  A contract scribbled on a cocktail napkin
is binding, as long as all parties have signed it.

So, do you need an attorney to make a contract legally binding?  No.  Is
it a good idea to consult an attorney anyway?  Yes.

<end fowarded mail>

Mr. Crist is absolutely right.  I'm sorry for any confusion I might have
caused.  I saw "do I need a lawyer" and went off half-cocked.  I meant
"don't sign anything until you get a lawyer!"

-- 
Ed Gaillard <gaillard@panix.com> 
I can't see the lines I used to think I could read between.
From: james@netcom.com (James L. Paul)
Newsgroups: comp.sys.mac.programmer
Subject: PICT2 -> Bitmap shortcuts?
Date: 19 Dec 92 00:42:47 GMT
Organization: Netcom Online Communications Services (408-241-9760 login: guest)

I need to take a PICT with any number of objects, and end up with a region
than encloses all the non-white objects. Oh yeah.. at any bit depth.

Currently, I'm drawing the PICT offscreen (either a GWorld, or not...) and
then getting a bitmap mask to give to BitMapToRegion. I'd really like to do
it without the overhead to speed things up, take less memory, etc.

Anyone got a good idea for a slick way to get a bitmap mask quickly from
a color PICT without setting up and then disposing offscreen stuff? 

On a related topic, (I haven't looked into this yet, but...) Is there a
simple way to grab a mask of a pixmap that gets _all_ of the non-white
pixels, not just the darker colors? I'm sure there's a straightforawrd way,
I just haven't thought of how to keep CopyBits from mapping lightly saturated
colors to white yet... (grrrrr.) ;)


-- 
James L. Paul

Internet:    netcom!james@apple.com | AppleLink: D1231 | CompuServe: 72767,3436
UUCP:   {apple,amdahl}!netcom!james | GEnie:    J.PAUL | Voice:    607 776-3070
Packet: N6SIW@WB2PSI.#WNY.NY.USA.NA | Delphi:   JLPaul | Home Fax: 607 776-3070
America Online:   JLPaul or Memorex | BIX:      JLPaul | Prodigy:       PWTB41A
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: Patrick_J._Toole@uu0570.foggybottom.com
Organization: Foggy Bottom / Washington, D.C.
Date: Fri, 18 Dec 1992 19:36:22 EST
Subject: Assembly??

I am just now getting into assembly, but it seems "locked" I can't find any
good references, or know any.Would someone point me in the right direction?

-Pat
Foggy Bottom - your FirstClass Mac connection in Washington, DC

Newsgroups: comp.sys.mac.programmer
From: absurd@apple.apple.com (Tim Dierks, software saboteur)
Subject: Re: checking for ShutDown under syste 6.
Date: Mon, 21 Dec 1992 02:36:03 GMT
Distribution: usa
Organization: MacDTS Marauders
Followup-To: comp.sys.mac.programmer

In article <1992Dec20.023518.12471@mcs.drexel.edu>, udmorrow@mcs.drexel.edu
(Daniel Morrow) wrote:
> 
> In article <1992Dec19.233443.11739@mcs.drexel.edu> udmorrow@mcs.drexel.edu (Daniel Morrow) writes:
> >Under system 6, it seems that when the computer shuts down, the system just
> >looks for the File menu, and then the Quit item and posts the proper event
> >to trigger this. (I really don't know how it works).
> >
> Yes, I'm answering my own post before I get any responses on it.
> 
> Sorry that I wasted some people's time with this question, but I found
> the answer already, by adding two lines of code to my program, 
> 	ShutDwnInstall (which takes a procPtr to execute upon shutdown)
> 	ShutDwnRemove (called right before ExitToShell for whatever reason)
> 
> These work quite nicely. (also work under sys 7)
> 
> Again, sorry to waste the bandwidth on this one.
> 
> -Dan.

Boy, I knew I should have answered that first one.  While your solution
works, it's not the best (or canonical) solution.  For applications whose
menus didn't fit the standard File/Quit naming procedure, MultiFinder 
will look in a 'mstr' or 'mst#' resource to find the name of the menu
and menu item to fake to cause the application to quit.  In this way,
you can tell MultiFinder where to find your File/Quit equivalent.  The
documentation on this is in Tech Note #205, "MultiFInder Revisited:
The 6.0 System Release".

I think you'll find this to be the best way to get your application to
quit correctly in System 6.0.x.

Tim Dierks
MacDTS, pinball addict
Newsgroups: comp.sys.mac.programmer
From: PA@PARobitaille.ccr.hydro.qc.ca (Paul Andre Robitaille)
Subject: what is the best C compiler
Followup-To: comp.sys.mac.programmer
Organization: Hydro Quebec
Date: Tue, 15 Dec 1992 23:52:42 GMT

I am looking for a C compiler on the MAC. What is the best ?

Paul Andre Robitaille
PA@PARobitaille.ccr.hydro.qc.ca
From: rudolph@unixg.ubc.ca (Christopher E Rudolph)
Newsgroups: comp.sys.mac.programmer
Subject: Assembly on the Macintosh
Date: 16 Dec 92 00:27:53 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: unixg.ubc.ca
Summary: Anyone know about Steve Williams Assembly on the Macintosh Book?
Keywords: Steve Williams Assembly macintosh question help

Steve Williams wrote a book called "Programming the Macintosh in Assembly
Language".

Question:  (Hope this isn't an FAQ)

Is this a good book to begin learning Assembly language with?
Is the book outdated?  Where would I get this book, as I can't seem to
find it here in Canada?

thanks,

Chris Rudolph (ComputerScience, UBC) <rudolph@unixg.ubc.ca>
------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: ttak@quads.uchicago.edu (toki  takeuchi)
Subject: Getting StructureRegion of a Dialog. etco
Reply-To: ttak@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Sun, 13 Dec 1992 01:22:52 GMT


Newsgroups: comp.sys.mac.programmer
From: Kevin W. Ramer <ramer@nrc-iris.nrc.uab.edu>
Subject: Source Examples using Private Scrap
Organization: Neurobiology Research Center
X-Useragent: Nuntius v1.1
Date: Wed, 16 Dec 1992 15:56:02 GMT


	I'd like to find source examples for using a private scrap in my
application to 
copy/paste some of the application's data.  So far I haven't found
any examples in the usual repositories.  

Any tips are appreciated,

Thanks
Newsgroups: comp.sys.mac.programmer
From: lsr@taligent.com (Larry Rosenstein)
Subject: Re: Bedrock, What Do We Know So Far?
Followup-To: comp.sys.mac.programmer
Organization: Taligent, Inc.
Date: Sat, 19 Dec 1992 03:10:46 GMT

In article <1992Dec16.055944.17580@netcom.com>, gurgle@netcom.com (Pete
Gontier) wrote:
> 
> >I'm interested in all information, no matter how trivial. Perhaps we
> >should begin compiling this info for other wanaknows...
> 
> Write the SEF for the newsletter about the meeting. Or go to MacWorld
> and see the same presentation. I'm better at answering questions
> than presenting summaries.

Or better yet go to the MADA conference in San Diego in February.  Not only
will you be able to get the Bedrock talk but you'll get to see other OO
tools.

Larry Rosenstein
Taligent, Inc.

lsr@taligent.com
Newsgroups: comp.sys.mac.programmer
From: quinlan@fraser.sfu.ca (Brian Quinlan)
Subject: Any ideas for a spread sheet?
Summary: Need help implementing a spread sheet
Keywords: List Spreed Sheet Help
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Sat, 12 Dec 1992 09:03:59 GMT

	I'm currently writing an application that analysis data. This
data is entered in two fields. Currently I only let the user see one
data item at the same time (just the two fields in the one data item).
However, this seems a little unmaclike and I think that using a spread sheet
two columns wide would be a better way to go. The spread sheet would
only allow the user to see a fixed amount of rows (say 5) and would only
allow the user to scroll an entire row. This sounds nice, but how do I
implement it? I could use 10 text items and just move the data between
the text items as the user scrolls but that seems a little messy. What
I would like to do is use the List Manager to handle the data and just
handle the field that the user is manipulating using text edit. This
seems impossible, however, since you can't remove a single cell from the
list. Anyone have any other ideas? Anything would be helpfull (except
telling me that I should write my own Spread Manager in assembly language,
I'd rather abandon the problem)
  Thanks,
      Brian Quinlan
quinlan@sfu.ca
(By the way I wrote this at 1:25 A.M. and I only got 3 hours of sleep last
night so forgive my lack of clarity)
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: Compact Video - Compression times
Keywords: qt1.5 supermac
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Fri, 18 Dec 1992 14:41:35 GMT

In <hdm2_wp@rpi.edu> bluea@marcus.its.rpi.edu (Alan Samuel Blue) writes:

>platforms? I ask because the 'Compact Video' compressor is hideously
>slow. It produces ver nice results - but 3hrs on a IIci for one
>minute of video is too much. 

You must have ben using a high frame rate and large pictures.

However, a Quadra (or several :-) helps tremendously, since
the 68040 is so much snappier than a 68030+68882 (except for
transcendentals...)

>There is lots of sample code for movie 'editors', but I see nothing
>about the actual codec's themselves - I assume they are Apple is 
>keeping a tight lid on them?

Yup, propriatary up the wall. :-(

>As a side note - Is there anything interesting I can write to use
>the AMD29000 on the 8*24GC? 

Who would want to? The AMD29000 is slower than a Quadra. You
can buy a 68040 accellerator for a LC thats faster than the
AMD29000.
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

   NetHack 3.1: Any Year Now.
Xref: sparky comp.sys.mac.programmer:19816 comp.lang.lisp:3071
From: mkant+@cs.cmu.edu (Mark Kantrowitz)
Newsgroups: comp.sys.mac.programmer,comp.lang.lisp
Subject: Re: Info about Pearl Common Lisp for the Mac Desired...
Keywords: RUMOR CONTROL
Date: 14 Dec 92 19:41:06 GMT
Organization: School of Computer Science, Carnegie Mellon

In article <1992Dec12.101436.8697@selway.umt.edu> ogd@selway.umt.edu (ozymandias G desiderata) writes:
>
>	As I was browsing through this evening's Info-Mac Digest, an
>item therein caught my eye. It stated that Apple bought out the
>company who sold Pearl Common Lisp, and that Apple had released same
>into the public domain. Anybody want to verify/debunk this claim?
>	If (by some minor miracle) this is true, how might Internet
>friendly semi-programmers like myself get ahold of this beast? If this
>is some horrible hoax to get my hopes of finding a (very) cheap Mac
>implementation of Common Lisp up, how much does the real thing cost?

Pearl Lisp (a subset of MACL 1.3) was placed by Apple in the public
domain when they bought Coral and canned the Pearl product.
Unfortunately, nobody (including some Apple folks) can seem to find a
copy, and it probably doesn't run under system 7.

If anybody has a copy and can provide more details, please post. But I
think you'd be better off buying MCL 2.0. If money really is an issue,
and you aren't too particular on Common Lisp, there are several good
and inexpensive Scheme implementations for the Macintosh. See the Lisp
FAQ, part 4, for details.

--mark
From: dev@cats.ucsc.edu (/dev/null)
Newsgroups: comp.sys.mac.programmer
Subject: Installer Munges Menu ID's
Date: 15 Dec 1992 21:27:39 GMT
Organization: University of California; Santa Cruz
Distribution: na
Reply-To: d1620@applelink.apple.com
NNTP-Posting-Host: am.ucsc.edu
Summary: Installer 3.4 changes menu id's so DA doesn't work
Keywords: Installer DA Menu Desk Accessory


Please reply via e-mail to d1620@applelink.apple.com.  This is posted for
a friend.

-


When I use Installer 3.4 to install a Desk Accessory on System 6, it
 changes the Menu ID field of my 'MENU' resources.  This makes the 
DA's menu fail to do anything - the DA never gets an accMenu event.

If I use the Font/DA mover to install the DA, it works just fine.  Either 
there is a bug in my installer script, or in the Installer's handling of 
owned resources.  Anyone got a clue?

Following is the 'inra' resource from my installer script.  The installer 
knows to copy over owned resources when a DRVR is installed.

Thanks,

Mike Crawford
Product Development Manager
Working Software, Inc.
d1620@applelink.apple.com

resource 'inra' (raDA6) {
format0 {
deleteWhenRemoving,		/* Delete the resource if remove is clicked*/
deleteWhenInstalling, 		/* Delete the target before copying new one */
copy, 				/* Copy rsrc to destination */
tgtRequired, 			/* Target file need already exist on dest to install */
updateExisting, 		/* replace any preexisting DA with the same name */
copyIfNewOrUpdate, 	/* Copy whether or not target rsrc already exists */
ignoreProtection,	/* Do it even if the target rsrc is protected */
srcNeedExist,		/* Rsrc needs to exist on source disk */
byName,			/* use the name to find the source and target rsrc */
nameMustMatch,		/* this field is ignored if above is byName */
fsTargetSystem,		/* Target file spec to install rsrc into */
fsSourceDA,			/* Source file spec where to get rsrc */
'DRVR',			/* Resource type */
0, 			/* Resource source id */
0,			/* Resource target id */
0,			/* atom size (filled in by ScriptCheck) */
"Desk Accessory: MyAccessory",/* Atom description */
"\0x00MyAccessory"/* Resource name */
};
};
From: myke@terminator.rs.itd.umich.edu (Michael Dautermann)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to write After Dark Modules?
Followup-To: comp.sys.mac.programmer
Date: 19 Dec 1992 17:33:54 -0500
Organization: We're from the government, ma'am
Distribution: na
NNTP-Posting-Host: terminator.rs.itd.umich.edu
Summary: where else but on the archives...
Keywords: DARK!

In article <BzIxEK.EM@ccu.umanitoba.ca> rhall@ccu.umanitoba.ca writes:
>Hi there,
>
>	Can somebody tell me in detail how to write After Dark modules.  
>(either 'C' or Pascal).

I'm not at my Macintosh today (on the parent's IBM Klone) so I
can't cut/paste the index description, but what you are 
looking for is in the "util/developer" directory on 
mac.archive.umich.edu.  The name of the file is "cafterdark.sit.hqx"
and it contains an example project and source code.

If you want, get on our frequent ftp'ers list.  Send me mail at
"mac-recent-request@mac.archive.umich.edu".

Hope that helps.... 



-- 
-----------------------------------------------------------------
myke@terminator.rs.itd.umich.edu = usermyke@umichum.bitnet = myke@umich.edu
mike@mac.archive.umich.edu = MISTER archive
Michael Dautermann - U-M Ann Arbor, Dearborn and, soon.. the world!
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: sharkman@magicbb.uucp (Matt Daw)
Organization: MAGIC - Macintosh Awareness Group In Canada
Date: Sun, 13 Dec 1992 12:47:52 EST
Subject: Re: think c questions

You can get the 5.0.4 update from pretty well any file site. Try Sumex first
though...

Matt
From: grobbins@Apple.COM (Grobbins)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Fun with WaitNextEvent
Date: 12 Dec 92 22:48:50 GMT
Organization: Experimental System Software Department

In article <bobert.724037041@godzilla> bobert@informix.com (Robert Murphy) writes:
>In a recent issue of Develop, there's an article on faceless background apps
>called "Be My Guest", in which C.K. Haun says: ...
>
>So... according to this article, an FBA doesn't have to initialize any
>managers.  I presume this information is correct, so I guess maybe an app
>that doesn't have "background-only" set in the size resource is different
>from an FBA?

No, the article is not entirely correct.  A faceless background app
(AKA background-only app) definitely should call InitGraf; indeed, any
app which uses the Apple Event Manager should call InitGraf (since the
Apple event manager uses QuickDraw's Random function.)  An FBA must have
both the canBackground and backgroundOnly bits set; by definition,
that makes it an FBA.

An upcoming tech note ("Background-Only Applications") will try to
address gotchas of FBAs and correct and supplement the New Inside
Macintosh information.  (Other gotchas:  the default stack for an FBA
is only 2K; you cannot set an arbitrary stack, but rather SetApplLimit
enforces a 24K minimum on color machines; routines which might
sometimes raise dialogs can kill FBAs; launch order vis-a-vis the
Finder is strange; use of the Notification Manager has HI implications
because the user may not know the FBA is running.)  Sample code is
available via anonymous ftp from ftp.apple.com (see
/dts/mac/sc/snippets/interapp.comm/smalldaemon.hqx.)


Grobbins           grobbins@apple.com

Usual disclaimers apply.

Newsgroups: comp.sys.mac.programmer
From: siegel@world.std.com (Rich Siegel)
Subject: Re: OnLocation Index Engine
Organization: GCC Technologies
Date: Wed, 16 Dec 1992 05:32:06 GMT

In article <1992Dec15.164017.279@physc1.byu.edu> goblec@physc1.byu.edu writes:

>I was looking at the documentation for BBEdit though, and it will
>do full grep searches using the OnLocation index engine.  Does anyone
>know how this is done?  If using the engine is easy or only a matter
>of apple-events, I may just get OnLocation and write a little scanning
>program that sends open AE to MS-word.

Actually, BBEdit's grep and On Location's search are mutually exclusive.
However, using On Location for text searches is reasonably straightforward
via their Apple Event interface.

R.



-- 
-----------------------------------------------------------------------
Rich Siegel                              Internet: siegel@world.std.com
Senior Software Engineer
GCC Technologies
Newsgroups: comp.sys.mac.programmer
From: leonardr@netcom.com (Leonard Rosenthol)
Subject: Re: How do I use the 'miscdosc' AppleEvent?
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Fri, 18 Dec 1992 22:48:04 GMT

In article <1992Dec18.174212.23244@kth.se> d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>In <claytor.1-171292131137@resis.phys.nd.edu> claytor.1@nd.edu (Nelson Claytor) writes:
>
>>I'm having some trouble using the 'dosc' Apple Event to convince 
>>another application to run a script. So far, I'm basically testing only
>
>>in the AE Registry. Alpha returns -1769. Does anyone see anything obvious
>>wrong with what I'm doing? My code follows the .sig.
>
>The dosc AppleEvent should send THE SCRIPT as typeChar in a handle
>(no length byte or anything)
>
>You're sending a script FILE.
>
	Actually there are three ways that a 'misc/dosc' can be sent, either
as the script as text (typeChar), an alias to the file containing the script
(typeAlias or typeFSSpec) or as an object specifier to the script.

	Most applications only support the first one, in fact the only program
that I kinow of that supports all three (or anything other than the first) is
MicroPhone II 4.0.

-- 
-----------------------------------------------------------------------------
Leonard Rosenthol			Internet: 	leonardr@netcom.com
Director of Advanced Technology		AppleLink:	MACgician
Aladdin Systems, Inc.			GEnie:		MACgician
From: bpb9204@tamsun.tamu.edu (Brent Burton)
Newsgroups: comp.sys.mac.programmer
Subject: Sound Input questions (real time usage)
Date: 14 Dec 1992 00:04:21 -0600
Organization: Texas A&M Univ., Inc.
Distribution: usa
NNTP-Posting-Host: tamsun.tamu.edu


In short, I'm writing a program to draw the shape of the
sound coming in on the built-in device.  However, I'm new to
using the new Sound Manager and I don't know how to properly
approach it.

Think of my program as simply drawing a bar, which has a height
that is proportional to the sound level coming in, like a meter.

In IM-6, p 22-95, (talking about the sound parameter blocks), they
say that, "if the bufferPtr field contains NIL, then the count,
  milliseconds, and bufferLength fields are ignored, and the recording
  continues indefinitely until you cal SPBStopRecording.  If bufferPtr is
  NIL, the audio data is not saved anywhere; this feature is useful only
  if you want to do something in your interrupt routine and do not want
  to save the audio data." 

It says the data is not saved anywhere, but since I'm not interested in
saving any portion of the input stream (I want the current value only),
is there a location I can look to get the current digitized value?
Do I have to do this through the interrupt routine? 

Since my program is effectively a level meter, I just need the current
values.  Another approach I was thinking about was using a small buffer,
like << 100 bytes.  Since the buffer is small, the value contained in
it would be relatively close the the current value.  Is this feasible?

Anyway, if you have some ideas, please let me know.

thanks,
-Brent

-- 
+-------------------------+
| Brent Burton    N5VMG   |    
| bpb9204@tamsun.tamu.edu |  
+-------------------------+ 
Newsgroups: comp.sys.mac.programmer