HDTenEightyP/NetNews huggingface dataset:
From: bpb9204@tamsun.tamu.edu (Brent)
Subject: Re: ResEdit "Resource not found" error
Organization: Texas A&M Univ., Inc.
Date: Thu, 1 Oct 1992 05:14:27 GMT

To followup to my problem, it is now solved.

bpb9204@tamsun.tamu.edu (Brent) writes:
|
|What happens is that, for some reason, ResEdit will announce that a resource
|was not found (error -192) when you are either trying to open an 
|existing resource file or when you are creating a new file.

I don't know what it was looking for, but by reinstalling the complete
system the problem was solved.  So, something must have been plucked from
my system file at some point in time.

Thanks anyway,
-Brent
-- 
------------------------------------------------------------------------------
Brent P. Burton, N5VMG                          Department of Computer Science
bpb9204@tamsun.tamu.edu                                   Texas A&M University
      What are typical family values?      Good buys at WalMart.
Newsgroups: comp.sys.mac.programmer
From: howes@cat14.cs.wisc.edu (Glenn Howes)
Subject: Object Definition-->Macsbug Template. How?
Organization: University of Wisconsin, Madison -- Computer Sciences Dept.
Distribution: usa
Date: Wed, 30 Sep 1992 14:17:33 GMT


I would like to know if there is an automated way to convert the
definition of a Think C Object to a Macsbug template (a 'mxwt' resource).
Baring that how does one go about generating one by hand.

FYI, I'm writing a code resource with Think C's object extensions so I wont
be able to use the Think C debugger. BTW, why does Think C require that
the multi-segment option be checked on for code resources that use the
object extension. Does this mean it will allways generate more than one
segment even for very small projects?

Thank you.




-- 
------------------------------------------------------------------
Glenn R. Howes              Internet: howes@bert.chem.wisc.edu
author: Kermit Tool GH      // Picard & Riker in '92 
------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer
From: dan@chaos.cs.brandeis.edu (Dan Schwarz)
Subject: Re: Sound Manager Phooey!
Keywords: Sound Manager, Spanish Inquisition
Organization: Brandeis University
Date: Mon, 5 Oct 1992 02:27:12 GMT

In article <w=mz_wc@rpi.edu> johnsd2@rpi.edu writes:
>I am having a problem with an extension I am writing. This extension
>is really a background app (type='appe'), which plays sounds asynchronously
>in the background (which sounds are specified with annother program, that
>works);
...
>This strange freeze happens on a friends LC whenever
>the sound is played, even  from an APPL. (but only if its
>asynchronously)

Speaking as a programmer who has done some SERIOUS sound manager hacking,
I can sympathize with your frustration. Here's what I can tell you:

* the Mac LC uses a crippled version of the Apple Sound Chip. So does the LC II
and Classic II, by the way. Major difference is that this chip can only handle
monophonic sound output, and cannot support simultaneous sound recording &
playback.

* the System 6.0.7 and 6.0.6 sound managers have MAJOR bugs, especially when
dealing with the LC. These systems' sound input managers were taken directly
from alpha versions of System 7.0 (in the rush to ship the first LC and IIsi 
units.) Don't trust the Gestalt values they return, for example.

* Use 7.0 or later versions, but this won't solve all your problems. I am 
convinced that there are hardware or software bugs in Apple's handling of
this particular sound chip. For example, play back a QuickTime movie with
sound (in SimplePlayer or any similar product.) Switch out of the layer
into a product which does sound recording or otherwise uses the sound manager.
Switch back. Odds are, the sound will be silenced upon returning to the QT
movie. I don't know how to solve this problem.

Unless the "delay" tactic mentioned earlier is successful, the only thing
you can do is to complain to MacDTS until you get a reasonable response.
They're not very forthcoming about Mac sound internals, but be specific with
your problem and maybe you can get a workaround.

_Dan
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: CSMP FAQ Moderator Retiring
Date: 28 Sep 92 06:28:44 GMT
Article-I.D.: cs.1992Sep28.062844.22385
Organization: University of Oregon Computer and Information Sciences Dept.


Due to a lack of time and motivation, I do hereby retire as moderator of the
Frequently Asked Questions list for this newsgroup.  I hope someone will
offer to take over this most prestigous and rewarding position (ahem).
All persons volunteering for this position should write to me - the first
such person will receive everything I have collected for the FAQ, and all
subsequent persons' messages to me will be forwarded to the first person, so
that they can fight amongst themselves to decide who gets the honor of
continuing this monumental effort.

Later,

