HDTenEightyP/NetNews huggingface dataset:
From: pdsaffer@malloco.Ing.puc.cl (pdsaffer)
Subject: MacApp: Inexistenet New Inspector Window WHY ??? HELP !!!
Organization: Pontificia Universidad Catolica de Chile
X-Newsreader: Tin 1.1 PL5
Date: Wed, 11 Nov 1992 18:34:16 GMT

Hi,

	I'm implementing my thesis project using MacApp 3.0, programming in
C++. As I am mew to MacApp programmer (and to mac-programming) I decided
to go through the tutorial for MacApp 2.0. 

	I wish if someone could kindly answer the following questions...

[1] Is there any documentation for MacApp 3.0 (I mean in C++, not in object
    Pascal)? If so, please let me know what is available. I went through
    APDA's latest catalogue and could not find anything.

[2] As the tutorial of MacApp 2.0 is based on object Pascal, I've been
    translating the code to C++. I've just reached chapter 8 which talks
    about inspecting objects using the "New Inspector Window" option of
    the debug menu. Supringly enough, although the debug menu exists,
    it doesn't contain this option. Could someone tell me WHY ????

					Thanks in advance,
					Paul D. Saffery G.
					email: pdsaffer@malloco.ing.puc.cl

Newsgroups: comp.sys.mac.programmer
From: mebhl@wombat.newcastle.edu.au (TUNRA Bulk Solids)
Subject: True OOP languages
Organization: University of Newcastle, AUSTRALIA
Date: Wed, 11 Nov 1992 06:16:45 GMT

I've read, on the net, that THINK C and THINK Pascal are not true OOP
languages because they don't provide operator overloading. Is this true?

Thanks, Simon.
From: ericsc@microsoft.com (Eric Schlegel)
Subject: Re: Button() not callable from interrupt ?
Date: 10 Nov 92 16:36:53 GMT
Organization: Microsoft Corporation
Distribution: comp

In article <ROBERT.92Nov9103642@wsooti11.info.win.tue.nl> robert@wsooti11.info.win.tue.nl (Robert Lukassen) writes:
>I ran into a bit of trouble the other day when I tried to read the state of the
>mouse-button from an interrupt-routine. I know that the state of the button
>is represented by a single bit in some low-memory variable and this works well,
>but why does (the old version of) Inside Macintosh claims that Button() can
>move or purge memory. That is absolutely insane! A simple fetch of a low-memory
>variable can't trigger a memory move or memory purge. What are they doing that
>makes calling Button() so dangerous?

Unfortunately, they're checking to see if journalling is on, and if so, making
a call to the journalling driver, which CAN move memory. It's not just a simple
fetch.

I had the same problem - currently I'm reading MBState directly, for lack of
a better solution, but I sure wish there was a better way...

-eric
------
My opinions, not Microsoft's.
Newsgroups: comp.sys.mac.programmer
From: suddejw@shuttle.msfc.nasa.gov (John Sudderth)
Subject: How to create path on the fly
Followup-To: comp.sys.mac.programmer
Organization: Boeing
Date: Fri, 13 Nov 1992 17:41:04 GMT

In a copy function I call "Create" passing a valid pathname in destination.

