HDTenEightyP/NetNews huggingface dataset:
From: Quinn <quinn@cs.uwa.edu.au>
Subject: Re: moof?
X-Xxdate: Thu, 24 Dec 92 01: 47:50 GMT
Organization: The University of Western Australia
X-Useragent: Nuntius v1.1.1d13
Date: Thu, 24 Dec 1992 01:49:06 GMT

>moof?

foom!

Quinn
From: soetji+@G.GP.CS.CMU.EDU (Soetjianto)
Newsgroups: comp.sys.mac.programmer
Subject: sample code for listbox?
Date: 23 Dec 92 16:32:13 GMT
Article-I.D.: cs.Bzq0Lq.6KB.2
Organization: School of Computer Science, Carnegie Mellon
Originator: soetji@G.GP.CS.CMU.EDU

Does anyone have a sample code for doing 
a scrolling listbox?

thanks very much
Soetji

p.s. Have a good Christmas and New Year everyone!
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: Patrick_J._Toole@uu0570.foggybottom.com
Organization: Foggy Bottom / Washington, D.C.
Date: Wed, 23 Dec 1992 19:35:36 EST
Subject: Re: Think P and Menu

ResEdit has many errors, menus being one of them. I tried calling ADPA, but
they won't listen. 

To correct what is going on, when you change the resource ID of a menu, you
must open the same resource using it's template and change the ID number
there, too. It's a pretty dumb bug, but oh well!

-Pat

P.S. I did not write the following message, it was put there by the bbs I'm
using:
Foggy Bottom - your FirstClass Mac connection in Washington, DC
From: flash@austin.lockheed.com (James W. Melton)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Uniquely identifying a Mac? How?
Date: 29 Dec 92 07:06:30 GMT
Organization: "Lockheed Austin Division, 6800 Burleson Rd, Austin, TX 78744

In article <1hb3o8INNt5h@calvin.NYU.EDU> roy@mchip00.med.nyu.edu (Roy Smith) writes:
>
>	Any box that comes with a built-in ethernet port has the moral
>equivalent of a machine-readable serial number -- the ethernet 6-byte
>hardware address.

I have bad news for you: The ethernet address is set in software.
The high-order portion of the address is supposed to reflect the
manufacturer, and the low-order portion is supposed to be machine
unique (a serial number), but this is not accomplished in hardware
NECESSARILY.

There is NO fool-proof method of machine identification short of
the ubiquitous "dongle" method. 

"Build a system even a fool can use, and only a fool will use it."
Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: HELP! INIT and patching probs
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Wed, 30 Dec 1992 22:33:54 GMT

In article <C03AHq.9LF@news.cso.uiuc.edu>, cole@alexia.lis.uiuc.edu (Sandra
Stewart-Cole) wrote:
> 
> Is there any DOCUMENTED and SUPPORTED way to
> get enough info about a file solely from the fact that it is the current 
> Resource file that I can then regain a path to it after I have been cut loose 
> from it  WITHOUT relying on System 7 features? (i.e. get the info in the INIT,
> and store it for later use from a global trap patch)
>

Execute this at INIT time:

	FSSpec me;
	OSErr err;
	FCBPBRec		pb;

	pb.ioCompletion = nil;
	pb.ioNamePtr = me.name;
	pb.ioVRefNum = 0;
	pb.ioRefNum = CurResFile();
	pb.ioFCBIndx = 0;

	err = PBGetFCBInfoSync(&pb);

	me.vRefNum = pb.ioFCBVRefNum;
	me.parID = pb.ioFCBParID;

I usually use THINK C, which makes the storage of the results in a global
variable really simple. If you use MPW, then you can use the techniques
shown in Technote #256 (OK, fine, so it has a new name, now) or "develop
#12" to implement global variables. Or use a little assembly.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: I will kill or die for this tool
Date: 21 Dec 92 10:22:33 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <1992Dec21.043540.20183@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:

>Does anything like this exist already?  Can it be done with a macro
>(break on these a-traps, check the state byte, continue iff the locked
>bit is set)?  Does anyone with lots of free time want to write it?
>Or should I tack this onto my Things I'd Really Like To Write list?

