HDTenEightyP/NetNews huggingface dataset:
From: knop@dutecag.et.tudelft.nl (Peter Knoppers)
Subject: List of bizarre keyboard combinations ?
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Wed, 29 Jul 1992 14:15:23 GMT

This may be a frequently asked question...

muller_d@elgc.epfl.ch (Daniel Mueller) writes (slightly reformatted):

>On startup, if you hold the keys OPTION+COMMAND+SHIFT+BACKSPACE depressed
>the internal SCSI drive, normally ID=0, is not mounted. This solution is
>easier than to pop the case on your machine. This tips works on all Mac
>with ADB keyboard.

In the few months that I am following this newsgroup I have seen a multitude
of different special key combinations that perform clever functions which
are (obviously) not intended for casual, unwary users. There appear to be
combinations to
- rebuild the desktop file
- not mount internal hard disk (see above)
- etc.

Can someone post a list of these goodies that includes suggestions/restric-
tions/warnings about when (not) to apply them ? Which keyboard types and
ROM versions does a key combination work on ?

If this is indeed a FAQ, please mail it to me, no need to trouble everyone
else with it.

-- 
  _____       __  __  __  __   ____   _____   _____   ______  _____    _____ 
 |  _  \     |  |/  ||  \|  | /    \ |  _  \ |  _  \ |   ___||  _  \  /  ___|
 |   __/ _   |     < |      ||  ||  ||   __/ |   __/ |   >__ |     <  \__  \
 |__|   |_|  |__|\__||__|\__| \____/ |__|    |__|    |______||__|\__||_____/
  Delft University of Technology, The Netherlands, knop@duteca.et.tudelft.nl
Newsgroups: comp.sys.mac.programmer
From: west@turing.toronto.edu (Tom West)
Subject: "rdate" available for Mac?
Organization: CSRI, University of Toronto
Date: 22 Jul 92 16:19:22 GMT

  Is there a Mac version of rdate available?  Our Mac's clocks tend to drift
and this makes close work with NFS somewhat difficult.  (The Mac keeps
deciding that files don't need to be recompiled if they're changed on
the SUN.)

  On our PCs, we just run rdate at bootup to bring the clocks into sync.  Is
there a similar tool for Macs?  PD/Shareware/Commercial versions are all
acceptable.

  If there's another tool that would do the same, I would also be interested
in hearing about it.

  Thanks in advance.  I'll summarize if interest warrants.

-- 

	Tom West		

   west@turing.toronto.edu  or			"Children of the Blood"
tomwest@gpu.utcs.utoronto.ca  or		  -Michelle Sagara
       west@hsa.on.ca
From: jazz@apple.com (David W Brubeck)
Newsgroups: comp.sys.mac.programmer
Subject: Re: where to get Tech Notes?
Date: 29 Jul 92 22:05:29 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <16830B2C6.UC525655@mizzou1.missouri.edu>,
UC525655@mizzou1.missouri.edu (Mark Eaton) wrote:
> 
> Sorry, I know this must've been asked a hundred times, but where can I
> FTP the Apple Developer Tech Notes?
>  
> **********************************************************************
> Mark Eaton                    * These opinions are MINE! and you cant
> UC525655@MIZZOU1.MISSOURI.EDU * have them...    ;)


To get Macintosh Tech Notes and all other kinds of cool development info:

anonymous ftp to ftp.apple.com (130.43.2.3)
login: anonymous
password: your e-mail address
path: /dts/mac/tn


Dave Brubeck
jazz@apple.com
Newsgroups: comp.sys.mac.programmer
Subject: LINT for C on Mac?
From: psweeney@miavx1.acs.muohio.edu
Date: 26 Jul 92 20:39:15 -0500
Organization: Miami University Academic Computer Service"

'LO all,

Is there some sort of LINT Utility for C on the Mac?

Shareware or freeware, preferably.

Any response is welcome.

Peter S.
psweeney@miavx1.acs.muohio.edu
Newsgroups: comp.sys.mac.programmer
From: David Kabal <davidk@citr.ee.mcgill.ca>
Subject: Am I an idle process? Or just lazy?
Organization: CITR / McGill University
X-Useragent: Nuntius v1.1.1d1
Date: Tue, 28 Jul 92 16:38:27 GMT