Mike.
-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
Newsgroups: comp.sys.mac.programmer
Subject: Best Debugger for MPW/C++?
From: David Gladstone <D_Gladstone@cs.aukuni.ac.nz>
Date: Mon, 28 Sep 1992 23:39:06 GMT
Organization: Computer Science Dept., Auckland University.
X-Useragent: Nuntius v1.0

I am soon to be embarking on a project that will require the use of C++.
Currently we have MPW C++ v3.1 and Zortech C++ v2.1 for MPW.  The question
I have is about debuggers.  From what I've read in the August APDA
catalogue, there are two options:

SADE 1.3.2 : Good scripting, but does not appear to have support for class
             browsing etc.

SOURCEBUG v1.0.1 : "Special support for debugging MacApp and object
                   oriented code."

                   "A browser interface to display the classes and methods
	                  of MacApp or an object oriented program."

How do these products fare?  Is the class browser in SourceBug better,
worse, or on par with Think Pascal's (with which I am familiar)?

Are there any alternative products on the market which are better?

If SADE and SOURCEBUG are the only viable products, which should I buy?
Or 
should I buy both?

Either post or email your recommendations.

Thank you.

D_Gladstone@cs.aukuni.ac.nz   // Dept of Computer Science, // In real life
=============================// University of Auckland,   // as opposed to
Ph: (64) (9) 373-7599 x5336 // Private Bag 92019,        // in a computer:
Fax:(64) (9) 373-7453      // Auckland, New Zealand.    // David Gladstone
Newsgroups: comp.sys.mac.programmer
From: tree@kira.uvm.edu (Tom Emerson)
Subject: Re: Question on TC 5.0.3 and segments
Organization: University of Vermont, EMBA Computer Facility
Distribution: na
Date: Mon, 28 Sep 1992 12:46:54 GMT

The other replys answer all of your questions quite well, I'll just add a
little afterthought:

In article <1992Sep25.162519.3877@news.columbia.edu> sll2@cunixa.cc.columbia.edu (Steven L Levitt) writes:

>Can I call UnloadSeg on a class's method?  How can I tell which segments I can
>unload?  (O.K. so that's really more than one question.  Geez, cut me some 
>slack).

No, unless it is declared static. Adding a dummy() proc to each segment and
passing that to unload seg is the best way. Also, there are six files that
*must* stay in a resident segment (i.e. should not be unloaded): MacTraps,
MacTraps2, oops/oopsDebug, TCLUtilities.c, Exceptions.c, and Exceptions.c. As
has been mentioned you want to make sure that you not unload segments in the
call chain or you will crash miserably.

Tom
--
   Tom Emerson                                    Technical Support
   Language Products Group                     Symantec Corporation
			Internet: tree@uvm.edu
From: Meessen@slig.ucl.ac.be (Christophe Meessen)
Newsgroups: comp.sys.mac.programmer
Subject: Think C bug ? (updated)
Date: 6 Oct 92 10:18:19 GMT
Followup-To: comp.sys.mac.programmer
Organization: Universite Catholique de Louvain (Belgium)

Teaching C to a friend I fall on the following problem:

If I compile the following program, everything is right:

main() {
   printf( "Hello world !" );
}


The following program worked also fine :

main() {
   short i = 3;

   printf( "a number : %d ! ", i );
}

Ok, nothing new here !

But now, when I write the following program the compilation stops and tell
me that there is an error :

main() {
   short i = 3;

   printf( "a number : %d ! \n", i );

   printf( "Hello world !" );  <== Wrong number of parameters here !!!!
}

It was unexpected and made a bad impression on my friend.

The problem seems related to printf signature (or prototype).

If I change the "wrong" line to 

   printf( "Hello world !", i );

Every thing works fine !!

Very strange, isn't it ?

Is this standard C or Think C bug ?
Any comment on that ?

Think C used is 5.0.x (I dont remember last number)

Bien cordialement,

                           Christophe MEESSEN
From: rpd@hera.Sbi.Com (Richard P. Daley)
Newsgroups: comp.sys.mac.programmer
Subject: Regular Expressions
Date: 30 Sep 92 23:19:11 GMT
Distribution: usa
Organization: Fulcrum - Salomon Brothers, NY

Does anyone know where I can find source code to implement searching through
text for regular expressions?  I'm hoping to find something like re_comp()
and re_exec() on the Sun.
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: Sound Manager Phooey!
Organization: Kalamazoo College
Date: Tue, 6 Oct 1992 12:49:41 GMT