When you have problems like these; try patching HLock etc
from within your application to check your handles. Patching
within an application only affects that application, and the
patches are really easy to debug, too, since you can use the
source debugger.

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.
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Uniquely identifying a Mac? How?
Date: 22 Dec 92 06:36:00 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <peter-211292133304@rocky.curtin.edu.au>,
peter@cujo.curtin.edu.au (Peter N Lewis) wrote:
> 
> Isn't it clear why its not done?  If Apple put a serial number on the 
> machine, and people successfully copy protect their programs, the immediate
> consequence of this is that the value of the machine drops a great deal.
> All those users can't pirate the programs they want, so they stop buying
> the machines, and buy other machines where they can get the programs 
> they want for free.  This may not be moral, but I haven't found much
> connection between morality and reality.  Besides, its not Apple's 
> problem if people pirate (non-apple) software, quite the opposite,
> Apple benifits by this.

I agree that piracy is one of the things that made personal computers as
popular as they are.  Almost every _person_ I know who bought a machine for
themselves busted their bank on the machine and ran on pirated software
until they could afford to buy their software.  I personally have used many
pirated programs in order to evaluate them before buying.  It's how I got
to know so much about the machine and the software.

PCs sell because you can pirate when you need to.  Getting the work done is
the number one priority, isn't it?  ;)

Of course, I must point out that piracy is not a valid long term solution,
for all the obvious reasons.  You don't buy, we don't write.  Piracy as a
full-time policy is a self defeating proposition.  You've got to buy so
that the market works.

Jon

Squeeking for myself again and trying damn hard to fill my mouth with feet.
Newsgroups: comp.sys.mac.programmer
From: bmor@kimbark.uchicago.edu (Brad Morris)
Subject: Postscript download code?
Reply-To: bmor@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Thu, 24 Dec 1992 15:53:08 GMT

Anyone out there know where I can get simple code to download a postscript
program to a printer?  Thanks much!

Brad Morris
b-morris@uchicago.edu
From: rick@akbar.cc.utexas.edu (Rick Watson)
Newsgroups: comp.sys.mac.programmer
Subject: Forcing a process switch
Date: 30 Dec 1992 06:04:42 GMT
Organization: University of Texas at Austin
Distribution: world
NNTP-Posting-Host: akbar.cc.utexas.edu
Keywords: process-manager, tooxbox-managers

I have a trap patch that needs to invoke a modal dialog. Yes, I know
this sounds strange, but please ignore that for now. The patch may be
executed by any application at any time, including before the app has
initialized any of the toolbox managers -- I won't know
what state the app is in.

My current implementation uses the process manager to launch another
application to do the user interaction. I execute a GetNextEvent
loop with a mask selecting no events to force the process switch.
The launch works fine. Unfortunately, you can't call GetNextEvent
until some of the toolbox managers have been initialized.
Is there a workaround? I discovered that I could workaround the
problem by setting the background only bit in the first app's
size resource, but this is not an option for the case I'm trying
to solve. Is there any way to make the current process a bkgnd only
process for a short while?

Alternatively, is there any way to detect which toolbox managers
have been initialized? I could at least avoid crashing by not
executing the patch code in the case where the app is in
the wrong state.

Rick Watson
The University of Texas Computation Center, Networking Services, 512/471-3241
  r.watson@utexas.edu
From: zz1bb@impending.ucsd.edu (Barry Brown)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to write After Dark Modules?
Keywords: DARK!
Date: 21 Dec 92 17:10:03 GMT
Distribution: na

In <1h080iINNdk6@terminator.rs.itd.umich.edu> myke@terminator.rs.itd.umich.edu (Michael Dautermann) writes:

>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.

When I bought After Dark roughly two years ago, the manual included a whole
section on writing your own screen savers.  The disk even included sample
source code and some libraries.  I also obtained the CAfterDark package and
determined that knowing the information contained in the manual was required
to understand what was going on in the class library.

I just got Star Trek: The Screen Saver (the reg. card is in the mail!  I
will be a much happier person when it gets there :-) and it didn't include
stuff for programming.

Does Berkeley Systems still include programming guidelines in its regular 
package?

-- 
Barry E. Brown        --        \  UCSD Instructional Computing Center
bebrown@ucsd.{edu,uucp,bitnet}   \   Anime Stuff FTP Server administrator
Somewhere in San Diego, CA.....   \    (ftp network.ucsd.edu [132.239.254.203])
"Stimpy, sometimes your wealth of ignorance astounds me." -- Ren
From: csk@po.CWRU.Edu (Carl S. Kashuk)
Newsgroups: comp.sys.mac.programmer
Subject: easy serial port programming
Date: 28 Dec 1992 02:32:14 GMT
Organization: Case Western Reserve University, Cleveland, Ohio (USA)
NNTP-Posting-Host: slc12.ins.cwru.edu