1. What's the best way of telling if you're an idle machine from a foreground
process? (I thought of counting the number of null evt's in a row)

2. What's the best way of telling if you're an idle machine from a background
process? (Can't count nullEvts.... They're ALL nullEvts)

----------
David Kabal

Canadian Institute for Telecommunications Research
Institut Canadien de Recherche en Telecommunications

You are in an open field west of a big white house with a boarded
front door.
There is a small mailbox here.
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Altering the TRAP dispatch table.
Date: 28 Jul 92 19:52:18 GMT
Organization: U.C. Berkeley Open Computing Facility
NNTP-Posting-Host: tornado.berkeley.edu

In article <9207271916.AA19926@ucbvax.Berkeley.EDU> glalonde@VNET.IBM.COM ("Glen Lalonde") writes:
>I need to change the location that one of the OS Traps goes go.
>IM detains how to do this, but under sys 7 the effect seems to be local
>to that process. Once the application that did the patch exits, the OS Trap
>went back to its old value. Is there any way to make the patch GLOBAL and
>PERSISTENT?
>
>For now I just figured out the location in memory and patched it via
>C. I doubt if the trap table always starts at location $400 in memory
>for all models though.

 ^^^^ I really do hope that's temporary! ^^^^

>I want to trap BlockMove to a version optimized for the 030, my SE has
>a 030 card.

In order for your patch to be active as long as the computer is turned on,
you'll need to write an INIT (er, extension...).  (Is that kinda like
'wetlands' and 'marshes' ?)

Anyway, you're lucky.  Your patch doesn't need to call the system when it's
done.  You just want to totally yank out the existing one.  At startup,
use SetTrapAddress to point to your routine.  This routine should be loaded
as a locked-system heap code resource.  (Not 'CODE', code.)

Be sure to detach the rtesource so you're initextention won't be purged when
the file is closed.  Also remember that BlockMove is register based.

Finally, good luck on beating apple's code.  They write _very tight_ assembly
where it counts.  (Elsewhere they tend to do some rather wierd C++).

-E. Wylie
Newsgroups: comp.sys.mac.programmer
From: randall@theory.lcs.mit.edu (Keith Randall)
Subject: Using an SE as a monitor
Organization: Laboratory for Computer Science, MIT
Distribution: usa
Date: Wed, 29 Jul 1992 20:34:54 GMT

I recently bought a Quadra 700 to replace my aging SE.  I want to use
my old SE as a second monitor when running my Quadra.  Does anyone have
any clue how to do this?  The best method I can think of is to buy a cheap
video card and directly connect a cable from the card to the video connector
INSIDE my SE.  I would like something signifigantly less intrusive.  Any ideas?

--
      -Keith Randall   (keithr@athena.mit.edu, randall@theory.lcs.mit.edu)
Newsgroups: comp.sys.mac.programmer
From: walkerj@math.scarolina.edu (Jim Walker)
Subject: Re: Using PostHighLevelEvents to send low level (KeyPressed) events
Organization: USC  Department of Computer Science
Distribution: na
Date: 24 Jul 92 17:35:37 GMT

To post low-level events, use PPostEvent.  It is documented in IM IV, but
was omitted from the index.  I think it's in the chapter on the OS Event
Manager.  The advantage of PPostEvent over PostEvent is that the former
allows you to set the modifiers, location, and time as well as the message.


--

 -- Jim Walker  USC Dept. of Math.  walkerj@math.scarolina.edu
From: slchambe@athena.mit.edu (Stephen L Chamberlin)
Subject: drawing synchronized to vertical retrace
Organization: Massachusetts Institute of Technology
Date: Wed, 22 Jul 1992 02:23:19 GMT

I'm trying to do some animation, and I want my drawing to be synchronized to
the vertical retrace to avoid strange flicker problems. What's the simplest
way to do this? I tried installing a vbl task that simply increments a global
variable in my app every tick, and then synchronizing my drawing to changes in
this tick counter variable. There may be an easier solution, I don't know. At
any rate, I was unable to get the vbl task to work, because I couldn't seem to
figure out how to use SetUpA5 and RestoreA5 as documented in IM 2. Think C 5.0
complains that they are undefined. Did these traps get nuked somewhere since
IM 2 was written? I believe that I should use SetUpA5 and RestoreA5 instead of
SetUpA4 and RestoreA4 because my vbl task is part of an application, not an
init. I've never done this before, though, so basically I don't have any idea
what I'm doing. Any comments or advice would be appreciated. Thanks!

Steve Chamberlin
slchambe@athena.mit.edu
Newsgroups: comp.sys.mac.programmer
From: felciano@summit.stanford.edu (Ramon M. Felciano)
Subject: Need beta testers for custom MDEF
Organization: DSO, Stanford University
Date: Fri, 31 Jul 92 17:51:56 GMT
Xdisclaimer: No attempt was made to authenticate the sender's name.


Hi!

I've developed a custom MDEF that supports shift- and option- key
equivalents for menus (also SICNs). I would like to get some feedback
before I release it for public consumption.

The MDEF uses the 'extend' and 'condense' flags in the menu item's
style field to indicate option- and shift- key equivalents, so it is
very easy to author using any MENU resource editor. The API
(essentially a replacement for the toolbox MenuKey call) is in Pascal.
The MDEF is System-7 savvy (supports True Grey, Balloon Help, color
menus).

I need people who can give it a quick workout with their application
menus and tell me if everything behaves the way it should. In
particular, I haven't done much testing with popup menus. If you're
interested in testing for me, please send me mail at
felciano@summit.stanford.edu.

The MDEF is called PowerMDEF, and will be freeware.

Ramon
Newsgroups: comp.sys.mac.programmer
From: kishon-amir@CS.YALE.EDU (amir kishon)
Subject: Moving Controls (buttons)
Organization: Yale University Computer Science Dept., New Haven, CT 06520-2158
Date: Fri, 31 Jul 1992 18:50:23 GMT


As the title suggests I would like to move a control (a button) in a modal dialog. 
I tried 'MoveControl' and indeed the button is drawn in the new location BUT 
it no longer responds to mouse clicks. Any help would be much appreciated.

-- 
Amir Kishon                                 ARPA:   kishon-amir@cs.yale.edu
Yale University, Computer Science Dept.             kishon-amir@yale.arpa
P.O.Box 2158 Yale Station                   BITNET: kishon-amir@yalecs.bitnet
New Haven, CT. 06520-2158                   UUCP:   decvax!yale!kishon-amir
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Newsgroups: comp.sys.mac.programmer
Subject: Re: DLOG stuff....
Date: 22 Jul 1992 20:24:24 GMT
Organization: U. C. Berkeley Open Computing Facility
NNTP-Posting-Host: monsoon.berkeley.edu

>In <scott.711532425@mcl> scott@mcl.ucsb.edu (Scott Bronson) writes:
>Do you see the bug?  The above code should read:
>
>           dp = GetNewDialog( 131, nil, (WindowPtr)-1L );
>           if( dp ) {
>               ModalDialog( nil, &i );
>               DisposeDialog( dp );
>           }
>
>
>A rather embarassed...
>
>	- Scott

Don't feel so bad Scott, you would have never been burned anyway.  Page 413 of
Inside Mac has a warning stating:

"If either the dialog template resource or the item list cannot be read, the function result is undefined."

I have never gotten nil as a result from GetNewDialog.  As far as I know, Apple hasn't bothered to fix the call yet.  Paranoid programmers (like myself) put
envelope routines around GetNewDialog and Alert.  The routine reads in both
the DITL and DLOG (or ALRT) resource and makes sure they're non-purgeable.

Then it calls GetNewDialog.  Window centering code that observes the system 7 flags under systm 6 can be inserted here as well.

Anybody out there know why apple likes to make our lives just a bit more interesting by not retuning error codes for the above routines and being so wierd about
GetResource ?  It really pisses me off.

Hat to ramble, but my newsposter won't allow me to type less than I quote.

piss.

-E Wylie
.

