HDTenEightyP/NetNews huggingface dataset:
From: jafl@cco.caltech.edu (John Lindal)
Newsgroups: comp.sys.mac.programmer
Subject: Think C: using externally compiled code
Date: 29 Sep 1992 21:33:09 GMT
Organization: California Institute of Technology, Pasadena
NNTP-Posting-Host: punisher.caltech.edu

Does anyone out there know how to call externally compiled code from a Think C
program?  I'm using Think C 5.0.2 and am writing an object oriented program.

I would like to provide plug-in routine capability, but unless I can call
CODE resources in separate resource files, I don't think I can...

Thanks for any help.  Please e-mail.  John Lindal

Newsgroups: comp.sys.mac.programmer
From: jwagner@news.weeg.uiowa.edu (Joseph F. Wagner)
Subject: Problem fetching dialog with Quark XTension
Organization: University of Iowa, Iowa City, IA, USA
Date: Thu, 1 Oct 1992 22:07:12 GMT


I am trying to write a simple XTension that displays a dialog box to get
the dimensions for a text box from the user and then draw the box. Well,
when I call GetNewDialog, it returns nil so the dialog is never fetched
from the resource file. I've written a Mac program to check that the 
resource is OK and it works, it just doesn't work for Quark. If anyone
out there is willing to help mail me and I can give you more info if
you want. 

Thanks in advance,
Joe

-- 
* Joseph F. Wagner           * e-mail: joseph-wagner@uiowa.edu              *
* 207 Myrtle Ave. #16        *                                              *
* Iowa City, IA 52246-3333   * Student Representative, Apple Computer, Inc. *
Newsgroups: comp.sys.mac.programmer
From: bpb9204@tamsun.tamu.edu (Brent)
Subject: ResEdit "Resource not found" error
Organization: Texas A&M Univ., Inc.
Date: Thu, 1 Oct 1992 00:31:30 GMT


Recently I posted asking if anybody knew of a fix for this mysterious 
error.  This error has happened twice to me.

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've tried all sorts of fixes: deleting the preferences file, deleting
ResEdit and reinstalling, installing 2.1 instead (same problem).

I retrieved a fresh copy of 2.1.1 from ftp.apple.com tonight and I'll try
that out.  This is very frustrating and there's no clue as to a fix.

Thanks for any info,
-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: stack@techbook.com (Bill Stackhouse)
Subject: Re: Looking for LDEF
Organization: StoneTablet Publishing
Date: Sun, 27 Sep 1992 05:01:49 GMT


In a prior msg, I have refered to 2 list manager replacements, 
StoneTable and Matrix Engine.

I know that StoneTable is written to support
32K per cell and has a method for scrolling the text in a single
cell as well as scrolling the table (list). The functions that
directly replace the list manager have direct replacements in
StoneTable making conversion "simple" (eg. LNew becomes TMX_New).

I do not speak for
DataPak, therefore I do not know about the Matrix Engine. I believe
that it is supposed to support large text amounts for cells but
I don't know how they display it.

Bill Stackhouse
StoneTablet Publishing
stack@techbook.com

-- 
stack@techbook.COM  Public Access User --- Not affiliated with TECHbooks
Public Access UNIX and Internet at (503) 644-8135 (1200/2400, N81)
From: zonker+@CMU.EDU (Jeremy G. Mereness)
Newsgroups: comp.sys.mac.programmer
Subject: ListMgr Example in C?
Date: 27 Sep 92 14:45:55 GMT
Article-I.D.: andrew.MelXaXC00iMSI3PEFV
Organization: Graduate School of Industrial Administr., Carnegie Mellon, Pittsburgh, PA


I am looking for example code using ListMgr. 
I am writing a program that will need a spreadsheet-like screen
with cells fashioned in a 2D grid with lines drawn in to separate them.

Anyone have something like this I could look at?

Thanks in advance!

 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|Jeremy Mereness                 | Support    | Ye Olde Disclaimer:     |
|zonker+@cmu.edu (internet)      |  Free      | This message represents |
| or jm7e+@andrew.cmu.edu        |  Software  | my opinions, alone.     |
| or zonker@drycas.bitnet        |------------|  Ya Gotta Love It.      |
| B.S. Mech Eng. CMU,1992-Certificate Mixology,1992-'83 Yamaha 650 Twin |
 -----------------------------------------------------------------------
              This year marks 200 years of the Bill Of Rights.
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to detect movable modal WDEF?
Date: 27 Sep 92 12:40:44 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