if (Create((StringPtr)destination, curVolume, creator, type) != noErr) {
				DisplayError ("Error: Can't create destination file.");
				FSClose(orgRef);
				return 1; 

Let's say destination contains:"HD80:Utilities:My Program". How can I
create the folder Utilities if it doesn't already exist so that create
doesn't fail?

Thanks in advance...

John
Newsgroups: comp.sys.mac.programmer
Subject: Scripting?!?!?!
From: mgeorgy@vmsclst1.sc.csupomona.edu
Date: 9 Nov 92 14:42:01 PDT
Organization: Computer Science Computational Systems
Nntp-Posting-User: mgeorgy

I was just wondering wheather anyone out there can recommend a telecomm program
that has a really good scripting language or just a scripting program for the
mac???


Thanx,
Matt Georgy
Newsgroups: comp.sys.mac.programmer
From: spryn@cci632.cci.com (Mike Spryn)
Subject: Hierarchical PopUp menus
Keywords: menu, popup, hierarchical, submenu
Organization: [Computer Consoles, Inc., Rochester, NY
Date: Fri, 6 Nov 1992 22:30:48 GMT

I have a need to display hierarchical menus within popup menus.
I've got all the menu resources defined and linked properly (I think!)
with ResEdit.  I've followed all the examples that I have been
able to find.  So far I only get the first level popup menu
with the triangles to popup.  I can not get any submenus to come up.
The information I have so far is that ModalDialog() can not do
popup with submenus, that I have to do it myselft with PopUpMenuSelect().

I'm running on 7.0.1 and 7.1 with no requirements to run on anything
older.

Does anyone have any suggestions???!!

Michael Spryn
spryn@cci.com
-- 

Michael D. Spryn     Computer Consoles, Inc.
716/482-5000         ....rochester!cci632!ccird3!spryn

Newsgroups: comp.sys.mac.programmer
From: jack@umbio.med.miami.edu (Jack Herrington)
Subject: Elaborate text editing package request...
Organization: University Of Miami, Biomedical Computing
Date: Fri, 6 Nov 1992 02:35:26 GMT

The application I'm writing needs a somewhat robust (more than simple
TextEdit) text editor for doing some simple note-pad stuff.  Tabbing,
justification, font handling, etc... is all it really needs.  I don't want
to spend the months doing it really correctly so if anyone out there
has any pointer to ANYTHING, public domain or otherwise, drop me a line...

Thankx.

-Jack
-- 
"Down in Joe's garage, we didn't have no dope, or LSD.  But a couple o'
 quarts of beer would fix it so the intonation would not offend your ear"
		-Frank Zappa
Newsgroups: comp.sys.mac.programmer
From: mikaelk@tdb.uu.se (Mikael Kristoffersson)
Subject: Re: Another THINK C 5.0.3 bug?
Organization: Dept. of Scientific Computing, Uppsala Univ.
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 9 Nov 1992 17:28:44 GMT

Chewbacca (simsh@crockett1a.its.rpi.edu) wrote:
: Hello everyone. Here is my test program:
: 
:    #include <stdio.h>
: 
:    void main()
:    {
:       int h;
:       h=5;
:       printf("%d\n",h);
:    }
: 
: Simple enough. Well, with 4-bit ints turned on, this program prints out 0.
: With 4-bit ints off, it prints 5 like it should. The global optimizer is off.
: Is this another bug? Or has it already been seen and I just didn't read about
: it?
: 

If you change size of integers, you will have to re-compile the ANSI library
too. The library delivered with THINK-C is compiled with 16-bit ints, and
will not work with code compiled with the "4-byte ints" (32-bit ints) option 
on. All the source-code is supplied, so it's no big deal, but it has to be done.


/Mikael Kristoffersson

********************************************************************************
English is not my native language.                     E-mail: mikaelk@tdb.uu.se
From: werner@soe.berkeley.edu (John Werner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MacApp: Inexistenet New Inspector Window WHY ??? HELP !!!
Followup-To: comp.sys.mac.programmer
Date: 11 Nov 1992 20:15:57 GMT
Organization: UC Berkeley School of Education
Distribution: world
NNTP-Posting-Host: 128.32.157.31

In article <1992Nov11.183416.461@tolten.puc.cl>,
pdsaffer@malloco.Ing.puc.cl (pdsaffer) wrote:
> [1] Is there any documentation for MacApp 3.0 (I mean in C++, not in object
>     Pascal)? If so, please let me know what is available. I went through
>     APDA's latest catalogue and could not find anything.

Ahem.  MacApp 3.0 comes with documentation.  At least mine did.  There are
three manuals: "Programmer's Guide to MacApp", "MacApp Tutorial (C++)", and
"Guide to MacApp Tools".

>     about inspecting objects using the "New Inspector Window" option of
>     the debug menu. Supringly enough, although the debug menu exists,
>     it doesn't contain this option. Could someone tell me WHY ????

Most of the built-in MacApp debugger was removed in release 3.  You can use
the Inspector windows in SourceBug, though.

--
John Werner                         werner@soe.berkeley.edu
UC Berkeley School of Education     510-642-9651
Newsgroups: comp.sys.mac.programmer
From: kent@lloyd.Camex.COM (Kent Borg)
Subject: Re: any Mac shells out there?
Organization: Camex Inc., Boston MA
Date: Wed, 11 Nov 1992 23:37:45 EST

In article <1992Nov10.221310.26064@athena.mit.edu> scs@adam.mit.edu (Steve Summit) writes:
>I know that MPW comes with such a shell...

Buy MPW.  

If you want any richness, the ability to compile Unix-like tools
easily, etc., the only thing for you is MPW.  Yes, it has a learning
curve, but that is part of the command line territory.  Yes, it costs
money, but if you wanted a cheap command line the Mac was the wrong
computer to buy/borrow.

-kb, still feeling grumpy

--
Kent Borg            kent@camex.com or kentborg@aol.com (when it is *working*)
                                            H:(617) 776-6899  W:(617) 426-3577
As always, things look better when some costs are left out.
						      -Economist 3-28-92 p. 94
Newsgroups: comp.sys.mac.programmer
From: isc30176@nusunix1.nus.sg (CHEN JIA TYAN)
Subject: C error in MPW -- What's wrong?
Organization: National University of Singapore
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 5 Nov 1992 07:32:46 GMT

Please help.  This is part of the makefile in MPW 3.1

|C  -i 	'MacintoshHD:Project:SHILPA:include:' 6
|   -i   'MacintoshHD:Project:SHILPA:BMP:sunos:' 6
|   -i   'MacintoshHD:Development:MPW3.1:MPW:Interfaces:CIncludes:' 6
|   -i   'MacintoshHD:Project:shilpa.proj:' 6
|   -d 	MAC 
|MacintoshHD:Project:SHILPA:BMP:sunos:bmp_inet.c

What is with this error?

|# 14:57:58 ----- Build of bmpinet.
|# 14:57:59 ----- Analyzing dependencies.
|# 14:58:02 ----- Executing build commands.
|    C -i 'MacintoshHD:Project:SHILPA:include:' -d MAC 6 
|# C - Can't open file :  
|# File not found (OS error -43)
|# C - Aborted !
|### MPW Shell - Execution of bmpinet.makeout terminated.
|### MPW Shell - Execution of BuildProgram terminated.

It always gives this error after -d MAC, no matter where I place this -d.
Thanks.
--
CHEN JiaTyan
isc30176@nusunix1.nus.sg
chenjiat@nusdiscs.bitnet
Newsgroups: comp.sys.mac.programmer
From: bwilliam@iat.holonet.net (Bill Williams)
Subject: Re: Z-Modem Protocol Source needed
Organization: HoloNet (BBS: 510-704-1058)
Date: Mon, 9 Nov 1992 03:05:18 GMT
Re: official ZModem C source...

If you use the source written by Chuck Foresburg directly, you cannot use
it in a commercial product royalty free.

But if you still want the source, it is important to point out that it is
VERY hard to read and highly integrated with certain UNIX system routines.

I believe Chuck sells the distribution code for about $90.00 if you want
the latest version THAT *HE* WROTE, as oppesed to all the PD source others
wrote.

Here is the info you you requested :

Chuck Forsberg WA7KGX          ...!tektronix!reed!omen!caf 
Author of YMODEM, ZMODEM, Professional-YAM, ZCOMM, and GSZ
  Omen Technology Inc    "The High Reliability Software"
17505-V NW Sauvie IS RD   Portland OR 97231   503-621-3406
TeleGodzilla:621-3746 FAX:621-3735 CIS:70007,2304 Genie:CAF

----



I hope that helps,

Bill Williams

Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: WaitNextEvent availability
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Thu, 12 Nov 1992 22:55:25 GMT

In article <1992Nov12.180837.11646@midway.uchicago.edu>,
merv@ellis.uchicago.edu (garrett marvin derner) wrote:
> 
> In 'Macintosh Programming Secrets' by Knaster & Rollin, it's solved
> this way:
> 
> #define WNE_TRAP_NUM      0x60
> #define UNIMPL_TRAP_NUM   0x9F
> . . .
> Boolean	gWNEImplemented;
> . . .
>     gWNEImplemented = (NGetTrapAddress(WNE_TRAP_NUM, ToolTrap) !=
>                        NGetTrapAddress(UNIMPL_TRAP_NUM, ToolTrap));
> . . .
>     if( gWNEImplemented)
>         WaitNextEvent(everyEvent, &theEvent, MIN_SLEEP, NIL_MOUSE_REGION);
>     else  {
>         SystemTask();
>         GetNextEvent( everyEvent, &theEvent);
>     }

Uh, thanks for the attribution, but I'm afraid there's nothing like that in
'Macintosh Programming Secrets' by Knaster & Rollin. Perhaps in the first
edition (by Scott only), but not in the second (by both of us). In our
shell application, we check at the start of the application for
WaitNextEvent by calling TrapExists (which has recently been posted here
about 1000 times, so I won't do it again). If it is not implemented, we
post an alert and quit.

I think that the practice of using GetNextEvent if WaitNextEvent is not
implemented is fading. I think that most people are requiring that
WaitNextEvent exists. Mac DTS sample code supports this, too.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
From: jeremyr@dcs.qmw.ac.uk (Jeremy Roussak)
Newsgroups: comp.sys.mac.programmer
Subject: INIT file corrupted by crash
Date: 12 Nov 92 22:20:54 GMT
Organization: Computer Science Dept, QMW, University of London


Yes, I realise the title refers to a common event! However, the
corruption is interesting and unusual.

Often when a crash occurs, the INIT file, which is open, is not
touched. However, sometimes, both resource and data forks
become empty, although the file remains at its original size
and can be copied. Presumably although the resource fork
appears to contain no resources, it does contain data.

What is likely to have happened to the resource map? What, if
anything, am I likely to be able to do about it?

All help gratefully received.

Jeremy
Newsgroups: comp.sys.mac.programmer
From: wingo@apple.com (Tony Wingo)
Subject: Re: looking for a REALLY RaNdOM "RANDOM"
Date: Mon, 9 Nov 1992 21:38:04 GMT
Organization: Apple Computer
Followup-To: comp.sys.mac.programmer

In article <1djhjiINNhlc@mthvax.cs.miami.edu>, rsherman@mthvax.cs.miami.edu
(Roby Sherman) wrote:
> 
> Hello all.
> 
> I'm looking for a pascal piece of code that illustrates a really nice
> random number generation.
> 
> I'm working on an INIT that needs a few random numbers and at boot time,
> Apple's RANDOM function seems to always retrurn the same old thing.
> Any ideas?
> 

To the best of my knowlege, Apple's random number generator is based on
Park and Miller's "Minimal Standard Random Number Generator", which is
about as good as you are going to get for a 31-bit multiplicative residue
RNG.  The reason you are always getting the same sequence is that you are
not setting the seed to something different each time you start up.  Set it
to something like the time of day.

For coding examples, and some theory, check out Park and Miller's article: 
"Random Number Generators: Good Ones Are Hard To Find", CACM Vol 31, Number
10 (Oct 1988).

And of course, if you really want to get down to the nitty-gritty theory
behind RNG's, there is always Vol 2. of Knuth.

-tony
>>usual disclaimer<<
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: DoubleTrouble bad under 6.0.7?
Date: 12 Nov 92 14:31:43 GMT
Followup-To: comp.sys.mac.programmer
Organization: personal

In article <Bx6Ipx.H2D@iat.holonet.net>, bwilliam@iat.holonet.net (Bill
Williams) wrote:
> 
> I use DoubleTrouble and its twin "DisposeResource" all the time and I
> trust them. Both are priceless and quite helpful.

Yes, but under system 6? 

> Do you have a debugger in memory with plenty of RAM?

MacsBug 6.2.2

5Mb Mac ii, adjusted system heap, system heap looks comfortable, only Think
C was running, and it was comfortable too.

> Is your debugger running well?

no complaints to date

> Do you have other inits installed?

mais certainment.

> If you still have trouble with it tell us, because I am a fanatic for
> running only well written extensions and would not want to be disappointed
> after many months of trust.

Actually, I have ceased, pending more feedback from here, s'been
disapointing to date.

--

Dana S Emery <de19@umail.umd.edu>
From: aep@world.std.com (Andrew E Page)
Subject: Re: TCP/IP C Libraries for Macintosh?
Organization: The World Public Access UNIX, Brookline, MA
Date: Wed, 11 Nov 1992 13:39:19 GMT


  check out comp.sys.mac.comm  There is an FAQ list for it
that includes a pointer to files on ftp.apple.com for TCP/IP
programming examples.  

-- 
Andrew E. Page   (Warrior Poet) |   Decision and Effort The Archer and Arrow
Mac Consultant                  |     The difference between what we are
Macintosh and DSP Technology    |           and what we want to be.
From: 52kaiser@sol.cs.wmich.edu (Matthew Kaiser)
Newsgroups: comp.sys.mac.programmer
Subject: NEC CDR74 & Photo-CD
Summary: NEC CDR-74 & Photo-CD
Keywords: CDR74
Date: 12 Nov 92 14:58:03 GMT
Organization: Western Michigan Univ. Comp. Sci. Dept.

hi netters..
	(squirrels might be a good nickname)

i bought a NEC CDR-74 CD-ROM drive just before Photo-CD became publicnews.

what do i need to do to make this drive read a Photo-CD
or do i need to trade it in?

thanks

matthew
52kaiser@sol.cs.wmich.edu				galileo
							blackcat
Newsgroups: comp.sys.mac.programmer
From: mak+@cs.cmu.edu (Matthew Alan Kane)
Subject: Color Table Animation Guidance Sought
Organization: School of Computer Science, Carnegie Mellon
Date: Wed, 11 Nov 1992 06:04:54 GMT

I need to do some simple color table animation.

I've been flipping through IM and browsing through ThinkRef and 
hacking like a loony -- I now turn to Those Who Know.

I'm seeking brief instructions for setting up my clut and pltt,
and a C code fragment showing how to make it flow.

Thanks,
		Matthew  --  mak@cs.cmu.edu

Newsgroups: comp.sys.mac.programmer
From: jvp@vlsi2.ee.iastate.edu (Jim Van Peursem)
Subject: How to tell screen depth?
Organization: Iowa State University, Ames IA
Date: Thu, 12 Nov 1992 17:21:00 GMT

  How do I tell the screen depth of the monitor that one of my window's is
in?  I don't want to know if the computer has color quickdraw.  I want to
know whether to draw the window in color or not based on the pixel depth
of the screen.  Can anyone point me in the right direction please?

+---------------------------------------------------------------+
| Jim Van Peursem - Ph.D. Student - Ham Radio -> KE0PH          |
| System Administrator - Digital Systems Design Lab             |
| Department of Electrical Engineering and Computer Engineering |
| Iowa State University - Ames, IA 50011                        |
| internet - jvp@cpre1.ee.iastate.edu                           |
|          - jvp@iastate.edu                                    |
+---------------------------------------------------------------+
From: matti@my.sm.luth.se (Matti Larborn)
Newsgroups: comp.sys.mac.programmer
Subject: Help updating windows
Date: 5 Nov 92 11:51:28 GMT
Organization: Lule} University
X-UserAgent: Nuntius v1.1.1d11
X-XXMessage-ID: <A71EC94D4501037B@sm-emac15.sm.luth.se>
X-XXDate: Thu, 5 Nov 92 11:51:25 GMT

You can use two updating modes for windows in the toolbox.

	1) Each time an update event occurs you redraw the content of the window
requested.

	2) You set the window picture to a pict. The toolbox will now redraw the