Newsgroups: comp.sys.mac.programmer
From: christ@cs.few.eur.nl (Christ Leijtens)
Subject: THINK C 5.0 Code overflow
Summary: THINK C 5.0 error: Code overflow (32K limit).
Keywords: error,C programming, THINK C 5.0, Mac
Organization: Erasmus Universiteit Rotterdam
Date: Mon, 27 Jul 1992 16:08:00 GMT



                              THINK C 5.0                    7-27-92



   Dear Netters,

         As beginners at programming the Macintosh Quadra system  we
   have  a  question about THINK C 5.0. We are porting a system pro-
   grammed in the language C under the  operating  system  UNIX.  We
   have  to port the program into THINK C 5.0 on the Macintosh (Qua-
   dra 900 using System 7).

         The system we are porting is quit big.  When  compiling  we
   get the error message:
   Code overflow

   After reading the THINK C 5.0 User Manual we found out it had  to
   do  with the maximum code-length of one C source-file. The manual
   says:

   You have more than 32K of code or data in one  file.  Break  your
   file up into smaller files.

   We tried to split the files giving the code overflow  errors.  It
   seemed,  not  the  sources  where the real trouble, but the (big)
   header files. We did not succeed at splitting the  files  to  get
   rid of the errors.

         Question: Is there *any* way to get around this  bound  for
   the  code and data, so we can continue porting the program to the
   Macintosh? We would like any information on porting programs from
   other implementation of the C-language to Macintosh THINK C 5.0.

         Thanks in advance. Greetings,



                                         Young Ryu & Christ Leijtens