Could someone direct me to or send me some examples on simple
serial port programming? I have Inside Mac, but it doesnt mean
anything to me unless I can look through a functioning example
program... maybe something hidden in a documentation area of 
an FTP site or something??
-Carl 
-- 
It's easier to put on slippers than to carpet the whole world
                        -Stuart Smalley (Al Franken)
From: aleskine@cs.hut.fi (Arto Leskinen)
Newsgroups: comp.sys.mac.programmer
Subject: string.h and scrolling
Date: 3 Jan 93 18:56:57 GMT
Distribution: comp.sys.mac.programmer
Organization: Helsinki University of Technology, Finland

Does anyone know if strcpy, strnpbrk, memmove move memory in think c.
Is there any information whether think c 5 funktions move memory.

I should do scrolling of my own, without TE. I planned to copy screebits
suitable amout upwards and draw only new lines. Anyone has any suggestions
hov to do efficient text scrolling. What is easiest way to move contest of
an rectangle into another position.

Arto Leskinen
aleskine@cs.hut.fi
From: davecole@cie.uoregon.edu (Dave Cole)
Newsgroups: comp.sys.mac.programmer
Subject: Think P and Menu
Date: 23 Dec 1992 18:18:43 GMT
Organization: University of Oregon Network Services
NNTP-Posting-Host: cie.uoregon.edu
X-Newsreader: Tin 1.1 PL5

  I too am just starting in programming the Mac using Think Pascal.  I had
almost the exact same problem.  The resource file looked fine, the software
looked fine, etc...  The problem I had was that somehow the sub menu
resource had become corrupted.  When looking at it under RESEDIT, it looked
fine, when verifying it under RESEDIT it said it was fine.  Took three days
for me to finally decided to rebuild the MENU resource from scratch.  Program
took off just fine after that with no changes of any kind...  I still have no
idea what was wrong with the resource, but rebuilding it from scratch 
corrected it.
 
Hope that helps,

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

==Astrophotography Forever==

Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Why SUB when you can CLR?
Organization: Kalamazoo College
Date: Sun, 3 Jan 1993 20:53:54 GMT

I've seen a lot of 680x0 code that clears registers by subtracting
them from themselves, i.e.
   SUB.L  D3, D3
instead of
   CLR.L  D3
 
Even my C compiler produces code like this;  there must be a
good reason.  But I can't figure out what it is.  According to
my 68000 book, "SUB.L <ea>, Rx" takes six cycles, or "eight, if
the effective address mode is register direct," which it is
in the example.  So eight;  that's for either address or data
registers.  "CLR.L Rx" takes six.

And they're both one-word instructions.
 
So why not use CLR?  This doesn't have anything to do with
incredibly obscure 68020+ pipelining timings, does it?
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "This sounds like a semantico-psychological backwardization of the
  real world image."   - Dave Bloom (bloomda@ctrvax.vanderbilt.edu)
From: s_titz@ira.uka.de (Olaf Titz)
Newsgroups: comp.sys.mac.programmer
Subject: An Euphemism (was Re: Uniquely identifying a Mac? How?)
Date: 28 Dec 1992 15:09:12 GMT
Organization: Fachschaft math/inf, Uni Karlsruhe, FRG
NNTP-Posting-Host: irau31.ira.uka.de

In article <bobert.725145303@godzilla> bobert@informix.com (Robert Murphy) writes:

>...
>the program on one machine at a time.  Second, and more of interest to
>pirates, is the possibility of duplicating the PROM chips.  I'm sure there
>would be ways to prevent this, though, such as adding some extra functionality
>to the PROM chips so that they do more than act as PROMs, and so you
>couldn't just go out and buy blank PROMs and put a serial number in them
>and expect them to work.

Read: a builtin dongle. And, as you state below, you have experience
with these things, you know that it is only a question of time when
these additional functionalities will be cracked and duplicated too.
Especially when the device is standardized as the built-in scheme
would require.

>...
>it can find out if the dongle is attached to the computer it's running on,
>and refuse to execute if the dongle is missing.  You can copy such programs
>onto 4,000,000 floppies if you want, but they'll only RUN on a computer with
>the correct dongle attached.  That's why it's called "execution control",
>not "copy protection".)  By the way, none of these programs have been the

I think the incentive for renaming this scheme was that "copy
protection" sounds bad in many ears now. Many people refuse to write
the words without quotation marks around them, as they know that this
kind of "protection" protects nothing and nobody.