windows contents each time it is needed.

How should this second approach be implemented?

	1) Should I use OpenPicture and then ClosePicture to create a window
picture? Then SetWindowPic to bind my window to the pict. Would this do
it?
	2) Or must i use OpenPicture and ClosePicture every time I draw in the
window?
	3) Something else...

I am using Think Pascal 4.0.1

The first approach makes my application crash on the ClosePicture call!


	--Matti Larborn, Sweden.
From: Mark.R.Valence@dartmouth.edu (Mark R. Valence)
Newsgroups: comp.sys.mac.programmer
Subject: Re: INIT's/System Extension Questions
Date: 9 Nov 92 14:29:44 GMT
 <19028@ucdavis.ucdavis.edu>
Organization: Dartmouth College, Hanover, NH
X-Posted-From: InterNews1.0a5@newshost.dartmouth.edu

In article <19028@ucdavis.ucdavis.edu>
cklarson@taquito.engr.ucdavis.edu (Christopher Klaus Larson) writes:

> In article <1992Nov5.184623.15326@asuvax.eas.asu.edu> system@asuvax.eas.asu.edu (Marc Lesure) writes:
>  
> >Also, are there any snippets showing the best way to show an INIT icon
> >during the booting sequence?
>  
> I'm not sure if this is the _best_ way to show an icon during startup, but
> it has always worked for me. :-)
> 
> Feel free to use this as you see fit. Optimizations and bug fixes welcome.

