HDTenEightyP/NetNews huggingface dataset:
From: mhkohne@jupiter.cs.umbc.edu (Michael Kohne)
Subject: Regular reading of a serial device-how?
Keywords: serial interrupt VBL 
Organization: University of Maryland Baltimore Campus, Computer Science Department
Date: Mon, 13 Apr 1992 01:57:08 GMT

I've got an interesting situation. I have come by a graphics tablet that is a
serial device, and I want to hook it to my mac. This should be simple, as I
know the format of the data it's sending, and I know how to use the serial
ports on the mac. There's only one problem: I need to check the serial ports
pretty regularly in order to do this, but the Control and Status driver
calls might move or purge memory, and therefore can't be called from any sort
of interrupt-level routine like a VBL task. Then I thought of using an
interrupt routine directly, but since that would involve playing with the
hardware directly, it's not a good idea.
 
What I'd really like is either:
1) a way to call the serial drivers from a VBL task.
2) a way to get some code called regularly (every 10 ticks or so), but NOT
at interrupt level. I can't think of any way either of these can be done,
so I ask you: any ideas? 

respond email, and I'll post a summary.

Michael Kohne
"Pope" Q.E.D
 
-- 
"Pope" Q.E.D         Lord High Jabberwocky
Michael Kohne        mhkohne@jupiter.cs.umbc.edu
Coded Message: FIME NDUXXMS MZP FTQ EXUFTK FAHQE SKDQ MZP SUYNXQ UZ FTQ IMNQ.
From: winer@husc8.harvard.edu (Adam Winer)
Newsgroups: comp.sys.mac.programmer
Subject: What is Discipline?
Summary: What is Discipline?
Keywords: Discipline
Date: 13 Apr 92 18:52:04 GMT
Article-I.D.: husc8.winer.703191124