In article <6!9nbhl.gurgle@netcom.com>, gurgle@netcom.com (Pete Gontier)
wrote:
> 
> haynes@mace.cc.purdue.edu (Carl W. Haynes III) writes:
> 
> >In article <1992Sep23.182634.7236@midway.uchicago.edu> jcav@midway.uchicago.edu writes:
> >>
> >>One more suggestion: if the moveable-modal is unavailable, fall back to
> >>noGrowDocProc, not dboxProc -- it looks much more like the moveable-modal.
> 
> >I also go ahead and draw a black rectangle a couple pixels in
> >to make it look even more like the movable modal. Only the experts
> >can tell the difference :=>
> 
> Overkill. Just go ahead and use 5 for the variation code, under both
> System 6 and System 7. The system will substitute a normal modal under
> 6. I gone and done it. I don't think it as any accident on Apple's part.


Overkill???  users want to be able to move the damn thing out of the way so
that they can see what is going on behind it, and this is so cheap to do as
pales beside the alternative of getting a bad review or even answering the
odd letter/phone complaint.  

Provide your own as a fallback to the officious version, and tell any user
who ResEdit's your fallback out from under you to put it back by golly.


> >There aughta be a gestalt selector for this, dontcha think.
> 
> Yup.
> -- 
>  Pete Gontier // EC Technology // gurgle@netcom.com

Ayup

--

Dana S Emery <de19@umail.umd.edu> | "Novo, de Novo,
                                  |     de novo, de no-o-o-o-o---, 
                                  | Novemba come an' dey gonna go home."
Newsgroups: comp.sys.mac.programmer
From: powell@ug.cs.dal.ca (Joel E Powell)
Subject: General Help Needed (THINK C)
Summary: I need help on programming
Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
Distribution: na
Date: Thu, 1 Oct 1992 19:45:57 GMT


I'm just starting to program the Macintosh, and have THINK C 5.0.
I already know C, but I need help on the Mac specific stuff.
I've heard (and it's recommended in the THINK C manual) that I
basically NEED Inside Macintosh by Addison Wesley.  However, many
other people have said that it's a bunch of really technical mumbo-
jumbo that I won't understand really well.  The manual also suggests
a couple of other books like the Macintosh C Primer, and such books.

Can people please give me a few recommendations on getting started with
programming Mac applications?  Are these books any good (or at least
worth their money)?  Any suggestions appreciated.

Thankyou all,
Joel.

************************
powell@ug.cs.dal.ca
************************
From: yjc@po.cwru.edu (Jerome Chan)
Newsgroups: comp.sys.mac.programmer
Subject: MyClickLoop in Terminal Tool
Date: 5 Oct 92 02:04:16 GMT
Followup-To: comp.sys.mac.programmer
Organization: The Tofu Society of Singapore
NNTP-Posting-Host: b61539.student.cwru.edu


  Can someone explain what a MyClickLoop is supposed to do? Sample Code?

---
 The Evil Tofu (is always confused.)
From: peter@and.nl (Peter Baayens)
Newsgroups: comp.sys.mac.programmer
Subject: xvt
Summary: help wanted
Keywords: xvt
Date: 28 Sep 92 09:57:20 GMT
Organization: AND Software BV Rotterdam

I need some help with the XVT-txedit functions. Please mail ...

Newsgroups: comp.sys.mac.programmer
From: psafj@warwick.ac.uk (Mr G Milligan)
Subject: Array Generation in TC5.0
Organization: Computing Services, Warwick University, UK
Date: Tue, 29 Sep 1992 14:04:13 GMT

The message is on behalf of a friend, they can be contacted via me.
Message follows:

Please help!  I am programming in Think C.  I need to fill a
7 x 7 array with random sequences of the numbers 1-7.  The
catch is, no number can appear more than once in each row or
collumn.  Here is an example:
3       5       1       7       4       6       2
4       1       5       2       6       3       7
7       3       4       1       5       2       6
6       4       2       3       7       1       5
2       7       6       4       3       5       1
5       2       7       6       1       4       3
1       6       3       5       2       7       4
My main problem is how to deal with situations in which the
choice of the initial sequences make correct completion of
the task impossible.

Please send any suggestions or source code to psafj@uk.ac.warwick.csv

THANKS.
Newsgroups: comp.sys.mac.programmer
From: t-jacobs@ced.utah.edu
Subject: Free Floater WDEF code?
Reply-To: t-jacobs@ced.utah.edu
Organization: University of Utah
Date: Thu, 1 Oct 92 19:22:07 GMT

I'm looking for some WDEF C source code for doing a floating pallet style
window  that will be used in a free application called FilterTop that I am
working on as part of the TopSoft Inc. group.

Obviously I need public domain source or source that can be used in free
applications.

Please E-mail your reply to the following address: t-jacobs@ced.utah.edu

Tony Jacobs * Center for Engineering Design * U of U * t-jacobs@ced.utah.edu
Secretary TopSoft Inc. - The GNU of the Mac world.
Newsgroups: comp.sys.mac.programmer
Distribution: world
From: Matthew_J._Meyer@bmug.org
Organization: BMUG, Inc.
Date: Fri, 02 Oct 1992 20:41:03 PDT
Subject: Re: Sound Manager Phooey!

I ran into similar sound problems (in an 'appl' only) where I needed to
play an async sound repeatedly (machine gun type effect). All sound on
my LC would stop after a few cycles of the sound. I found that by adding
a slight delay (3 - 6 ticks) before trying to replay the sound
everything was fine. Perhaps this will help your situation...?
***************************************************************************
             From Planet BMUG, the FirstClass BBS of BMUG, Inc.
              The above message was gatewayed via PostalUnion
***************************************************************************
The message contained in this posting is entirely the poster's personal
opinion.  Any possible, real or perceived, (dis)similarities with the
views held by BMUG, are purely coincidental.
***************************************************************************
Newsgroups: comp.sys.mac.programmer
From: donb@igor.tamri.com (Don Baldwin)
Subject: Think C and ResEdit
Organization: TOSHIBA America MRI, South San Francisco, CA
Date: Tue, 29 Sep 92 00:29:00 GMT

Hi,

I'm a new Mac user and I have a couple questions:

1. My Mac is a Powerbook 100 with 2/20; I intend to upgrade to 6 Megabytes
   of RAM.  Is there any reason I shouldn't run Think C on it?  The Think C
   box does say that MultiFinder is needed to run the debugger but I don't
   have MultiFinder (I inderstand that 7.* doesn't keep the MultiFinder
   around).  Does anyone know if I'll be able to use the debugger???

2. Can anyone recommend a good ResEdit book?  I saw Zen and the Art of
   ResEdit (includes disks) and one other book this past weekend; I'd
   appreciate any pointers to exceptional references.

I'd also appreciate pointers to other useful books that cover programming
in C on the Mac.  And if anyone hears of a good deal on a C++ setup... :)

thanks,

   don
------------------------------------------------------------------------------
"If your happiness depends on what someone else does...you do have a problem."
        - Richard Bach
------------------------------------------------------------------------------
Don Baldwin  -  Software Engineer  - e-mail to:  donb@tamri.com
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: MacTCPCommonTypes & typedef unsigned char b_8.
Date: 28 Sep 92 16:04:30 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

In article <de19-270992104602@mac19-pg2.umd.edu>, de19@umail.umd.edu (Dana
S Emery) wrote:
> 
> In article <Bv74rq.5EH@gate.demon.co.uk>, davidj@daveland.demon.co.uk
> (David Johnston) wrote:
> 
> [...]
> 
> I have had some difficulty dealing with Thc 5.0.3 on a project started
> under 5.0.2, in my case the linker is declareing a symbol undefined which
> neither I nor Symantec DTS can locate.
> 
> I wonder if they test this stuff the same way we do?
> 
> --
> 
> Dana S Emery <de19@umail.umd.edu>

As a follow up to the above, I must mention that the problem alluded to
failed to replicate itself when I reconstructed the project file from
scratch, implying that it had somehow become corrupted.

Since this presumed corruption affected a project which has never been
executed, I am even more puzzled.

Stay tuned for further developments.

Oh, BTW, the symptom was a spurious link failure, referencing an
(undefined) external symbol which n'exist pas, either in my code or in
symantec's.

--

Dana S Emery <de19@umail.umd.edu> | "Novo, de Novo,
                                  |     de novo, de no-o-o-o-o---, 
                                  | Novemba come an' dey gonna go home."
From: merlyn@ora.com (Randal L. Schwartz)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Regular Expressions
Date: 2 Oct 92 06:36:59 GMT
Article-I.D.: romulus.MERLYN.92Oct1233655
Distribution: usa
Organization: Stonehenge Consulting Services; Portland, Oregon, USA

In article <1992Oct1.180358.3460@panix.com> spencer@panix.com (David Spencer) writes:
   The gnu regular expression library is at prep.ai.mit. The version in
   the grep/egrep sources has been built and tested (for years) by
   wizards. The separate regex library is called beta, but it's an
   extended and rationalized version of the grep regex code.

Remember of course that this code is subject to the GNU Public
License.  And because of RMS's opinions about Apple, you can bet that
code for a Mac that uses these routines but violates the GPL would be
prosecuted swiftly and painfully.


--
Randal L. Schwartz / Stonehenge Consulting Services (503)777-0095
merlyn@reed.edu (guest account) merlyn@ora.com (better for permanent record)
cute quote: "Welcome to Portland, Oregon -- home of the California Raisins!"
Newsgroups: comp.sys.mac.programmer
From: valerio@cpsc.ucalgary.ca (Valerio Franceschin)
Subject: Problem with LaunchApplication()
Organization: University of Calgary Computer Science
Date: Mon, 28 Sep 1992 22:58:33 GMT



I can't get launchApplication to work properly.  All I do is used StandardGetFile
to select a resource file, pass this file to mylaunch(below) which calls 
launchApplication. I keep getting error -192(Resource not found)!

Can anyone see any error in the code below?  As far as I can tell, sfReply does
contain the correct file name.

    mylaunch(StandardFileReply sfRely) {
        LaunchParamBlockRec		launchParams;
        OSErr   			launchErr;

        launchParams.launchBlockID       = extendedBlock;
        launchParams.launchEPBLength     = extendedBlockLen;
        launchParams.launchFileFlags     = 0;
        launchParams.launchControlFlags  = launchContinue + launchNoFileFlags;
        launchParams.launchAppSpec       = &sfReply.sfFile;
        launchParams.launchAppParameters = nil;
   
        launchErr = LaunchApplication(&launchParams);
    
        if (launchErr != noErr)  // always get error -192 !!!
    	    printf("launch failed, error %d returned\n", launchErr);
    }


Any help would be appreciated.  Please mail all replies to me directly.

thanks,
V
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Postscript downloading.
Date: 27 Sep 92 09:34:05 GMT
	<P2NqRB4w165w@bluemoon.rn.com>
Organization: Royal Institute of Technology, Stockholm, Sweden
Originator: d88-jwa@dront.nada.kth.se

> zaphod@bluemoon.rn.com (Peter Bierman) writes:

   I don't know if this helps, but I remember reading somewhere that the LW 
   driver parses out something like "EnamulatorFont" or some name of a font 
   that  when it encounters, it will send as postscript to the printer.

Wasn't the name "PostScript Escape" ?

-- 
Jon W{tte, h+@nada.kth.se, Sweden, Phone +46-8-107069

"From now on, I think I'll re-label the EQ on the
 desk as Fizz and Wobble, rather than HF and LF."
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
	<1992Sep25.192634.7104@news.iastate.edu>
Distribution: na
Date: Mon, 28 Sep 1992 12:41:23 GMT

In article <1992Sep25.192634.7104@news.iastate.edu> niko@iastate.edu (Nikolaus E Schuessler) writes:

In article <1992Sep25.162519.3877@news.columbia.edu> sll2@cunixa.cc.columbia.edu (Steven L Levitt) writes:
>The Think C 5.0.3 upgrade instructions are confusing me a bit.  The upgrade
>includes two new source files, oops.h and member.c.  The upgrade README
>file doesn't seem to mention how these are to be integrated into the existing 
>OOPS libraries.  Am I supposed to load those into Think C, remove objects and
>recompile, or what?

    They're supposed to be complete replacements for the existing files
    in the THINK C tree. Replace their predecessors, remove objects, and
    recompile.

No, oops.h provides the fixes that you need. If you ever did need to recompile
the oops library, you would then need to use the supplied member.c. Otherwise
you could get problems recompiling with the new oops.h. member.c is provided
for information only (unless you're recompiling the oops library, of course).

Tom
--
   Tom Emerson                                    Technical Support
   Language Products Group                     Symantec Corporation
			Internet: tree@uvm.edu
Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Re: If I have the old, do I need to buy the new Inside Mac?
Keywords: Inside Mac
Organization: Kalamazoo College
Date: Thu, 1 Oct 1992 03:38:46 GMT

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.

Do you have a CD-ROM drive?

September's developer CD arrived a few days ago, and I was pleasantly
surprised to find all three currently-existing New Inside Macintosh
volumes on it.  (Although I was puzzled to not see an issue of
_develop_.  Anyone know what's up?)  Sure, browsing's slow off the CD,
and they'll take up ten megs if you copy them to hard disk--but you can
always print them yourself, and besides you can't electronically search
the paper version.

Do I remember right that a year's subscription to the developer CD runs
something like $30?  (If you can confirm or correct this, please email
me.)  If so, and if you have a CD-ROM drive--snap it up.  If you don't
have a CD-ROM...hey, it's about the same price as the next umpteen
New Inside Macintosh books.  :-)
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 I suppose ya don't think I was run over by a streetcar!
From: cheng@ee.rochester.edu (Bruce Cheng)
Newsgroups: comp.sys.mac.programmer
Subject: scanf equivalent calls that does not use global variables?
Date: 4 Oct 92 18:23:47 GMT
Distribution: usa
Organization: Univ of Rochester, College of Engineering and Applied Science

Hi,
I ran into a problem when I tried to parse a binary/ascii mixed data file
for a piece of code that's  to be put into a code resource.  Since I cannot
include any global references in code resource, I cannot use sscanf() (cause`
sscanf() uses some global system state data for buffering???) 

Well, is there any suggestion?

	-Bruce

+-----------------------------------------+------------------------------------+
| Home: 716-475-9329(voice         )      |Usnet: cheng@ee.rochester.edu       |
| Work: 716-427-3475        		  |XNS: Bruce_Cheng.Henr801B@xerox.com |
| Address: 222 Norman Road, Rochester     |Uucp: uunet!rochester!ur-val!cheng  |
|          NY14623 			  |                                    |
+-----------------------------------------+------------------------------------+
-- 
+-----------------------------------------+------------------------------------+
| Home: 716-271-0960(voice/data/fax)      |Usnet: cheng@ee.rochester.edu       |
| Work: 716-427-6227        		  |XNS: Bruce_Cheng.Henr801B@xerox.com |
| Address: 1559 Elmwood Avenue Apt 8      |Uucp: uunet!rochester!ur-val!cheng  |
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.programming
From: davep@county.lmt.mn.org (Dave Polaschek)
Subject: Re: Help re: hiding the menu bar
Followup-To: comp.sys.mac.programmer
Reply-To: davep@county.lmt.mn.org (Dave Polaschek)
Organization: LaserMaster Corp
Date: Fri, 25 Sep 92 20:00:21 GMT

> I'm programming in Microsoft Quickbasic and would like to
>  make a routine that hidesthe menu bar so that the current window
> covers the entire screen.  Microsoft Quickbasic supports
>  traps to the toolbox; I suspect that I'll have to do it that way,
> but I don't know which traps to use.
> Can anyone  suggest anything?

GetMBarHeight() = 0;

will do the trick in C.  Thanks to "Mac Programming Secrets, 2ed" for this.  
I suggest you pick up the book since it's full of goodies like this.

I'm not sure how you'll want to express this in QuickBasic, but GetMBarHeight 
is a macro that points to memory address 0x0BAA according to my header file, 
and it's a 16-bit value.  Hope this helps.

Dave Polaschek            Internet:davep@county.lmt.mn.org
LaserMaster Corp. R&D              ICBMNet:44^59'N 93^13'W
7156 Shady Oak Road                     AppleLink:LASERMAX
Eden Prairie, MN 55344                   ATTNet:6129439204
Newsgroups: comp.sys.mac.programmer
From: sainaney@unixg.ubc.ca (Narayan R. Sainaney)
Subject: BNDL,FREF and SFGetFile
Followup-To: comp.sys.mac.programmer 
Summary: Reading BNDL info 
Keywords: BNDL,FREF,SFGetFile 
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Fri, 2 Oct 1992 20:46:04 GMT

	I need to know how to do the following (the recommended way):

1) Read all info from the BNDL resource (ICN#,FREF etc)

2) Read all the FREF resources and get the ICN# ID for that
   application AND all file types that can be opened by the application.

3) Pass the file types to SFGetFile's filter (as an array [1 to maxFiles] of
   filetype

My problem is I don't know the BNDL resource format (the fact that it varies
with the number of FREF's and ICN#'s confuses me). Furthermore, most 
applications are able to open a large number of file types but SFgetFile's 
filter has an upper limit of 4 file types (right??).

Would appreciate it if someone could e-mail me some sample Pascal code (or
C if no pascal code handy) particularly the part about reading the BNDL    
resource.

Thanx in advance
sainaney@unixg.ubc.ca
From: zobkiw@world.std.com (Joe Zobkiw)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Moving the mouse pointer-- how?
Date: 6 Oct 92 12:39:07 GMT
Article-I.D.: world.Bvp9t9.ItJ
Organization: The World Public Access UNIX, Brookline, MA

Brian Cox writes:
"They discourage it to
the extent that they don't provide a routine that does it."

They also don't provide a routine to read a PICT file ;)


-- 
-------------------------------------------------------------
joe zobkiw         zobkiw@world.std.com        aol: aflzobkiw

macintosh.midi.synthesis.c.oop.asm.communications.graphics...