HDTenEightyP/NetNews huggingface dataset:
From: anders@verity.com (Anders Wallgren)
Newsgroups: comp.sys.mac.programmer
Subject: Re: AppParmHandle - usable?
Date: 12 Oct 92 20:24:05 GMT
Article-I.D.: verity.1992Oct12.202405.7129
Organization: Verity, Mountain View, CA, USA
X-Xxmessage-Id: <A6FF2E52B601C897@pokey.verity.com>
X-Useragent: Nuntius v1.1.1d12
X-Xxdate: Mon, 12 Oct 92 21:29:54 GMT

In article <48488@shamash.cdc.com> Paul Kohlmiller,
paul@svl.cdc.com writes:
>BTW, Apple Events is not a workable solution because the
application that I
>am trying to launch is not "aware" of high-level events and I
can't change it.
>thnx in advance

I think you can still use apple events - if the application is not
AE aware, the system will perform the appropriate magic for you.

anders
Newsgroups: comp.sys.mac.programmer
From: chrisv@runx.oz.au (Chris Velevitch)
Subject: Newton Development
Organization: RUNX Un*x Timeshare.  Sydney, Australia.
Date: Fri, 16 Oct 92 13:38:12 GMT


I want to develop applications for the Newton, but I would like
more information on what is involved.

What is the development language/environment?
What are the Design and interface guidelines?
What type of non-volatile storage and capacity?


Chris

-- 
Chris Velevitch, Soft, Inc.
chrisv@runxtsa.runx.oz.au
Newsgroups: comp.sys.mac.programmer
Subject: Event Handler Demo PLEASE!!!!!
From: mgeorgy@vmsclst1.sc.csupomona.edu
Date: 8 Oct 92 07:53:45 PDT
Organization: Computer Science Computational Systems
Nntp-Posting-User: mgeorgy

Could someone please give me a demonstration of how to use the event handler??? 
Nothing fancy just the basics...

Thank You Very Much,
Matt Georgy
California State Polytechnic State University, Pomona  -- Computer Science
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+When It Absolutely, Positively, Has To Be Taken Out Overnight!!!+
+                                                                +
+                                           -- Team Stealth      +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
From: jtarr@husc8.harvard.edu (Jeff Tarr)
Newsgroups: comp.sys.mac.programmer
Subject: THINK C 5.0.3 Problem
Summary: Having a problem with Scripts.H
Keywords: THINKC PROBLEM C HEADER
Date: 13 Oct 92 20:24:52 GMT
Article-I.D.: husc8.jtarr.719007892

I just got the update for 5.0.3, installed it, and now am writing my
first Mac-program (one that uses the menu bar and windows and etc..)

I included the Packages header file, which in turn loads the Scripts header.
When Think C tries to compile the Scripts header file it dies with the error:
enumeration constant too large, for "intOutputMask" in the Integer Format 
Codes section of the file.  Can someone please tell me what to do?  I have
never used this header file before so I'm not sure what action to take.

Thanks in advance.

--
Jeff Tarr
Harvard University
jtarr@husc8.harvard.edu

-- 
Jeff Tarr
Harvard University
jtarr@husc8.harvard.edu
Newsgroups: comp.sys.mac.programmer
From: enterprise.rdd.lmsc.lockheed.com (Darrell Merrick)
Subject: Novice MacApp question
Organization: Lockheed
Date: Mon, 12 Oct 92 22:48:02 GMT

I'm just starting to go through the MacApp C++ tutorial and can't even get 
the first build to work.  The example command is "MABuild Nothing -autobuild
-nodebug".  It gives an error of "MPW 3.2.3:Tools:Pascal does not exist; no 
rules to build it".  Is this a symptom of a common problem, such as something 
I forgot to set up?  I am using MPW 3.2.3 with MacApp 3.0.1.

By the way, has anybody started using Bedrock yet?  I know it's still in beta 
release but it would be interesting to hear some comments on the current 
version.

Thanks,

Darrell Merrick 
merrick@titan.rdd.lmsc.lockheed.com
From: baer@qiclab.scn.rain.com (Ken Baer)
Newsgroups: comp.sys.mac.programmer
Subject: What would cause event->where to be in local coords?
Date: 14 Oct 92 17:08:01 GMT
Article-I.D.: qiclab.1992Oct14.170801.615
Organization: SCN Research/Qic Laboratories of Tigard, Oregon.


