HDTenEightyP/NetNews huggingface dataset:
From: ross@bnr.ca (Ross Brown)
Subject: Re: Blobs for passwords, a la AppleShare login
Organization: Bell-Northern Research
Date: Fri, 4 Sep 92 14:45:44 GMT

In article <1992Sep2.193059.17741@leland.Stanford.EDU> cheshire@cs.stanford.edu
(Stuart Cheshire) writes:
>Thanks to everyone who replied. The concensus is clearly to use a Dialog
>Filter routine to trap KeyDown events for that field, record the
>character elsewhere, and pass on an opt-8 character to be displayed.
>[stuff deleted]

Better still, be internationally correct and use the Script Manager's
tokenCenterDot token, which in smRoman is <Option-8> as you describe.  See the
Script Manager chapter in IM VI for more details.

==============================================================================
Ross Brown, Dept. 7C22  < Bell-Northern Research     >  Just the facts, ma'am.
Advisor, Telemgmt Svcs  < P. O. Box 3511, Station C  >  We don't care whose
ross@bnr.ca             < Ottawa, ON, Canada K1Y 4H7 >  opinions yours aren't.
==============================================================================

Newsgroups: comp.sys.mac.programmer
From: 881571s@dragon.acadiau.ca (Arnold Spence)
Subject: MacApp(Think Pascal) DoIdle question.
Organization: Acadia University
Date: Tue, 1 Sep 1992 17:48:35 GMT

I am using MacApp 2.0 with Think Pascal 4.0. I am working on a program to
move pict resources around in a window. I tried using TPicture and managed to
get one picture moving around but I would like to have more than one. When I
create the view layout with view edit I can only specify one pict as the
target and therefore only one receives its DoIdle method. Is there and easy
way to get all of them to receive DoIdle? Another way to do it I figure is to
use the windows list of picture objects and send them their move methods 
directly. This is giving me problems however because I can't seem to get
TList.Each to work. (basically I don't know how to call it, can anyone give
me an example of the syntax required to use it?). Also I find that when I
used DoIdle to animate one picture it didn't move very fast (I have a MacIIfx).
Would there be a better way to implement a procedure that needs to be called
as frequently as possible? The animation stopped noticably following a keypress
or mouse click and sometimes because of some unseen system activity. If anyone
is experienced in this type of programming please let me know if I'm on the 
right track. Thank you for your time...

if end_of_message then 
writeln('Arnold B. Spence : arnold.spence@dragon.acadiau.ca');

Newsgroups: comp.sys.mac.programmer
From: sold@kit.uni-kl.de (Christoph Sold)
Subject: Re: Zortech C++  - Comments? -
Summary: Comments on Zortech C++ ?
Keywords: Zortech C++
Organization: Universitaet Kaiserslautern
Date: Sat, 29 Aug 1992 16:03:01 GMT

In article <1992Aug26.125216.164404@dstos3.dsto.gov.au> back@itd.dsto.gov.au writes:

>
>Has anyone used the Zortech C++ compiler for the mac. I'm thinking of buying it and would like to get a little user feedback.
>Thanks.
>
>Andrew
>

Some colleagues did. After trying MacApp 3.0, they're back to Apple's not-so-
good C++ praeprocessor because of subtle bugs they're never able to discover 
completely. If we would not use MacApp, they'll use Zortech, but our policy 
to do everything with MacApp forces them to use Apples tools, they say.
-Christoph

Christoph P. Sold                   CATS Software GmbH
                                    Mussbacher Landstr.2
sold@kit.uni-kl.de                  W-6730 Neustadt (Weinstrasse)
ger.xse0035@applelink.apple.com     Germany

"If an apple is fun, what the heck is an appletree?"
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to save a PICT file?
From: jmatthews@desire.wright.edu
Date: 26 Aug 92 00:07:49 EST
Distribution: usa
Organization: Wright State University 