Does anyone out there know what Discipline is?  I downloaded it from
ftp.apple.com a couple days ago.  It appears to be some sort of a
debugging tool, but the instructions that came with it were
extremely skimpy.  Is it designed for use with Macsbug (which I have)
or with MPW (which I don't have)?  Does anyone have access to complete
instructions?

Thanks,
Adam
-- 
Adam Winer		| The number you have reached is imaginary.
WINER@HARVARD.EDU	| Please rotate your phone 90 degrees and
                        | try again.
Newsgroups: comp.sys.mac.programmer
From: jxs18@po.CWRU.Edu (Jerry Sy)
Subject: need sample code on launching a program within a c program
Reply-To: jxs18@po.CWRU.Edu (Jerry Sy)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Wed, 15 Apr 92 15:04:33 GMT


I need some sample codes for launching an application with a document
from within a c program.  example, I need to be able to launch
Microsoft Excel with worksheet sample.wks.

any help will be much appreciated

please email response.
jerry
From: martinec@serss0.fiu.edu (Chris Martinez)
Newsgroups: comp.sys.mac.programmer
Subject: Meridian Ada examples
Date: 9 Apr 92 21:51:23 GMT
Organization: Florida International University, Miami

I am looking for some basic Ada programs using the Meridian Compiler and
MPW 3.0.  I am relatively new to  Macintosh programming and need a few 
pointers on event driven programming.
Thanks,
Chris Martinez
martinec@serss0.fiu.edu
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: Pointers to struct and Objects
Organization: Kalamazoo College
Date: Wed, 8 Apr 1992 13:40:42 GMT

kevin@crash.cts.com (Kevin Hill) writes:
>
>I am currently programming a CDocument Object...
>However, I have about 15-20 panes in the document,
>that get created in BuildWindow.

My two cents' of advice, first.  Create all the panes inside one big
pane, that's the first penny.  That way, your document will have an
itsMainPane, so it will be happy.  If you ever want to paint the
background behind these panes, or move them all, or something, it'll be
easier if you have one big pane that contains them.

The second penny is, keeping track of the individual panes is already
done for you with the main pane's itsSubViews instance variable.  You
don't need to create an array to get to them;  you can just FindItem()
on the list.  Before you allocate an array of these things, check out
CPane's Contains() method and make sure you know how to use CCluster's
search methods.  You should only need an array for the individual panes
if you really need instant access to them, and if they're arranged in
some repetitive fashion.

Now on to this problem...

>   I have created a structure that looks something like this.
>
>   struct a{
>	CPaneBorder	*border;
>	CStaticText	*title;
>	union {
>		CStaticText	edit;
>		CEditText	edit1; 
>		CDateText	date;
>		CPhoneText	phone;
>		}b;
>	int	type;
>	};

I assume you means "CStaticText *edit", etc.  You can't declare an
variable of an object type, only a pointer to it.

>In the instance variables for the Document object, I declare
>struct a  *tracker;
>The big problem comes when try to allocate memory for it.
>
>  for(i = -; i < 9; i++)
>		
>	
>       track[i] = (struct a*)NewPtr(sizeof(struct a));
>
>  the compiler does not seem to like that...

If you define track as a pointer to (struct a), then track[i] is not a
pointer, it's the structure itself.  You probably want an array of
pointers to structures:  "struct a *track[10]" or somesuch.

Like I said, I wouldn't advise using this particular data structure...

>   Also, is there a  limit to the number of objects CDocument can have?

However much memory you have...
-- 
 Jamie McCarthy     Internet: k044477@kzoo.edu     AppleLink: j.mccarthy
 "Almost all portables today employ passive-matrix LCDs, and no one expects
 active-matrix screens to be cost-competitive for a few years" -PC World 2/92
From: st902231@pip.cc.brandeis.edu (DAVID)
Newsgroups: comp.sys.mac.programmer
Subject: Hypercard problems
Date: 12 Apr 92 19:17:03 GMT
Reply-To: st902231@pip.cc.brandeis.edu
Organization: Brandeis University

I'm having a little bit of trouble with hypercard, and I'm looking for a
solution.

Currently, when I use Hypercard 2.0 v2 with a stack called TidBits, while
either converting these stacks, or merging the stacks, hypercard always
unexpectedly quits.  At first it claims error 28, application crashed into the
heap, but when it attempts to go back to the finder, another dialog box comes
up which says that the Finder file has been corrupted, and must be replaced.
When I had SUM disk clinic and Disk first aid check my disk, it claimed that
there was nothing wrong.

I have the following questions about the situation:

1) Would getting Hypercard 2.1 solve my problem, or is this problem endemic
with the programming of this stack?

2) Could there really be a problem with my finder /system.

Information about my system:
Mac IIci, 80 meg HD 60 megs used
radius pivot 4-bit greyscale monitor
Finder: 6.1.5
System: 6.0.5
8 mb ram

Thanx in advance for any help.................

------------------------------------
Dave Klein
st902231@pip.cc.brandeis.edu
------------------------------------
Newsgroups: comp.sys.mac.programmer
From: neeri@iis.ethz.ch (Matthias Ulrich Neeracher)
Subject: Re: What's the best debugger?
Organization: Integrated Systems Laboratory, ETH, Zurich
Date: Mon, 6 Apr 1992 10:49:03 GMT

In article <scott.702520229@mcl> scott@mcl.mcl.ucsb.edu (Scott Bronson) writes:
>I have reached a stage in my projects where I would like to use
>the most effective debugger know to Macintosh.  I own TMON, I have
>MacsBug in the wings and waiting, and (I bought this LONG ago) Jasik's
>MacNosy/Debugger.  I acutally really like debugging software because
>the gut-grinding frustration you feel is overshadowed by the incredible
>elation of finally stomping that bug out.  Or, perhaps, I'm taking
>debugging way to personally.
>
>It seems that MacsBug is be the low-end debugger.  I would think that
>TMON and The Debugger would do everything MacsBug can do and more. 
>However, it seems that MacsBug has better and more documentation than
>any of the debuggers out.

Other advantages of MacsBug is that it is stable and reasonably extensible.
Versions earlier than 6.x were painful, but I like the current versions.