I have encountered a mysterious problem while working on a 3D modeling 
application.  The program has a push button control panel along the top
of the screen, and two 3D view windows where you add and move control
points.  The problem I'm having is if I add points quickely, the control
point is offset by the upper left position of the window I'm drawing in.
I was using a SetPort() to the window I got the mouseDown in and getting
the point with a GetMouse().  As a test I decided to try it with the
event->where instead.  Since these are global coordinates, the drawing
should ALWAYS be offset by the upper left of the window I'm drawing into.
But, occasionally the mouse position comes in with LOCAL coordinates!!

The sequence that triggers this behavior is: After adding a point and 
positioning it in the view window with the mouse, I release the mouse
button, the Add button redraws in the control panel (a different window),
I quickely hit the A key on the keyboard (which draws the Add button again)
and I click in the view window again.  For some reason, when I do this
sequence quickely enough, the event->where is in local coordinates for
the window I'm drawing into.  

All of my drawing functions restore the port if they are operating in
a different one.  Shouldn't event->where always by global?  What would
make it return local coordinates?  I have traced this thing to death,
and I know that I am not doing anything funky with the location values
between the time I get them and when I draw them.  It seems like the
mouse position value in event->where gets a local value when I click the
mouse in the view window while the program is still drawing in the 
control panel window.  Is QuickDraw doing something funky?  I hope this
is enough information, there's just too much code to post because its
across several files.  I am using Think C 5.0 under System 7.0 on a
Mac IIsi with a math chip and 9Megs of memory.

Any ideas of what's going on?
Thanks in advance.

	-Ken Baer.
	baer@qiclab.scn.rain.com


-- 
    //    -Ken Baer.  Programmer/Animator, Hash Enterprises
  \X/     Usenet: baer@qiclab.UUCP  /  Office: (206)573-9427
          "Hey, I think a glacier just passed us!" - Andy from Joyride
Newsgroups: comp.sys.mac.programmer
From: cmr45797@uxa.cso.uiuc.edu (Charles Mark Remes)
Subject: How *should* gestalt manager be used under sys 7?
Organization: University of Illinois at Urbana
Date: Sun, 11 Oct 1992 18:47:19 GMT
Keywords: gestalt

I am writing a system 7 only application, and I'm running into a wee
bit of trouble interpreting the Gestalt manager.  Since this app
requires System 7, I'm using the gestalt manager to return the version
number and making sure it is at least $0700.  Now I'm using an Informational
Selector to get this info, which IM says should NEVER be used as a basis
for a inferring the existence of certain features, etc...

Now I can write more code to get the info I need from the gestalt man., but 
it just seems easier to base program decisions on the System version number.

What would some of you (undoubtedly) better programmers out there suggest I
do?  Should I write longer code to check for the existence of apple events,
dialog extensions, etc., or just use the version number?  Help me out.

Thanks.

-- 
_____________________________________________________________________
* Chuck Remes                 * Any government strong enough to give*  
* cmr45797@uxa.cso.uiuc.edu   * you anything you want, is strong    *
*                             * enough to take everything you have. *
Newsgroups: comp.sys.mac.programmer
From: glenn@clsi.COM (Glenn Boysko)
Subject: System 7 Sounds
Organization: CAD Language Systems Inc.
Distribution: comp.sys.mac.programmer
Date: 12 Oct 92 10:31:07


Hello All:

	I've received some Macintosh System 7 sound files and was wondering if
anyone knew of a way to listen to them on a System 6 Macintosh.  I was
wondering if:

	o System 7 files can be converted to System 6, OR
	o There exists a sound player that works on System 6 and reads System
	  7 sounds

Does anyone have any input?
Glenn
--
......................... *                           *   
..=====.==....=====..===. | Glenn Boysko              | "An eye for an eye,
.======.==...===.....===. | CAD Language Systems, Inc |  a tooth for a tooth,
.==.....==....===....===. |                           |  vote for me and
.======.====....===..===. | glenn@clsi.COM  OR        |  I'll set you free."
..=====.====.=====...===. | uunet!clsi!glenn          |        -- Daniel Ash
......................... *                           *
From: stevec@apple.com (Steve Christensen)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Controlling Disk Status Lines CA0-CA2, and others
Date: 12 Oct 92 22:17:21 GMT
Organization: Apple Computer, Inc.
X-Useragent: Nuntius v1.1

Nathan Neulinger, neuling@admiral.uucp writes:
>Basically what I need is a bit of sample code, or a binhexed
>application that can allow me to change the status of the disk control
>lines: CA0, CA1, CA2, and LSTRB.