johnsd2@rpi.edu writes:
>Jamie R. McCarthy writes:
>> I was going to suggest using a custom double-buffering routine, but I've
>> never done it myself so I can't give advice.  I'd try that before
>> calling up MacDTS though.
>
>Waitaminute. I thot double buffering was a trick you could do
>to play direct from disk... if not, what is it?

To quote IM VI 22-72:  "The play-from-disk routines make extensive use
of the SndPlayDoubleBuffer function.  ...  By using SndPlayDoubleBuffer
...you can specify your own doubleback procedure (that is, the algorithm
used to switch back and forth between buffers) and customize several
other buffering parameters.  Note:  SndPlayDoubleBuffer is a very
low-level routine and is not intended for general use.  You should use
SndPlayDoubleBuffer only if you require very fine control over double
buffering."

Double buffering will allow you to play sounds back-to-back,
continuously.  You can get the sounds directly from disk if that's what
your doubleback procedure does;  or, you can synthesize them, read them
from RAM, whatever.

The initial question (I think?!) was about playing some sounds
back-to-back.  Double-buffering will let you do that too (though, if you
have the RAM, and you don't mind BlockMove()ing it around, it's easier
to set up a SoundHeader with the combined data).
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 I tried to sleep my way to the top
 But my alarm clock always woke me right up
Newsgroups: comp.sys.mac.programmer
From: raffuj@aix.rpi.edu (Jose Raffucci)
Subject: Appending text to filename help needed!
Organization: Rensselaer Polytechnic Institute, Troy, NY
Distribution: usa
Date: Sun, 27 Sep 1992 00:43:28 GMT

I'm going nuts trying to fiddle with c and pascal strings back and forth!
I want to append a suffix to a file once the user puts in the name via
standardGetFile.  Does anyone know an *easy* way to do this?  granted, 
it's just ccat-ing 2 strings together, but I've just about given up...

-hOz