-- 
	e-mail:	christ@cs.few.eur.nl		  _(.~\  ____
		   christ@sus.eur.nl		 /_|  /_/\/\/\__ 
	                                            > _/\/\/\/\/
						   /_/ \/\/\/\_\
-- 
	e-mail:	christ@cs.few.eur.nl		  _(.~\  ____
		   christ@sus.eur.nl		 /_|  /_/\/\/\__ 
	                                            > _/\/\/\/\/
						   /_/ \/\/\/\_\
Newsgroups: comp.sys.mac.programmer
From: neeri@iis.ethz.ch (Matthias Neeracher)
Subject: Re: Q: DrawString only draws 8 characters of my string
Followup-To: comp.sys.mac.programmer
Organization: Integrated Systems Laboratory, ETH, Zurich
	<Meessen-210792094221@130.104.58.6>
Date: Tue, 21 Jul 1992 12:52:02 GMT

In article <Meessen-210792094221@130.104.58.6> Meessen@slig.ucl.ac.be  (Christophe Meessen) writes:
>In article <NEERI.92Jul20230142@iis.ethz.ch>, neeri@iis.ethz.ch (Matthias
>Neeracher) wrote:
>> 
>> In article <Brp1GF.4Dt@news.cso.uiuc.edu> rpoldrac@s.psych.uiuc.edu (Russ Poldrack) writes:
>> You have 2 alternatives:
>> 
>> - use drawstring instead of DrawString or
>> - Declare your variables as Str31 or Str255 and write your string literals with
>> a "\p" at the beginning, as in "\pHello World"
>> 
>> Personally, I prefer #2, but for small programs, #1 might be easier.
>
>I would suggest to avoid literal strings in a Macintosh program.

Agreed.

>To load and draw constant string from a 'STR ' resource. To access such a
>string you only need the resource ID.

But your code is going to lead to some trouble:

>// declare the string handle
>Handle theString;

Should be "StringHandle theString;"

>// load the string from 'STR ' resource with ID kStringID
>theString = (Handle)GetResource( 'STR ', kStringID );

"(StringHandle)"

>// remove handle from resource map
>DetachResource( theString );

This line is unnecessary.

>// draw the resource
>DrawText( *theString, 0, GetHandleSize( theString ) );

And here the *real* trouble begins:

- 'STR ' resources are stored as handles to *Pascal* strings, which means
  you should use "DrawString(*theString);"
- While it is unnecessary to *detach* the resource, it is *essential* to lock
  it with "HLock((Handle) theString);" before drawing.

>// free's space used by the string
>DisposHandle( theString);

or, if you omit the DetachResource, "ReleaseResource((Handle) theString);"

Matthias

-----
Matthias Neeracher                                   neeri@iis.ethz.ch
   "No, what he didn't like about heroes was that they were usually
    suicidally gloomy when sober and homicidally insane when drunk."
                          -- Terry Pratchett, _The Colour of Magic_
Newsgroups: comp.sys.mac.programmer
From: hd12@ellis.uchicago.edu (hui  dong)
Subject: Sexy sound wanted!
Reply-To: hd12@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Fri, 31 Jul 1992 18:24:38 GMT

Hi, I am writing an application using some sexy sounds. But unfortunately
the "sexy Hi" and "Oh, my God" won't work under sys7, and I don't have
sound input device even if I get a girl to do that. So could someone send
me collection of sexy sounds or make some for me? Thanks a lot!!!
(I did go through sumex, but didn't find what I need there.)



Newsgroups: comp.sys.mac.programmer
From: mld@kepler.unh.edu (Michael L Dupuis)
Subject: Attention all Shareware authors
Organization: University of New Hampshire  -  Durham, NH
Distribution: comp.sys.mac.misc, comp.sys.mac.programmer
Date: Wed, 22 Jul 1992 12:04:10 GMT

I'm not sure if this has been discussed before, but I am thinking about
doing some shareware development in the future and I was wondering:

How many actual payments received constitutes a successful program?

How successful have current shareware programs been?

How is the response as far as payments and feedback from users?

What's the best way to actually get people to pay for what they decide to 
keep?  Crippled Demos?  Honor System?  Guilt?

What percentage of copies in use are not payed for(estimate)?

------------------------------------------------------------
If I do develop, the money won't be the primary purpose, but I was wondering
if it would be worth it to try and get some payment for the development.

Please email me and I'll summarize.

Thanks.
-- 
/*===================================*/
/* Michael L. Dupuis                 */
/* University of New Hampshire       */
/* mld@kepler.unh.edu                */
/*===================================*/
Newsgroups: comp.sys.mac.programmer
From: peterbak@microsoft.com (Peter Bako)
Subject: ResEdit TMPL's for Ballon Help
Date: 27 Jul 92 19:33:07 GMT
Organization: Microsoft Corp.


Where might I be able to find ResEdit TMPL's for System 7's
Ballon Help resources?  Or if that does not exist, where could
I get more help (then what's in IM-VI) on creating ballong help
for my app(s)?

Thanks,

Peter Bako

-- 
(*)-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-\/-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+(*)
(   UUCP:         peterbak@microsoft  ||   Is this all that I am?  Is there   )
(   CompuServe:   71170,1426          ||   nothing more?    - V'ger           )
(*)-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-/\-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+(*)
Newsgroups: comp.sys.mac.programmer
From: Michael Brennan <mikeb@sam.amgen.com>
Subject: Re: SCCS / RCS for Mac
Organization: Amgen
X-Useragent: Nuntius v1.1
Date: Thu, 23 Jul 1992 23:38:51 GMT

In article <1992Jul15.232427.545542@locus.com> Howard Moskovitz,
howard@locus.com writes:
>
I've seen a sharware product called Revisionist that seems to work well. 
I haven't used it regularly, though.  Just tried it once.  There is also
a Mac port of GNU RCS that I've seen on some online services.  I believe
it's a pretty vanilla port using Think C's console environment.

Nothing integrates well with Think C, though.  Think C is a closed
environment.  You'd have to use it completely outside of the Think
environment.
Newsgroups: comp.sys.mac.programmer
From: srao@quads.uchicago.edu (Shanta Rao)
Subject: Icon creation
Reply-To: srao@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Thu, 30 Jul 1992 02:41:48 GMT

I am unable to turn an application into Icon...
tried the following....
Created resources ICN#, FREF, BNDL & Signature for application using,
ResEdit, then I rebuilt the desktop.. , but the APPL is not changing into
that icon...,  am I missing something? Any suggestions ???  

ThanX
bs/-
Pl. reply by e-mail if possible.

srao@quads.uchicago.edu
From: sharvy@reed.edu (V Headshape)
Newsgroups: comp.sys.mac.programmer
Subject: Hypercard & OOP
Date: 23 Jul 92 07:42:04 GMT
Article-I.D.: reed.1992Jul23.074204.6270
Organization: Reed College, Portland, Oregon

I recently read a book on object-oriented programming (which I have
never tried) , and was struck by the correspondences to hyperCard.  It
seems like backgrounds are analogous to abstract classes in OOP, while
cards function as specific instances of a class.  So, for instance,
you could define generally an object (say, a house) in a background script,
and then the cards of that background would be particular instances of that
object, which would "inherit" the general characteristics defined at the
background level; the card script would then define the particular
properties of the particular object that the card represented.

Unfortunately, backgrounds cannot contain other backgrounds, and cards cannot
contain other cards, so the inheritance is limited to single level, which
leaves us with a rather toy-like version of true OOP.  I hope future versions
of hyperCard will develop the OOP potential of hyperCard, or that some
implementation of OOP for the Mac in the user-friendly, GUI, spirit of
hyperCard will be developed.  Seems like an exciting area.

-- 
Liberate the Weirdoes and You Liberate the Squares
From: ldh@svl.cdc.com (Lawrence D. Hare)
Newsgroups: comp.sys.mac.programmer
Subject: File type sorting in MPW
Date: 28 Jul 92 23:07:54 GMT
Organization: Control Data Systems
X-UserAgent: Nuntius v1.1.1d1

MPW uses OBJ and TEXT types for files it creates and uses. But if I wish
to sort the files in a window I am out of luck. I can view by kind, but
the only kind is MPW document. I can 'Find File' all files ending in '.o'
and view them all at once, then 'label' them, then view by label. This
only works in System 7 and is clumsy.

The MPW SetFile could also have a 'label' option, but it doesn't.

In short - I want to be able to group TEXT files and OBJ files for
selection by lasso, or selection box, or whatever it is called.

Any suggestions?
--
Lawrence D. Hare       Control Data - Silicon Valley Operations
Consultant             Voice: (408) 496 4339 - C/N [234] 4339
ldh@svl.cdc.com        Mail: SVLa60  FAX: (408) 496-4106
From: gurgle@netcom.com (Pete Gontier)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ResEdit TMPL's for Ballon Help
Date: 28 Jul 92 17:02:44 GMT
Organization: cellular

peterbak@microsoft.com (Peter Bako) writes:

>Where might I be able to find ResEdit TMPL's for System 7's
>Ballon Help resources?

Forget it. ResEdit's TMPL facility is too dain bramaged.

>Or if that does not exist, where could
>I get more help (then what's in IM-VI) on creating ballong help
>for my app(s)?

Resorcerer has a perfectly usable and stable TMPL-type editor for
balloon help. You could also try Apple's BalloonWriter; it's more
graphical, but it crashes every other half second. See the FAQ for
more info on Resorcerer and on APDA, the source for BalloonWriter.
-- 
 Pete Gontier // EC Technology // gurgle@netcom.com
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Acessing the TRAP word
Date: 31 Jul 1992 06:34:15 GMT
Organization: U.C. Berkeley Open Computing Facility
NNTP-Posting-Host: tornado.berkeley.edu
Keywords: trap

In article <bscott.712557800@sbphy.physics.ucsb.edu> bscott@sbphy.physics.ucsb.edu ( Brian Scott) writes:
>
>Hi,
>
>When you overload a trap, how can you access the trap word
>in the routine that handles the trap.  I am overloading the 
>PBRead routine.  I need to check whether the ASYNC bit of
>the trap word has been set in my routine that handles PBRead.
>Is this possible?

Check the registers using macsbug or tmon on entry to your patch.  I think
D2 has the trap word.  Not sure how documented this is, it might not be at all,
but it has worked for me under 2 system versions and all macs.  (Well not the
pre-plus ones, but that hardly had anything to do with traps).

E. Wylie

----
Increasing message length so my machine will actually post it..
.
.
.
... hate this thing.

Newsgroups: comp.sys.mac.programmer