This hasn't been a simple answer for several years.  If you were only
going to run on a Mac Plus or earlier, you'd just whack some addresses
in the floppy controller.  With the advent of support for DOS disks,
Apple came out with a new controller that does the toggling of those
lines in a couple of different ways depending on the mode the chip is
in.  On the IIfx, Quadra 900, and Quadra 950, you have no access to
those lines because a separate microcontroller runs the entire floppy
disk show.

steve
Newsgroups: comp.sys.mac.programmer
From: Andreas Wuertz <wuertz@tik.ethz.ch>
Subject: Re: problem with my dialog filter
Organization: Federal Institute of Technology
X-Useragent: Nuntius v1.1
     <D88-JWA.92Oct9100555@byse.nada.kth.se>
Date: Fri, 9 Oct 1992 13:34:30 GMT

In article <1992Oct7.164827.26670@mcs.drexel.edu> Daniel Morrow,
udmorrow@mcs.drexel.edu writes:
>	Set itemHit to the id of the OK button
>	Set event.what to mouseDown.
>	Set event.where to a point inside the OK button
>	and I do call LocalToGlobal on that point.
>	And lastly I set MyFilter to FALSE so ModalDialog knows
>	to handle the event.

How about setting MyFilter to TRUE, so ModalDialog knows YOU handled the
event and doesn't fiddle around with itemHit anymore?

In article <1992Oct8.164657.26841@nrtpa038.bnr.ca> Ted Lowery,
tbl@rock.concert.net writes:
>void	FlashButton(int ButtonID);
>/*  just flash the button, visual only  */
>void	FlashButton(int ButtonID)
>{
>	Rect		itemRect;
>	long		ticksLater;
>	
>	itemRect = GetDRect (ButtonID);
>	InsetRect (&itemRect, 1, 1);
>	InvertRoundRect (&itemRect, 8, 8);
>	ticksLater = TickCount() + 10;			/* wait a sixth second...I don't know
*/
>	while (TickCount() < ticksLater) ;		/* if that is standard, I just
>guessed  */
>	InvertRoundRect (&itemRect, 8, 8);
>}

I don't believe this! How about this one:
void	FlashButton(DialogPtr theDialog, int buttonID)
/* This will also work in System 9.5 (known as 'Violett') where buttons
   become dark red with greenish dots when the are clicked */
{
GetDItem(theDialog, buttonID, &itemType, &itemHandle, itemBox);
HiliteControl(itemHandle, 1);
Delay(10);
HiliteControl(itemHandle, 0); /* that's it! */
}

By the way:
Delay causes the system to wait for the number of ticks (sixtieths of a
second)
specified by numTicks, and returns in finalTicks the total number of
ticks from
system startup to the end of the delay.

Warning:  Don't rely on the duration of the delay being exact; it will
usually
          be accurate to within one tick, but may be off by more than
that.
          The Delay procedure enables all interrupts and checks the tick
count
          that's incremented during the vertical retrace interrupt;
however,
          it's possible for this interrupt to be disabled by other
interrupts,
          in which case the duration of the delay will not be exactly
what you
          requested.

Assembly-language note:??On exit from this procedure, register D0
contains the
                         value of the global variable Ticks as measured
at the
                         end of the delay.

Andy (wuertz@tik.ethz.ch)

========================================================================
The only person who got all his work done by Friday was Robinson Crusoe.
========================================================================
Newsgroups: comp.sys.mac.programmer
From: Mel Walker <mwalker@novell.com>
Subject: Can I use Apple's Threads package in an MPW Tool?
X-Xxmessage-Id: <A6F879E266021E08@mwalker.npd.provo.novell.com>
X-Xxdate: Wed, 7 Oct 92 18:26:26 GMT
Organization: Society for Anarchic Totaltarianism
X-Useragent: Nuntius v1.1.1d9
Date: Wed, 7 Oct 1992 17:26:33 GMT

I am developing an MPW Tool, and I want to know if I can use Apple's
Threads package in it. I think that I should be able to, but I don't want
some weird bug to crop up later. So, if anyone knows, please email me.

Thanks!

--Mel Walker
mwalker@novell.com                                                       
    Disclaimer: My dog ate it.
Newsgroups: comp.sys.mac.programmer
From: Jeff E Mandel <mandel@tmc.tulane.edu>
Subject: Memory Manager-safe Deferred Tasks - A Proposal
X-Xxmessage-Id: <A6FF05D358013009@mandel.anes.tulane.edu>
X-Xxdate: Mon, 12 Oct 92 16:37:07 GMT
Organization: Tulane University School of Medicine
X-Useragent: Nuntius v1.1.1d12
Date: Mon, 12 Oct 1992 15:37:01 GMT
Nntp-Posting-Host-[nntpd-15017]: mandel.anes.tulane.edu