>sort of thing college students would likely want to pirate; rather, they've
>been vertical market applications in the $3,000-$15,000 price range that
>are aimed at corporations with enough money that they shouldn't need to
>pirate software - but nonetheless, some of them have tried...

The other way around: a company that pays thousands of dollars for one
piece of software doesn't expect to be treated like a thief in the
first place, and doesn't want to get another item for their dongle
collection - another piece of incompatibility with something else that
the developers didn't know. The best piracy protection is IMHO good
documentation, support and reasonable pricing.

Olaf

-- 
| Olaf Titz - comp.sc.student  |   o     | uknf@dkauni2.bitnet | old address |
| univ. of karlsruhe - germany |  _>\ _  | s_titz@ira.uka.de   | is still    |
| +49-721-60439                | (_)<(_) | praetorius@irc      | valid       |
  "My heart is human - my blood is boiling - my brain IBM" - Mr. Roboto
From: jpugh@apple.com (Jon Pugh)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Macs closed, what me worry?
Date: 22 Dec 92 06:49:03 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <ksand-211292193108@wintermute.apple.com>, ksand@apple.com (Kent
Sandvik ) wrote:
> 
> In article <1992Dec18.065911.7493@netcom.com>, nagle@netcom.com (John
> Nagle) wrote:
> >       It's because if you try to build a machine that runs Mac software,
> > Apple sues you.
> 
> :-). That's news to me. I'm sure it's news to Outbound as well.

Sorry.  Outbound ain't reading the news no more.  They've gone broke. 
Anyone hear about a fire sale?

It's tough to fight a zillion Powerbooks.  That works so much better than
lawsuits any way.  After all, look what our lawsuit did to Microsoft.  Boy
are they sorry!  ;)

I still contend that the main reason Apple sues people is to keep the
lawyers from telling us how actionable our secret about boxes are.  ;)

Jon
Xref: sparky comp.sys.mac.programmer:20522 comp.os.ms-windows.programmer.tools:1846
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
Subject: Re: porting windows app to mac
Date: 1 Jan 93 22:48:09 GMT
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <1993Jan1.153552.25014@netcom.com> (comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer), jimlynch@netcom.com (Jim Lynch) writes:
>  
> Unfortunately, the makers of GNU C++ have a disagreement with apple because
> apple wants to create legislation which ultimately affects your and my freedom
                 ^^^^^^^^^^^^^^^^^^
> to write any program any way we want.

Apple does not want to CREATE LEGISLATION, they simple want to defent
their intellectual property rights >as they see them<.  Others see
IP rights differently - including some who don't agree there is any
such thing.

Personally, I'm worry more about the weird ideas coming from Stallman
and friends than I do about Apple.