In article <5hnyk1d@rpi.edu>, raffuj@aix.rpi.edu (Jose A. Raffucci) writes:
> I've gotten to the point where the file is created, and I have
> a handle to a PICT, but I'm really not sure about the header, 
> and just what parameters to use with FSWrite().

  procedure DoSavePICT (picHdl: PicHandle);
    var
      reply: SFReply;
      getDlgTH: DialogTHndl;
      r: Rect;
      index, fRefNum: Integer;
      count: LongInt;
      buffer: array[0..127] of LongInt;

  begin
    getDlgTH := DialogTHndl(GetResource('DLOG', putDlgID));
    r := getDlgTH^^.boundsRect;
    CenterRect(ScreenRect, r);
    SFPutFile(r.topLeft, ResStr(savePictID), '', nil, reply);
    if reply.good then
      begin
        for index := 0 to 127 do {empty 512 byte PICT header}
          buffer[index] := 0;
        ErrorCheck(FSDelete(reply.fName, reply.vRefNum));
        ErrCheck(Create(reply.fName, reply.vRefNum, 'Bozo', 'PICT'));
        ErrCheck(FSOpen(reply.fName, reply.vRefNum, fRefNum));
        count := SizeOf(buffer);
        ErrCheck(FSWrite(fRefNum, count, @buffer));
        count := GetHandleSize(Handle(picHdl));
        ErrCheck(FSWrite(fRefNum, count, Ptr(picHdl^)));
        ErrCheck(FSCLose(fRefNum));
      end
  end;

CenterRect, ScreenRect, ResStr and ErrCheck are auxilliary routines.
'Bozo' is the creator for Giffer documents.

Hope this helps.
o----------------------------------------------------------------------------o
| John B. Matthews, jmatthews@desire.wright.edu, disclaimer:= myViews <> WSU |
| "I'm a commensal .sig virus, indistinguishable from an ordinary organelle."|
o----------------------------------------------------------------------------o
Xref: sparky comp.sys.mac.programmer:14995 comp.sys.mac.system:11608
From: Roger.W.Brown@dartmouth.edu (Roger W. Brown)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.system
Subject: Does anyone recognize _Jackson?
Date: 4 Sep 92 13:38:44 GMT
Organization: Dartmouth College, Hanover, NH
X-Posted-From: InterNews1.0a5@newshost.dartmouth.edu

I frequently see this symbol in MacsBug when my Quadra crashes:
_Jackson. I haven't looked through the Tech Notes yet. I wondered if
anyone knows what it is. It does something with color icons. I just
want to know that it isn't a virus, and maybe that it is from an
extension that may be causing trouble.

--------------------------------------------------------------------
Roger Brown                                roger.brown@dartmouth.edu
Software Development
Kiewit Computation Center, Dartmouth College, Hanover, NH
From: triantos@acsu.buffalo.edu (Nick B Triantos)
Newsgroups: comp.sys.mac.programmer
Subject: How to get on the THINK C source mailing list
Date: 27 Aug 92 13:55:31 GMT
Distribution: comp
Organization: The University at Buffalo
Originator: triantos@autarch.acsu.buffalo.edu

Hello.

I recently downloaded a file from AOL called StandardGetFolder.c, which talks
about an internet THINK C mailing list.  How can I subscribe?

Thanks,
-Nick
--
Nick Triantos    internet: triantos@acsu.buffalo.edu
                 AOL:      NickT1
"Scientists tell us that the fastest animal on earth, with a top speed of
120 ft/sec, is a cow that has been dropped out of a helicopter." - Dave Barry
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: Still trying to get this stupid sound stuff to work...
Organization: Kalamazoo College
Date: Thu, 27 Aug 1992 16:17:27 GMT