-- 
/*-----------------------------------------------------------------------------           
  //  The Amigoids from hell,     raffuj@rpi.edu    "I smell something Stinkee!"                  
\X/  Renssepolyinstatechnitute               "Hoek, you idiot, Hoek, not HORRK!"                                     
   "Ignorant?  What's ignorant??"  "*boink, boink*  I dunno, but weeez it!"
Newsgroups: comp.sys.mac.programmer
From: lsr@taligent.com (Larry Rosenstein)
Subject: Re: GetMenu & 32-bit Conflict Mystery
Followup-To: comp.sys.mac.programmer
Organization: Taligent, Inc.
Date: Thu, 1 Oct 1992 01:53:11 GMT

In article <1992Sep30.205349.11374@lonex.rl.af.mil>, winter@ra.rl.af.mil
(Jim Wintermyre) wrote:
> 
> that changing the GetMenu call to GetMHandle fixes it!  Are you reading in
> the menu bar with GetNewMBar?  If so, I think that problem has to do with
> the fact that GetNewMBar automatically reads the menus into memory.  This is
> the same thing that GetMenu does, so maybe GetNewMBar screws it up.  Anyway,

When you read in a menu with GetMenu (or indirectly with GetNewMBar) the
resource ID of the menu definition (and the following 2 bytes) is changed
to hold the handle to the MDEF.  So you cannot call GetMenu twice on the
same menu, without first flushing the changed version from memory or
detaching the resource.

> GetNewMBar crashes.  Anyway, GetMHandle works fine, and at least according

GetMHandle only works for menus installed in the menu bar.  If you want to
get a handle to another menu, you have to call the Resource Manager
directly.

Larry Rosenstein
Taligent, Inc.

lsr@taligent.com
Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: Source Code: SFMultiGet
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Wed, 30 Sep 1992 20:38:00 GMT

In article <1992Sep30.092544.15962@husc3.harvard.edu>,
veloso@husc9.harvard.edu (Manuel Veloso) wrote:
> 
> Here's some source code that I've always wanted, but never could find
> online. 

The Standard File sample (SC.018) on ftp.apple.com shows how to do this.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer
From: brianc@acuson.com (Brian Cox)
Subject: Re: Moving the mouse pointer-- how?
Organization: Acuson; Mountain View, California
Date: Tue, 6 Oct 1992 00:28:46 GMT

jkreibic@sumter.cso.uiuc.edu (Jay Arnold Kreibich) writes:



>  I am writing a driver program that needs to move the mouse cursor  
>location around the screen, but I'm not quite sure how to do that.  Any  
>tips on where to lookup functions that will assign a new mouse pointer  
>location?

>  Thanks o lot!

>-Jay Kreibich
> jkreibic@uiuc.edu


Without getting in to the subjective merits of doing so, I'll just
mention that Apple strongly discourages moving the mouse sprite
without an analogous action from the user.  They discourage it to
the extent that they don't provide a routine that does it.  You
might try hiding the cursor and drawing your own.  But that would
get really ugly fast...  

Are you really sure that you want to move the mouse cursor?

			--BC--


-- 

					   --Brian Cox--
------------------
From: grobbins@Apple.COM (Grobbins)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Finding system folder in system 6
Date: 28 Sep 92 06:29:04 GMT
Distribution: usa
Organization: Apple Computer Inc., Cupertino, CA

In article <1992Sep28.024524.17596@mcs.drexel.edu> udmorrow@mcs.drexel.edu (Daniel Morrow) writes:
>Subject line says it all. I'm writing a program that will
>have a preference file. I know how to get the Preferences folder
>in System 7. I need to know how to get the System folder in
>System 6. 

Call FindFolder and ask for the preferences folder (kPreferencesFolderType).
Under System 7, this will return the vRefNum and dirID of the
Preferences folder; under System 6, it will return the vRefNum and
dirID of the System folder (since that is where preferences should be
kept.)  FindFolder is documented on pages 9-42 and following of Inside
Mac VI.  Don't bother to call Gestalt to see if FindFolder is available; 
if you're using Think or MPW C or Pascal, the FindFolder glue
will make certain that FindFolder succeeds on any HFS system.

>Also, what is the best way to tell if system 6 or 7 is running?

It's best to check if specific features are available, not what
system is running.  Gestalt is typically the way to go; read
chapter 3 of Inside Mac VI.

Grobbins          grobbins@apple.com

Usual disclaimers apply.

Newsgroups: comp.sys.mac.programmer
From: resnick@cogsci.uiuc.edu (Pete Resnick)
Subject: Deferred Tasks - What can I do?
Organization: University of Illinois at Urbana
Date: Wed, 7 Oct 1992 00:18:05 GMT

Simple question:

Can I move memory (e.g. call NewPtr) in a deferred task, i.e. one I
installed with DTInstall?

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: jkreibic@sumter.cso.uiuc.edu (Jay Arnold Kreibich)
Subject: Moving the mouse pointer-- how?
Organization: University of Illinois at Urbana
Date: Thu, 1 Oct 1992 20:19:21 GMT



  I am writing a driver program that needs to move the mouse cursor  
location around the screen, but I'm not quite sure how to do that.  Any  
tips on where to lookup functions that will assign a new mouse pointer  
location?

  Thanks o lot!

-Jay Kreibich
 jkreibic@uiuc.edu
Newsgroups: comp.sys.mac.programmer
From: zaphod@bluemoon.rn.com (Peter Bierman)
Subject: Re: If I have the old, do I need to buy the new Inside Mac?
Keywords: Inside Mac
Organization: Blue Moon BBS ((614) 868-998[024])
Date: Thu, 01 Oct 92 14:54:10 EDT

jbm@panix.com (John Mignault) writes:

> The subject line just about says it all. The bookstore where I work just
> got three volumes of the new Inside Mac, and I was wondering, before I
> decide to spend another $200 or so on the six new books, just how much I'll
> actually need them if I already own the original six. I understand they're
> probably pretty cool and slick and suchlike, but if I can afford not to buy
> them ( at least right now ), I won't. Any opinions?

Well, I own all 6, + IMCTB, + XREF, + Hardcopy of all TNs. I just bought 
the first 3 new ones, and I must say that I'm QUITE impressed. The fact 
that everything in them is ACCURATE, and COMPLETE just about pays for 
itself. AL least get "files" because the old way to do files involves 
memorizing IM2, 4, and 6, + about 12 tech notes.

In short, the new ones are worth it. They're jammed with source code, and 
the biggest part of each chapter is the ENGLISH explanation about how it 
all works together.


---
The opinions I express are rarely my own, because my own are far too
outragous to post here.

IntNet:SEE NOTE BELOW            FutureNet: #33@#10
The Metropolis (614)-846-1911
---
Internet Address: Send two copies of everything to:
zaphod@bluemmon.rn.com and zaphod@bluemoon.use.com
Newsgroups: comp.sys.mac.programmer
Subject: Re: Disassembler?
From: Bruce.Hoult@bbs.actrix.gen.nz
Date: Sun, 27 Sep 1992 11:20:19 GMT
Organization: Actrix Information Exchange

In article <1992Sep24.170623.245523@magicbb.uucp> sharkman@magicbb.uucp (Matt Daw) writes:
> I have a program that will give me assembly back but I was talking about
> like C or Pascal source files? If there is such a thing...what I want to
> do is to dissasemble some registered shareware and find out how they
> work to help me learn....

Do you want one that will give back the original comments, or will
just the original variable names do?  Does it matter if a Pascal
program gets decompiled as C, or should it be smart enough to
recognise that?  How about C++, FORTRAN and Modula-2?

-- 
Bruce.Hoult@bbs.actrix.gen.nz   Twisted pair: +64 4 477 2116
BIX: brucehoult                 Last Resort:  PO Box 4145 Wellington, NZ
"Cray's producing a 500 MIPS personal computer with 256MB RAM and 8 GB
hard disk that fits in your pocket!"   "Great!  Is it PC compatible?"
Newsgroups: comp.sys.mac.programmer
From: orpheus@reed.edu (P. Hawthorne)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Double Click in Window Content
Date: 28 Sep 92 11:29:08 GMT
Article-I.D.: reed.1992Sep28.112908.24075
Organization: Reed College, Portland, OR


  cstrockb@cs.sunysb.edu (Caleb Strockbine) writes:
: Double clicking, as well as Option-, Shift-, or Command-clicking, is a
: shortcut that's not intuitive for the novice user. If all of those are
: used, things can get really hairy even for the experienced Mac user. I
: point to Illustrator as an example of a very difficult-to-master user
: interface.

  I point to Illustrator as the most effective user interface.  It permits
the user to become very expressive. Some short cuts are not intuitive, but
I can assure you that they come to be instinctive. Still, implying that
double clicking is too computery for people seems rather like saying that
if God wanted us to compute, he would have given us mice to fidget with.
People have to do something faintly like learning to communicate with a
computer. It can't be entirely one way. But beyond that...

  Difficult-to-master? Yes! Mastering Illustrator is not like mastering a
word processor or some trivial application. You wouldn't write Illustrator
in HyperCard. Lest the user-friendly trappings disguise it, Illustrator is
a Craft and a remarkably interesting subdiscipline of programming at that.

  I can't think of anything in Illustrator that one can do with the mouse
and the keyboard that you cannot find in the menus or the toolbox.  Every
short cut has it's representation in the user interface. 


  Theus (orpheus@reed.edu)

  P.S. 
  Sorry for disappearing. I'm living... That might not be the right word.
I'm merely 'in' Utah. I've moved here. I'm not dead exactly, either, but...
From: hp48sx@wupost.wustl.edu (HP48SX Archive Maintainer)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Finding the selected files in Finder
Date: 28 Sep 1992 05:22:57 -0500
Organization: Washington University in Saint Louis, MO USA
NNTP-Posting-Host: wuarchive.wustl.edu

hp48sx@wupost.wustl.edu (HP48SX Archive Maintainer) writes:

>I have know added a menu to the finder, and would like it to operate on
>the currently selected files in the finder. Is there any way I can find
>these files ? I don't care about supporting system 6.

I have found one way that works, but it is not nice. Patch _GetCatInfo,
_ShowWindow, HiliteMenu.  

When you need to find the selection, find the menukey of the 6th item in
the file menu (Get Info), get its command key, and post this event.
Then look at _getCatInfo, remembering the files when the dirIndex is 0,
and then at _ShowWindow, look at the title to see if the filename from
getcatinfo is a prefix of the window title, in wich case you have found
one selection. Then do not ShowWindow, but DisposeWindow.
You know you are through all files when HileteMenu(0) is called.

It is ugly, and the File menu is hilited during the GetInfo process.
So a better method/suggestions is welcome. I can not send a Get Info AE,
as it requires the file list as parameter, and it is unknown.

-- 
Povl H. Pedersen             hp48sx@wuarchive.wustl.edu
HP48sx archive maintainer

All Opinions (C) Copyright the Intergalactic Thought Association
From: yjc@po.cwru.edu (Jerome Chan)
Newsgroups: comp.sys.mac.programmer
Subject: Terminal Tool Set Up
Followup-To: comp.sys.mac.programmer
Date: 4 Oct 1992 18:14:53 GMT
Organization: The Tofu Society of Singapore
Distribution: world
NNTP-Posting-Host: b61539.student.cwru.edu

  I'm kind of confused (Evil Tofus alway are). How does one determine the
size of termRect and the size of the window before calling TMNew? For
example, I choose 132 column mode for the tty tool. How large should the
window size be? I would like to create a window that is the exact size of
the terminal being emulated. That is it should be smaller for a 80 x 24 tty
terminal and larger for a 132 x 24 vt 102/ansi terminal.

---
 The Evil Tofu