--  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
From: bobert@informix.com (Robert Murphy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Uniquely identifying a Mac? How?
Date: 22 Dec 92 20:33:03 GMT
Organization: Informix Software, Inc.

peter@cujo.curtin.edu.au (Peter N Lewis) writes:
>There have actually been a few examples of hardware with serial numbers
>on them, but they've mostly gone out of business now...

Actually, most of the dedicated Unix workstations out there - including
Suns, NeXTs, and IBM RS/6000's - have serial numbers in a PROM on the
motherboard.  (We're not talking Macs running A/UX or PClones running
SCO Unix here.)  For more information, log into your nearest such
workstation and type "man hostid" at the shell command prompt.

Regards,
Bob Murphy
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: David_B._Lamkins@fourd.com
Organization: 4th Dimension BBS
Date: Thu, 24 Dec 1992 15:24:30 EST
Subject: Re: MAC development environments

> Is there a development system available for the Mac that
> uses its DTP and WYSIWYG capabilities?
> I think that this would be a great help to those of use who are
> more visually oriented.
> 
> Some of my ideas would include:
> -bolding & italizing & coloring of KEYWORDS and IDENTIFIERS
> -expanding and contracting (outline type) procedures & functions
> -automatic indexing of variables etc.
> -any other helps that could be added to enhance the environment

Ted - Macintosh Common LISP allows you to extend the editor to do many of
the things you mention. Several users have done so, and have released their
code for general use.

Dave
********************************************************************
System: fourd.com                                Phone: 617-494-0565
Cute quote:  Being a computer means never having to say you're sorry
********************************************************************

Newsgroups: comp.sys.mac.programmer
From: rdd@cactus.org (Robert Dorsett)
Subject: Seeking a cheap, functional assembler
Organization: Capital Area Central Texas UNIX Society, Austin, Tx
Date: Sun, 27 Dec 1992 13:08:37 GMT

I'm looking for an inexpensive assembler.  I face the prospect of having
to optimize a lot of THINK C code into assembly, and don't want to use that
compiler's assembly constructs to develop and test the code.

I don't want to invest in MPW.  What I'd really like would be a working,
modern version of MDS: has that been kept up to date at all?  Who's selling 
it, these days?

Please reply in email: I'll summarize.



---
Robert Dorsett
rdd@cactus.org
...cs.utexas.edu!cactus.org!rdd
From: jellinek@rutabaga.adoc.xerox.com (Herb Jellinek)
Newsgroups: comp.sys.mac.programmer
Subject: Async sound input: interruptRoutine
Date: 29 Dec 92 19:15:34 GMT
Distribution: comp
Organization: Xerox PARC, Palo Alto, CA

I'm writing an application that does asynchronous sound input, and I
want to use the optional interruptRoutine feature of input sound
parameter blocks.  I'm using Think C 5.0.4.

I've looked at the description of the interruptRoutine feature in
Inside Mac VI, and I think I'm doing things right, but my machine
hangs in the interrupt routine whenever it does anything other than
save and restore A5.  From looking at things with MacsBug, I see that
the value in A0 is wrong, accounting for the bad things that follow.
I've been looking for code examples, to no avail: the otherwise
excellent Async Sound Helper doesn't use this feature.

Here's the current version of the interrupt routine:

- - - - - - - - - - - - - - - - - - - - - - - - - - 
Boolean interrupted = false;

#pragma parameter recordingInterrupt(__a0,__a1,__d0,__d1)
void recordingInterrupt(SPBPtr spb, Ptr samples, long peak,
			Size byteCount) {
  long oldA5 = SetA5(spb->userLong);
  
  // interrupted = true;
  
  SetA5(oldA5);
}

...

// (Fragmentary) code in init routine:
  mySPB.userLong = SetCurrentA5();
  mySPB.interruptRoutine = recordingInterrupt;

// Execute:
  myErr = SPBRecord(&mySPB, true);

- - - - - - - - - - - - - - - - - - - - - - - - - - 

Thanks for any and all help you can provide.

		Herb
Newsgroups: comp.sys.mac.programmer
From: fixer@faxcsl.dcrt.nih.gov (Chris Feelin' Groovy Tate)
Subject: Re: Drag & Drop on an alias?  What's missing?
Reply-To: fixer@faxcsl.dcrt.nih.gov
Organization: Computer Systems Laboratory, DCRT, NIH
Distribution: comp
Date: Mon, 21 Dec 1992 18:00:15 GMT

In article <jpugh-191292124255@kip2-42.apple.com>, jpugh@apple.com (Jon Pugh) writes:
>In article <HARDIN.92Dec15221431@dino.mcc.com>, hardin@dino.mcc.com (John
>Hardin) wrote:
>> 
>> I know drag & drop on an alias works.  I use AliasDirector,
>> StuffitExpander, and the System Folder this way ALL the time.  In
>> creating my OWN app, however, I can't get the Finder to highlight an
>> *alias* (to my app) when I drag suitable files over it.  (The Finder
>> *does* highlight my app when I drag suitable files over it.  Just
>> *not* the alias.)  What gives?
>
>I've seen what I call a bug wherein drag and drop fails on aliases to
>programs on different volumes (i.e. your program is on volB and the alias
>is on the desktop of volA).  This happens with a lot of the alias making
>programs.  You should do Make Alias in the Finder and move that alias to
>the desktop.  That always works for me.

I've had this happen even with aliases created by the Finder's "Make Alias"
menu command; it's not unique to some alias-creation tools.  So far I've only
seen it under System 7.0.1*, so I don't know whether it's been fixed in 7.1
(though it's doubtful).

Creating a new alias for the app seems to clear up the problem.  Rebuilding the
desktop may have some effect, too, though don't quote me on that.  :-)

------------------------------------------------------------------------------
Christopher Tate             | The Leadfoot Collection, Continued:
Management Systems Designers |     * Texas Twister (Little Feat)
                             |     * Shooting Star (Bad Company) 
fixer@faxcsl.dcrt.nih.gov    |     * Layla (Derek and the Dominoes)
Newsgroups: comp.sys.mac.programmer