danny@utkux1.utk.edu (Danny W. McCampbell) writes:
>What is happening now is the sound sound starts playing,
>the dialog comes up, but you cannot do anything until the sound 
>finishes.
>
> [Silly Modula-2-ish header stuff removed :-]
>
> begin
>  mySndChan := nil;
>  mySndHandle := GetResource('snd ', soundID);
>  if mySndHandle <> nil then
>   begin
>    err := SndPlay(mySndChan, mySndHandle, kAsync);
>    if err <> noErr then
>     ExitToShell;
>   end;
> end;

If the Sound Manager allocates your memory for you, which it is doing
since you passed it a reference to a NULL SndChannelPtr, it won't let
you play async.  Them's the breaks.  If you allocate the memory
yourself, you can play async, but then you have to worry about
deallocating it.

Usually, you'll see someone write a callback routine that will set a
flag to let you know that the sound's done;  then your program will
check the flag every so often, and SndDisposeChannel() and DisposPtr()
on the memory when it sees it set.  Personally, I don't do this
because I can never remember whether SndPlay() will give me a callback.
(I'm a masochist, I use SndDoCommand() and other nasty stuff instead of
the happy, cheerful, easy-to-use-as-long-as-you're-synchronous high
level calls.)  And you really _should_ dispose of the channel shortly
after the sound's done, or the system beep may not play, and other
unfriendly stuff.

But, ignoring the deallocation problem, you might write:

begin
 mySndChan := NewPtrClear(sizeof(SndChannel)); { does Pascal have sizeof!? }
 mySndChan.qLength := stdQLength; { stdQLength = 128, BTW }
 ...
 err := SndPlay(mySndChan, mySndHandle, kAsync);
 ...
end;
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 Memo to myself:
 Do The Dumb Things I Gotta Do.
 Touch The Puppet Head.
Newsgroups: comp.sys.mac.programmer
From: danny@utkux1.utk.edu (Danny W. McCampbell)
Subject: Adding Balloon help to my App...
Organization: University of Tennessee
Date: Wed, 2 Sep 1992 13:26:11 GMT

Is there an easy way to add balloon help to my Application.
I ready IM Vol VI and understand the resources, but when
I create the resources in resedit I get the hex editor.
Can anyone give me any tips on how to get started?

Thanks a bunch.

Danny McCampbell
danny@utkux1.utk.edu
From: Bathsheba.Grossman@bbs.oit.unc.edu (Bathsheba Grossman)
Newsgroups: comp.sys.mac.programmer
Subject: coping with memory bugs
Date: 26 Aug 92 00:28:40 GMT
Organization: UNC Office of Information Technology

Here's a list of tips I've received on coping with Those Annoying Memory
Bugs:

Read Knaster's "How to Write Macintosh Software" and somebody else's
"Programming With Macsbug".    (ok, when I get some cash)

Get the debugging extensions from ftp.apple.com that catch dumb stuff like
dereferencing NULL and releasing resources twice.   (check)

Use Macsbug heap-checking and scrambling functions, hc and hs  (did that
already) and Step Spy.

Use Debugger() and DebugStr(<string>) to drop into the debugger.  (neat!
where are these documented?  I though I knew IM pretty well.)

For coping with low memory conditions, use a growZoneProc (IM II,
SetGrowZone()) which frees some emergency reserve memory (and any other
available) and shows a dialog saying help, I'm running out.
(This is nice, but what tends to happen is that the dialog comes up, the
slushpile gets eaten, and death ensues immediately, before my code gets
control back.  Makes ya miss UNIX sometimes; what I really want to do is
jump out and start over.)

Thanks to all who mailed.  (What, no magic solution?  You mean I have to
think about this?  Oh, I hate that.)

-Sheba
--
   The opinions expressed are not necessarily those of the University of
     North Carolina at Chapel Hill, the Campus Office for Information
        Technology, or the Experimental Bulletin Board Service.
           internet:  bbs.oit.unc.edu or 152.2.22.80