I have two minor comments:

1.  You save A5, and then restore A5 AND CurrentA5 to the A5's original
value.  This is dangerous, as you are assuming A5 points to a valid
quickdraw globals area upon entry to your code.  I would suggest
instead that you save BOTH A5 and CurrentA5 in separate locations, and
restore them separately.  If you don't, you will see some weird bugs
with some pretty widely used INITs (I won't mention any names).

2.  You should probably give some credit to the guys who wrote the
original and most widely used version of this code.  They were the
ones, I believe, who first used CurApName for temporary storage, and
made it the "standard".  I, too have written my own version of this
code (it's smaller than the original, and does the same stuff), but my
code still credits the original source.

Mark.
From: pbonner@apple.com (Pace Bonner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How can I test whether a directory is a share point?
Date: 10 Nov 92 18:56:59 GMT
Article-I.D.: goofy.32857
Organization: Apple Computer, Inc.
X-UserAgent: Nuntius v1.1.1d12
X-XXDate: Tue, 10 Nov 92 18:54:40 GMT

You might want to look in IM Vol V p388 for a call to PBHGetDirAccess.

Hope this helps,

Pace
************************************************************************
Pace Bonner
Apple Computer, Inc.
Internet:pbonner@apple.com
AppleLink:P.BONNER
America Online:P.Bonner
CIS:76350,105
Newsgroups: comp.sys.mac.programmer
From: hliu@eniac.cs.oberlin.edu (Hsing-Kang Liu)
Subject: about PBGetCatInfo in file manager
Organization: Oberlin College Computer Science
Date: Thu, 12 Nov 1992 21:44:03 GMT
Distribution: comp.sys.mac.programmer
X-Posted-From: eniac.cs.oberlin.edu
NNTP-Posting-Host: sol.ctr.columbia.edu

I am trying to use the function PBgetCatInfo,

In the Inside Mac IV  page 156 says that if ioFDIRIndex is negative, the file manager ignores ioNamePtr and returns information about the directory specified by ioDirID.  I have assigned ioNamePtr pointed to a null string, ioFDIRIndex:=-1, and iovrefnum:=-1, I am not able to get the info about the directory or files specified by ioDirID.  I am keeping getting and error -43 can anyone tell me what is wrong here?

What I really need to get is the parent dirID from the current dirID and the name of the current dirID with only knowing the current dirID and iovrefnum.  

Thanks

Kevin

hliu@occs.cs.oberlin.edu
From: bowman@reed.edu (BoBoRamDos)
Newsgroups: comp.sys.mac.programmer
Subject: Re: A simple question from a beginner.
Keywords: simple C youKnowTheAnswer help
Date: 12 Nov 92 09:41:26 GMT
Article-I.D.: reed.1992Nov12.094126.13740
Organization: Reed College, Portland, OR

In the last article I wrote:
>Your code tells printf to print the ascii equivalent of the highest byte of
>the address pointed too!

That should be "the highest byte of the address of the character pointed to."

Duh.  Me go sleep.

bobo
bowman@reed.edu
Newsgroups: comp.sys.mac.programmer