>When I used The Debugger (original version) to debug an app I wrote on
>an SE, it crashed as many times as did my application.

I'm glad someone else confirms my experience. Jasik's programs have a
tremendous functionality, but a lousy user interface and documentation.

>TMON looks incredibly powerful.  It's got its own scripting language,
>it's amazingly user-modifiable, it's very robust, and aside from the
>button bar along the top (ugh), the interface looks very good.  A little
>more mousing is needed than I would like, but I find it far nicer to
>use than MacsBug's CLI.

There are a few keys to learn with MacsBugs editing, and it certainly isn't as
powerful as TMON.

I'd like to add a few opinions about the two Apple source code debuggers:

SADE is powerful, but not easy enough to use. SourceBug is much nicer, and
doesn't lack much functionality you'd ever need. One problem I have with both
is that they won't work with standalone resources. SourceBug doesn't even debug
MPW tools (else, I would probably use it much more frequently).

Matthias

-----
Matthias Neeracher                                      neeri@iis.ethz.ch
 `We say "gestalt" when things combine to act in ways we can't explain'
                             -- Marvin Minsky, _The Society Of Mind_
From: rte@cbnewsi.cb.att.com (ralph.t.edwards)
Newsgroups: comp.sys.mac.programmer
Subject: ISDN applications for Mac
Keywords: Need some
Date: 15 Apr 92 21:04:46 GMT
Article-I.D.: cbnewsi.1992Apr15.210446.20495
Organization: AT&T

Anybody know some good applications for ISDN on the Mac?
Preferably something we can get our hands on.  We have
an ISDN lab (and a BRI board for the Mac) and would like to
exercise it.  Email responses preferred.

Ralph Edwards (908) 949-0685
Newsgroups: comp.sys.mac.programmer
From: zobkiw@world.std.com (Joe Zobkiw)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Network copy protection problems
Date: 13 Apr 92 14:04:07 GMT
Organization: The World Public Access UNIX, Brookline, MA

Chris -

I learned about Zones from IM VI I think...also check IM V.

As far as your problem...I do the exact same thing, from within an INIT
and it works without a hitch. You mention that if the application crashes,
the name doesn't unregister...this could be a problem...but you would hope
that whenever someone's machine crashes, they will restart it just to be
safe. When the machine is restarted, the registration will disappear and
everything will be back to normal.

-- 
<--------------------------------------------------->
 joe zobkiw                     zobkiw@world.std.com
 mac.synthesis.MIDI.development.C.asm.communications
>---------------------------------------------------<
From: bill@lhotse.ucar.edu
Newsgroups: comp.sys.mac.programmer
Subject: Yet another bug in THINK C 5.0...?
Date: 11 Apr 92 23:28:31 GMT
Reply-To: bill@lhotse.ucar.edu ()
Organization: High Altitude Observatory/NCAR, Boulder CO

Ok, I'll claim stupid on this one... and will take off
all fire retardant garments if this has been previously
noted.
  I'm try to do something that should be possible to do
within a reasonable length of time...  determine the
modificaton time of files... and use the CONSOLE package.
Along the way all kinds of weird shit is happening.  First,
using MacTraps and ANSI together with my tiny source files
results in a segment that is too large!  I need MacTraps
as I'm trying to call the toolbox routine GetFInfo().  And
as I'm trying to emulate a basic tty environment I'm using
the stdio streams.
  So, that's the first problem.  The next thing is odd in 
that the code is generic C code and works fine on my
Sun sparcstation but the compiler (THINK C 5.0) complains
that invalid number of arguments in statment:

likestat(arg)
char *arg;
{
	FInfo 	FileInfo;

	/* The compiler throws up on the printf below. */
	printf ("Oh yea, the arg is %s\n", arg);
		
	/* return (GetFInfo(arg, 0, &FileInfo)); */
	return (-1);
}

All I want to do is emulate the UNIX stat() function without
spending my entire weekend doing it.  Is this possible on the
Mac?

Removing asbestos garments now,
--Bill
Newsgroups: comp.sys.mac.programmer
From: potts@itl.itd.umich.edu (Paul Potts)
Subject: Using "OpenStdCompression" with MPW QuickTime headers in THINK C
Originator: potts@helen
Organization: Instructional Technology Laboratory, University of Michigan
Date: Tue, 14 Apr 92 18:13:00 GMT

I got an answer about using "OpenStdCompression" in THINK C. The solution
is to put the call, and the prototype in the header file, into all capitals:
OPENSTDCOMPRESSION.

The reasons seems to be that the MPW linker isn't case-sensitive, while 
the THINK C
linker is. Therefore the .o library has the glue call listed as
OPENSTDCOMPRESSION; under MPW it works to call it by OpenStdCompression, but
not under THINK.

The OConv utility seems to create a project that can't be opened by THINK C.
Does anyone know why this is? I get a "ZREF error" - "Please remove objects"
when I try to open the resulting project file.
-- 
Paul Potts - potts@itl.itd.umich.edu
Un damne' descendant sans lampe,/ Au bord d'un gouffre dont l'odeur
Trahit l'humide profondeur,/ D'e'ternels escaliers sans rampe... 
   -Baudelaire on DOS/Windows programming   
Newsgroups: comp.sys.mac.programmer
From: krk@itl.itd.umich.edu (Kenneth Knight)
Subject: WaitNextEvent is returning local co-ords, why?
Originator: krk@helen
Organization: Instructional Technology Laboratory, University of Michigan
Date: Wed, 8 Apr 92 01:05:32 GMT

Here is the fragment of concern:
//     SystemTask();
       if (WaitNextEvent(everyEvent,&myEvent, 0L, nil)) {
/*     if (GetNextEvent(everyEvent, &myEvent)) { */
               MaintainCursor(&(myEvent.where));/* update cursor . */
               switch (myEvent.what)
 
The problem is that it seems that the co-ordinate being
returned in the myEvent.where field IS NOT a global
co-ordinate.
 
All events on my main window - the active port - (though
this problem persists even if I make the port the Window
Manager port) appear to be returned in local coordinates.
Events where the mouse is outside the main window appear to
return global co-ordinates.
 
What is going on here? Inside Macintosh has always said, it
has always  been true in code I've done before, that calls
such as Get/Wait-NextEvent return the mouse location in
global co-ordinates. I am stuck.
 
Help...
 
  ** Ken **
krk@itl.itd.umich.edu
From: neal@farallon.com (Neal Trautman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Anybody know the SE "Easter Egg?"
Date: 11 Apr 92 18:55:48 GMT
Organization: Farallon Computing, Inc.

In article <1992Apr11.054415.13203@csn.org>, fcs@teal.csn.org (M. Scott Marcy) writes:
> I was just wondering if anybody out there knows and remembers the address of
> the "Easter Egg" in the original SE ROMs?  It's the one which draws the
> pictures of the development team.

Here's the THINK C source code for a small
application I wrote years ago to show the pictures.

Enjoy...
Neal Trautman
Timbuktu Lead Software Engineer
Farallon Computing, Inc.
neal@farallon.com


main()
{
	SysEnvRec		MacInfo;
	EventRecord		theEvent;
	long			time;
	int				i;
	
	InitGraf(&thePort);
	InitFonts();
	FlushEvents(everyEvent, 0);
	InitWindows();
	InitDialogs(0L);
	InitCursor();
	SysEnvirons(1, &MacInfo);
	if (MacInfo.machineType != envSE)
		{
		ExitToShell();
		}
	asm
		{
		jsr		0x41D8B4
		}
	for(;;)
		{
		asm
			{
			addq.l	#4,D7
			andi.l	#0x0C,D7
			jsr		0x41D8D6
			}
		for (i=0; i<=8; i++)
			{
			if (Button())
				ExitToShell();
			Delay(20L,&time);
			}
		}
}
From: dnebing@bgsu.edu (Mr. Neb)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Writing apps that use plug-ins?
Date: 8 Apr 92 06:53:50 GMT
Organization: Bowling Green State University B.G., Oh.

From article <1992Apr7.232048.9295@sbcs.sunysb.edu>, by rhorn@csws11.ic.sunysb.edu (Robert Horn):
> The plug in has no access to your applications jump tables (?) (at least in 
> THINK languages) and so would not be able to call your application's routines 
> unless you pass the addresses of the routines to your plug-in resource/routine, 
> and could only then call your routines through the pointers to the functions.
> (Pascal can't do this as it doesn't allow you to call a function through a
> pointer.) (you might want to glance at your favorite(sp?) C book's section on
> pointers to functions)
> 
 [stuff deleted...]

	Just making the call to the code resource should not change the value
of the A5 register, which points to the application's global variables as
well as the jump table.  If you knew (through previous compilation) the
correct offset into the jump table, couldn't you just jump to that location
in the jump table, using the A5 offset?

	As far as I know, it would seem that this should work.  Does anyone
agree or disagree with this.  I am curious to see if it is felt that this 
method would work or not.


	dnebing@andy.bgsu.edu
From: jmconnel@oregon.uoregon.edu (John Mcconnel)
Newsgroups: comp.sys.mac.programmer
Subject: Changing screan address/animation
Date: 7 Apr 92 03:44:00 GMT
Article-I.D.: oregon.6APR199220443308
Organization: University of Oregon
News-Software: VAX/VMS VNEWS 1.41

I need to display some PICT files on the screen without waiting for QuickDraw.
I'm planning of using quickdraw to draw the PICT's into vertual screens in
memory and then change the screen address to more rapidly display them (just
as if I were trying to do some animation).  Before I start changing global
variables I was hoping some one could give me some advise, ideas, code, etc.

I'm using a Mac IIci with a standard color screen and Think Pascal and don't
care how portible the code is to other Mac's.

Please email me, as my access to NEWS is limited.

Thanks in advance......

							~John McConnell
					JMCONNEL@OREGON.UOREGON.EDU
From: d88-jwa@dront.nada.kth.se (Jon W{tte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Launching "through" the Finder???
Date: 17 Apr 92 22:05:51 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden
Originator: d88-jwa@dront.nada.kth.se

.edu> rsherman@mthvax.cs.miami.edu (Roby Sherman) writes:

   How do programs like Super Boomerang and/or the various Hierarchial menu
   programs launch through the finder? It doesn't appear that they call the

How about an AppleEvent telling the Finder to "open" the file ?
Check the Finder Events stack.

Warning: the contents of the stack will become unsupported.

-- 
"You should meet yourself someday. I'm sure you would hate it."
- Me: h+@nada.kth.se; Jon W{tte (The Diplomat - NOT!)
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer
Subject: Re: What's the best debugger?
Date: 9 Apr 92 05:13:56 GMT
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.5v4

I've been living inside Jasik's Debugger lately (I'm working part
time on a contract *just* debugging).

Jasik's Debugger has a few warts, mainly some weird UI things, but
it also is simply excellent at doing its job.

I view it as a industrial strength power tool.  Once you learn it,
you can perform miracles, but like other ISPTs it has to be mastered
with care.  It helps ALOT to have someone around who can teach you
how it works.

I know alot of programmers and almost all who are doing serious MPW
work use Jasik's Debugger.

Macsbug has it's place too - there are a few clever DCMDs floating around
that are handy.

I used TMON a little before it went pro.  I personally don't like
the pro version.  Its UI makes Jasik's look wonderful.

SADE.  Well, I really don't like debuggers that are just another app. 
I find it much nice to have them hiding - no funny update problems
caused by them that.  SADE is an App and does get "in the way".

So, in summary.  If you are serious, take the time to learn Jasik's Debugger.
It's well worth the trouble!

--  Michael Peirce         --   peirce@outpost.SF-Bay.org
--  Peirce Software        --   Suite 301, 719 Hibiscus Place
--  Macintosh Programming  --   San Jose, California USA 95117
--           & Consulting  --   voice: (408) 244-6554 fax: (408) 244-6882
--                         --   AppleLink: peirce & America Online: AFC Peirce
Newsgroups: comp.sys.mac.programmer
From: zobkiw@world.std.com (Joe Zobkiw)
Subject: Re: Dynamic INIT Loading
Organization: The World Public Access UNIX, Brookline, MA
Date: Mon, 6 Apr 1992 15:49:37 GMT


Maybe...someday ;)

-- 
<--------------------------------------------------->
 joe zobkiw                     zobkiw@world.std.com
 mac.synthesis.MIDI.development.C.asm.communications
>---------------------------------------------------<
Newsgroups: comp.sys.mac.programmer
Subject: Re: Password specification for AppleEvents?
From: jmatthews@desire.wright.edu
Date: 15 Apr 92 00:10:11 EST
Organization: Wright State University 

In article <D88-JWA.92Apr13203717@byse.nada.kth.se>, d88-jwa@byse.nada.kth.se (Jon W{tte) writes:
> .com> time@ice.com (Tim Endres) writes:
> 
>    When I send an Apple Event, the first execution puts up the password
>    prompt dialog box. This is fucked for background execution. How do
>    I send an Apple Event and specify the password to avoid this dialog?
> 
> The f-word is exactly how I feel...
> 
> This has been beaten to death before. The short answer is that
> THERE IS NO WAY; some people at Apple feel this is bad, and should
> be fixed; until it is, ...
> 
> The long answer is you can allow guest access, and use the
> neat hack called "AutoGuest INIT."

Another alternative (in certain situations) is to use the PPC toolbox
directly. PPCStart skips the authentication step of StartSecureSession.
PPC also gets around the 64K limit. Of course if you need AppleEvents,
you need AppleEvents...

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
From: green@eniac.seas.upenn.edu (Bradley Green )
Newsgroups: comp.sys.mac.programmer
Subject: Re: comp.sys.mac.programmer.OOP
Date: 15 Apr 92 01:09:17 GMT
Organization: University of Pennsylvania

In article <11426@mindlink.bc.ca> Daryl_Spitzer@mindlink.bc.ca (Daryl Spitzer) writes:
>> ..or comp.sys.mac.programmer.OOP which would contain most of the
>> object oriented frameworks and languages. We had this discussion before,
>> is it time to split the mac programming group to sub-groups or not?
>
>This is a good idea.  The TCL mailing list is seeing a great deal of use, so
>I'm sure this would as well.

I couldn't agree more.  If I miss reading the group for a day or two, there
are so many articles that I usually have to just skip them all.  Splitting
the group into several subgroups would allow us all to prescreen our reading
material more effectively

--
------------------------------------------------------------------------------
* Bradley S. Green				University of Pennsylvania   *
* green@eniac.seas.upenn.edu			(215) 222-7882		     *
*									     *
Xref: sparky comp.sys.mac.programmer:7950 comp.sys.mac.apps:7711 comp.sys.mac.wanted:4323
From: time@ice.com (Tim Endres)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.apps,comp.sys.mac.wanted
Subject: Fancy Your Tickle...
Date: 9 Apr 92 04:07:05 GMT
Article-I.D.: tbomb.1CE00001.0ib8on
Reply-To: time@ice.com (Tim Endres)
Organization: ICE Engineering, Inc.
X-Mailer: uAccess - Macintosh Release: 1.5v5


Tickle 3.1v4 is now available for general consumption.
This new release fixes bugs, adds a couple things, and also
splits the package into several pieces.

Where:

ftp.msen.com
pub/vendor/ice/tickle/



tim endres - time@ice.com  -or-  uupsi!tbomb!time
ICE Engineering, Inc. - Phone (313) 449 8288 - FAX (313) 449-9208
8840 Main Street, Whitmore Lake, MI  48189
USENET - a slow moving self parody... ph