From: Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian)
Newsgroups: comp.sys.mac.programmer
Subject: Zbasic+System 6/7 Speed
Date: 30 Aug 92 20:30:07 GMT
Organization: FidoNet node 1:2603/204 - Not Even Odd, Forest Hills NY

On 08-25-92, MXMORA@UNIX.SRI.COM wrote to ALL:

 M> Yes it calls WNE/GNE before every line of your basic code. Not very 
 M> efficient. Don't worry about it.  Wait for future basic and upgrade 
 M> as soon as you can. 

I do plan to get Future Basic, however, I've no intention of waiting 
around every time they tell me "Next Month" :-)  I did find out what they 
do wrong.  They not only call _GetNextEvent on every line, but they also 
make a LOT of calls to _SystemTask.  I've even found a timing routine 
where they check the timer, and call _SystemTask over and over again.  
This really slows things down under System 7....  I've also tried to 
replace this with a call to WaitNextEvent, however, all I've managed to do 
was crash the machine. :-)  See my other messages about patching...


 * Freddie 1.3b2 * Do what thou whim shalt be a hole in the head!

--  
=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=
 Ray Arachelian - Internet: Ray.Arachelian@f204.n2603.z1.ieee.org
From: sdorner@qualcomm.com (Steven Dorner)
Newsgroups: comp.sys.mac.programmer
Subject: MPW C error messages
Date: 26 Aug 92 16:32:39 GMT
Followup-To: comp.sys.mac.programmer
Organization: Qualcomm, Inc

In article <NEERI.92Aug26155235@iis.ethz.ch>, neeri@iis.ethz.ch (Matthias
Neeracher) wrote:
> MPW C continues compiling instead of displaying pretty animal pictures.

Yeah, I'll say.  One missing brace, 2000 lines of error messages
(and still going when I killed it).  I'm going to write a perl :-)
script to filter the output of the MPW C compiler, so that it loses
some of its mouth diarrhea.  I plan to call it STFU.
Newsgroups: comp.sys.mac.programmer
From: wilcox@swarm.wustl.edu (Don Wilcox)
Subject: Re: incrementation differences/THINK C 4.0 vs. 5.0
Organization: Washington University in St. Louis, MO
Date: Fri, 28 Aug 1992 15:12:28 GMT

In article <38188@unix.SRI.COM> mxmora@unix.SRI.COM (Matt Mora) writes:
>In article <1992Aug27.182157.16567@qualcomm.com> sdorner@qualcom.qualcomm.com (Steve Dorner) writes:
>
>What about this common bug that I think even shut down ATT long distance
>system:
>
>if (a=b) {
>  //then do something
>}
>
>When the programmer really meant a==b. Should there be a option to check
>if statements?

Borland's C++ compiler, which can optionally generate 50+ style warnings, can
do this.  And since I never write code like this where I mean '=', this works
well for me.

BTW, I had heard that it was a missing comma in a shared Fortran COMMON block
that shut down ATT.

>
>Matt
>
Don
-- 
Don Wilcox                         | "For I am not ashamed of the Gospel of
Washington University in St. Louis |   Christ, for it is the power of salvation
email: wilcox@swarm.wustl.edu      |   to all who believe."
Newsgroups: comp.sys.mac.programmer
From: vladimir@intrepid.intrepid.com (Vladimir Vukicevic)
Subject: Is there a PD console package for Mac?
Organization: Intrepid Technology, Inc.
Date: Sun, 30 Aug 1992 19:13:35 GMT
Keywords: mac, console, pd

Does anyone know of a PD 'console' package, like THINK provides? I have THINK C,
but I am really looking for the source of one, because I would like to add
more features (I am writing a CLI). If there isn't one, does anyone know
of a way to do I/O on the mac (with, for example, printf() & fgets()...)?
I was thinkning of creating a window, and then using TextEdit, but I can't
figure out a way to make the prompt non-overwriteable, and how to get a specific
part of the text. Any ideas? Suggestions? Comments?

	- Vladimir
	- vladimir@intrepid.com