I was mulling over the recent thread on asynchronous MacTCP calls, and it
finally became clear to me what it was I wanted as a "real-time mac
programmer" - an oxymoron, to be sure.

Basically, I like the concept of the Deferred Task manager, but the only
thing it really gets me is the ability to do something in a small number
of milliseconds after an interrupt without making the cursor jump around
and other interrupt-driven code halt in its tracks. What I really want is
the ability to take the data I've gotten from the interrupting device and
stuff it into a pointer or handle at the soonest opportunity. Thus, what
I want is the ability to place a task in the DT queue, but flag it as
"don't call me until you can give me access to the specified heap".
Something like:

FUNCTION DTHzInstall (dtTaskPtr: QElemPtr, dtHeapZone: THz) : OSErr;

I looked in IM-VI (p28-30), and I noticed that there is a function
DeferUserFn, which is designed to defer an interrupt routine which might
cause a double page fault from occuring. What I want is different, but
conceptually similar. I have this task which I want to run, but which
isn't safe to run now, so Mr. Memory Manager, run it when next it can run.

Why does this help? Because currently, if I want to do anything that
requires using the memory manager, I'm using a private event queue, and
hoping that my application gets called often enough that my queue gets
serviced before it starts overwriting itself. Normally, this is no
problem, but what happens if I switch it to the background, and ask Word
to repaginate my 50 page document? Or if the Appleshare Server dies, and
Appleshare puts up a helpful Alert box to tell me this?

So my question is, would this meet people's needs? Are there other things
that are needed in a deferred task, or can everything else be forestalled
until the event loop? I'm not promising to implement this, or even to use
someone else's scheme that does this; I just want to get discussion (as
opposed to flames) going.

Jeff E Mandel MD MS
Associate Professor of Anesthesiology
Tulane University School of Medicine
New Orleans, LA

mandel@tmc.tulane.edu
Newsgroups: comp.sys.mac.programmer
From: heyes@dadev.cebaf.gov (Graham Heyes)
Subject: two screens on a "Classic" Mac?
Organization: Continuous Electron Beam Accelerator Facility
Distribution: comp.sys.mac.programmer
Date: Wed, 7 Oct 1992 19:29:21 GMT


This has been puzzling me for some time. Take a "classic" Mac,
i.e. 128, 512 or Plus, and add either an accelerator with 
video output capability or in the case of a Plus plug a SCSI
monitor. Quickdraw output etc pops up on your nice new 
external monitor. How? 
		       As far as I know desktops extended over
multiple screens, graphics devices and all that came in with
colour quickdraw and just isn't in the ROMs on these older
machines. You would have to patch quite a lot of quickdraw to
get graphics output over for example the SCSI bus. 

	This isn't just an accademic question. I put together
a small card which gives me memory mapped 800x600 pixel 
monochrome video output to a VGA monitor, the card sits on top
of the 68000 and taps directly into the processor bus. It all
works fine if I modify half a dozen low memory globals to 
re-define where the visible screen sits in RAM. If I do this
the regular 9 inch built-in screen is dead since the system 
only recognises one graphics device. It would be nice to have 
both screens operating at the same time but short of patching 
a lot of quickdraw I can't see an easy way since graphics
devices don't seem to be supported on the Mac Plus. 

	If anyone has any information on how to get multiple 
graphics devices to work on an older Mac please let me know.

	Thanks 
		Graham Heyes
From: michael@cwi.nl (M. Guravage)
Newsgroups: comp.sys.mac.programmer
Subject: hard disk resuscitation
Summary: resusciate crashed Hard Drive - How?
Keywords: hard drive crash repair
Date: 16 Oct 92 09:50:10 GMT

Yesterday, I rebooted my Mac+ after it got hung-up in an editing
application. Unfortunately, after that, I can no longer boot from the
hard drive.  Back at the office, with the help of a few tools, I've
discerned that two blocks: 1598 and 1620 have been are trashed. Has
anyone any advice as to how I can repair or otherwise tweak these
blocks and resuscitate my drive?

Any help will be more than appreciated.




-- 
Michael A. Guravage                                    Email: michael@cwi.nl
Centre for Mathematics & Computer Science (CWI)        Phone: +31 20 5924144
Department of Interactive Systems                      Telex: 12571 mactr nl
Kruislaan 413, 1098 SJ Amsterdam  The Netherlands      Telefax: +31 20 5924199
From: cnc@Apple.COM (Chris Christensen)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Problem with Apple Events
Date: 7 Oct 92 16:19:42 GMT
Organization: Apple Computer Inc., Cupertino, CA

mafk_s@chv.lincoln.cri.nz writes:

>I have been experimenting with Apple Events (actually from the Macintosh C
>Programming Primer Vol 1,  2nd edition) and have run into problems.  The
>intructions for sending an Apple Event say you have to call AECreateDesc(),
>AECreateAppleEvent() and AESend().  The first two calls return 0 (i.e. good) 
>error codes, but AESend() returns an error code of -609, invalidConnection.  Does

As I recall, it means that you have an invalid address for the application
you are sending to. I got this for instances before I found that I could
not send an AppleEvent using the typeApplSignature until the application
is already running.
Newsgroups: comp.sys.mac.programmer
From: wolfmc@rtsg.mot.com (Michael Wolf)
Subject: Suggestions for a good C++ Primer for Macintosh
Organization: Motorola Inc., Cellular Infrastructure Group
Date: Thu, 8 Oct 1992 17:49:48 GMT

I would like to know of a good C++ Primer, or should I just go
with the Think C Object Oriented manual which came with v5.0?

Thanks
From: sorchard@crowded-house.den.mmc.com (Steve Orchard)
Newsgroups: comp.sys.mac.programmer
Subject: Re: AppParmHandle - usable?
Date: 13 Oct 92 13:36:55 GMT
Distribution: usa
Organization: Martin Marietta

In article <48488@shamash.cdc.com>, paul@svl.cdc.com (Paul Kohlmiller) writes:
> 
>
> One person told me to use AppParmHandle. The code did things like
> SetHandleSize(AppParmHandle, ...)
> but this causes my Mac to crash. There doesn't seem to be any handle
> there to resize.
>

Did you unlock the handle before you tried to resize it.  I resize AppParmHandle
and it works for me.  I am using Think C and not MPW.

Steve Orchard
sorchard@crowded-house.den.mmc.com
Newsgroups: comp.sys.mac.programmer
From: aleskine@cs.hut.fi (Arto Leskinen)
Subject: Event loop with appevents
Organization: Helsinki University of Technology, Finland
Distribution: comp.sys.mac.programmer
Date: Thu, 15 Oct 1992 21:02:56 GMT

Does anyone have sample how to make up an event loop that uses apple
events for real work. So when user clicks Quit, it will send quit 
apple event to itself. How slow would it be?

What is PPC, program to program communication? How it differ from apple events.

Arto Leskinen
aleskine@cs.hut.fi
Newsgroups: comp.sys.mac.programmer
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Subject: Re: Gestalt, Think C and System 6
Organization: University of Illinois at Urbana
Date: Thu, 15 Oct 1992 16:28:22 GMT

absurd@applelink.apple.com (Tim Dierks, software saboteur) writes:

>In article <1bii82INNrnm@sol.deakin.OZ.AU>, webb@cm.deakin.OZ.AU (Geoff
>Webb) wrote:
>> 
>> Using Think C 5.0.3, with the declaration
>> 
>>         long gestalt_response;
>> 
>> the calls
>>         Gestalt(gestaltFindFolderAttr, &gestalt_response);
>>         Gestalt(gestaltNotificationMgrAttr, &gestalt_response);
>>         Gestalt(gestaltHelpMgrAttr, &gestalt_response);
>> 
>> all fail to alter the value of gestalt_response when run on System 6.

>You really need to start checking errors.

1. The Notification Manager is definitely in System 6, and I thought
it was there before Gestalt was. Is there no selector for it under
System 6?

2. I think Geoff is using the THINK C (i.e. MPW) Gestalt glue. I
thought it would answer these calls appropriately. Maybe not?

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: engber@ils.nwu.edu (Mike Engber)
Subject: 'lmem' system resource
Summary: looking for details
Organization: The Institute for the Learning Sciences
Date: Mon, 12 Oct 1992 13:35:59 GMT


i am looking for documentation on the 'lmem' system resources,
numbers -16458 and -16459.

empirical evidence seems to suggest that these contain low-memory
information for processes that are not currently active.

specifically, i would like to know the format and content of
these resources at runtime.

I know this is information that is liable to change in the future.
MacDTS said they were not allowed to give out the info, but they
suggested the internet as a good place to try. 

please cc via email if possible.

-ME