-- 

-------------------------------------------------------------------------------
	    Internet................vladimir@intrepid.com
^[:r std.disclaimer
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Shareware legality question
Date: 31 Aug 92 23:29:29 GMT
Distribution: comp.sys.mac.programmer
Organization: University of Illinois at Urbana

mhall@occs.cs.oberlin.edu (Matthew Hall) writes:

>I submitted a shareware copyrighted program to sumex-aim.  In the
>README file I included a line that read <Public domain houses, such as
>Educorp, must contact me before distributing this program>.  I guess I
>aint no legal wizard, and I should have worded that more carefully.

>Do I have any rights here, or did I goof with my language.  Or should
>I just write a kind/nasty letter explaining to them how I feel.  It
>disturbs me a little that these people are using my program to make a
>profit (not, of course, that people are buying the NAUTILUS CD in
>droves because of it, but still) Does anybody have a similar
>experience?

Does the program or documentation say "Copyright Matthew Hall"
anywhere? If so, I think you have a case. The lawyer folks I spoke to
before sending out my shareware program said that so long as it says
"Copyright Me" on it, you have the only right to copy it and grant
only rights to copy as enumerated. I think your line from the README
file is enough to cover you in court. If you want to push it, I think
you can do something here. Check with a lawyer.

pr
-- 
Pete Resnick             (...so what is a mojo, and why would one be rising?)
Graduate assistant - Philosophy Department, Gregory Hall, UIUC
System manager - Cognitive Science Group, Beckman Institute, UIUC
Internet: resnick@cogsci.uiuc.edu
Newsgroups: comp.sys.mac.programmer
From: bakker@fwi.uva.nl (Harry Bakker (I87))
Subject: What is the structure of WindowList?
Summary: Structure of WindowList
Keywords: WindowList
Organization: FWI, University of Amsterdam
Date: Fri, 28 Aug 1992 12:42:09 GMT

To all net visitor,

I'm working on a package that manages floating windows. For this purpose
I need the structure of the WindowList. In IM-1 it says, that the WindowList
contains ALL windows on the desktop, not just the windows that belong to the
currently active application. If that is so, how does the WindowManager keeps
track of which window belongs to which application? You can see that it does
know that after a context swich. All the windows that belong to the app that's
becoming active are brought to the front of all other windows.
Where can I find the root of the windowlist? If I have, say, three windows
open, and all background applications together have four windows open,
then how many windows do I count if I walked down the windowlist? Three or
seven?

Could somebody help me on these questions?

Thanks in advance,

-Harry
(bakker@fwi.uva.nl)
From: mlanett@Apple.COM (Mark Lanett)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Modal Dialog Filter help/AFP login
Keywords: password, NBP/AFP calls
Date: 25 Aug 92 17:05:32 GMT
Distribution: usa
Organization: Apple Computer Inc., Cupertino, CA

kohlhepp@snake-3.cae.wisc.edu (Robert Kohlhepp) writes:

>I have noticed a few references to password protection,
>ie echoing dots, etc.  Most just say, see IM on filter 
>functions.   However, I don't wish to reinvent the wheel.  
>Does anyone have any filter handling procedures that I may 
>take a look at or possibly use?

There's a "password" snippet on ftp.apple.com that has 3 methods for doing
password entry. /dts/mac/sc/snippets/toolbox&iac/other/password, or something
like that.
From: jim@golden.berkeley.edu ()
Newsgroups: comp.sys.mac.programmer
Subject: want C code to copy files and folders
Date: 29 Aug 1992 17:43:19 GMT
Organization: U.C. College of Natural Resources
Distribution: na
Reply-To: jim@golden.Berkeley.EDU.Berkeley.EDU
NNTP-Posting-Host: golden.berkeley.edu
Keywords: Think C

  
Under System 6, I want [to write] a startup utility which will
copy the system folder from a write-protected boot volume
to a writeable second volume, and then switch-launch to MulfiFinder
on the writeable volume.

Is there a library routine, or example C code, which I could
use to facilitate this project?

(Copying folders and files with all attributes intact is not something
I've seen described in any of my Mac C texts.)

Your suggestions about the best way to proceed would be much appreciated.

Jim Bradley
Newsgroups: comp.sys.mac.programmer
Newsgroups: comp.sys.mac.programmer
Subject: Re: color dialogs
From: stanger@otago.ac.nz (Nigel Stanger)
Date: 24 Aug 92 12:59:40 +1300
Organization: University of Otago, Dunedin, New Zealand

strickli@cs.utk.edu (Michael C. Stricklin) writes:
> Is it honestly true that there is no trap to load a color dialog
> box from a resource?  My superior intuitive skills tell me that it
> would be called 'GetCDialog,' but I can't find reference to it in
> any of the IM's, or any of Thimk (sic) C's header files.  Regardless,
[...]

I had the problem that one of my dialogs refused to come up in
colour. After digging around in the Dialog Manager chapter in IM5
I discovered that GetDialog by default uses a (B&W) DialogPtr.
However, if there is a 'dctb' resource with the same ID as your
DLOG resource, GetDialog uses a CDialogPtr instead. There is no
GetCDialog :(

A bit of playing around with the colour settings in the ResEdit
dialog editor will create a dctb for your dialog. (I think I
changed the border colour of the dialog, which automatically
generated a dctb, then I changed it back again -- something like
that anyway.)

----------------------------------------------------------------------
Nigel Stanger,                  Internet: stanger@otago.ac.nz
University of Otago,            Phone: +64 3 479-8179
Dunedin, NEW ZEALAND.           Fax:   +64 3 479-8311
String Quartet: see RUBBER BAND.
Newsgroups: comp.sys.mac.programmer
From: Michael Brennan <mikeb@sam.amgen.com>
Subject: Re: serial communications
Organization: Amgen
X-Useragent: Nuntius v1.1
Date: Wed, 2 Sep 1992 21:24:01 GMT

In article <1992Aug20.220102.4797@gmuvax2.gmu.edu> James Edwards,
jedwards@gmuvax2.gmu.edu writes:
> I have to wonder why there isn't a single good example of serial 
>communications to be found anywhere. 

I remember obtaining a file (I believe it was called "serial.c") from the
Symantec forum on Compuserve quite awhile ago.  I don't have it readily
available at the moment, but it provides what you're asking for.  It's
all really quite simple... much simpler than working with the Comm
Toolbox.

If you can't locate or get access to the file, let me know and I'll see
if I can dig it up somewhere.
From: keith@taligent.com (Keith Rollin)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Beginner's question on StandardPutFile
Date: 1 Sep 92 18:39:23 GMT
Organization: Taligent

In article <ewu1.715348919@husc8>, ewu1@husc8.harvard.edu (Elwin Wu) writes:
> 
> I'm having trouble getting the volume reference number returned by the
> StandardPutFile routine.  I want to use SetVol and my code typically
> looks something like this (I'm using Think C 5.0):
> 
> 	StandardPutFile(prompt,defaultName,&theReply);
> 	SetVol(theReply.sfFile.vRefNum);
> 
> Should I use something other that SetVol???  Any help would be
> appreciated.  Thanks

IMHO, you should replace the line containing SetVol with a blank line.
"theReply.sfFile" contains everything you need to access the file. If you want
to open the data for, call FSpOpenDF. If you want to open the resource fork,
call FSpOpenResFile. You don't need to change the default directory.

If, for some arcane reason, you feel you _do_ need to change the default
directory, do it thusly:

    GetVol(nil, &oldVol);
    HSetVol(nil, theReply.sfFile.vRefNum, theReply.sfFile.parID);
    DoMyStuff();
    SetVol(nil, oldVol);

--
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer