HDTenEightyP/NetNews huggingface dataset:
From: sichase@csa2.lbl.gov (SCOTT I CHASE)
Newsgroups: comp.sys.mac.programmer
Subject: Easy inline assembly question (Think C)
Date: 31 Jul 92 20:04:25 GMT
Organization: Lawrence Berkeley Laboratory - Berkeley, CA, USA
Distribution: na
Reply-To: sichase@csa2.lbl.gov
NNTP-Posting-Host: 128.3.254.197
News-Software: VAX/VMS VNEWS 1.3-4   

I am trying to write my first simple piece of inline assembly, and 
was surprised (having *thought* I understood the documentation) that 
the following piece of code won't compile.  I get a "illegal pointer 
arithmetic" error message. 

#define NMAX 64

unsigned long power[NMAX+1][3];

main()
{
int i,j,k;

	for (i=0;i<=NMAX;i++) {
		for (j=0;j<NMAX;j++) {
			asm {
/* comiler doesn't like this -> */    MOVE.L	power[j][2], D0	
				... more asm code deleted to save bandwidth
				}
			}
		}
			
}

What's the poop?

-Scott
--------------------
Scott I. Chase			"The question seems to be of such a character
SICHASE@CSA2.LBL.GOV		that if I should come to life after my death
				and some mathematician were to tell me that it
				had been definitely settled, I think I would
				immediately drop dead again."      - Vandiver
From: ckloeden@f.itd.adelaide.edu.au (Craig Kloeden)
Newsgroups: comp.sys.mac.programmer
Subject: Remembering Window Positions
Date: 28 Jul 92 05:11:34 GMT
Organization: University of Adelaide
X-UserAgent: Nuntius v1.1

I have a small DA like application program (a calculator) that I want
to remember its last position on the screen as well as its contents.

What is the accepted way of storing the window position?

In the window resource itself?
In another storage resource?
In the files data fork?
In a preference file? (hardly seems worth this)

Also, what is the test for being "on-screen" if its position is set
on a large monitor and it re-appears on a smaller one. ie how much of
it has to be on screen not to cause a repositioning.

Thanks in Advance,

     Craig

---
 Craig Kloeden                    E-Mail: ckloeden@f.itd.adelaide.edu.au
 Road Accident Research Unit      Phone : +61 8 228 5885
 The University of Adelaide       Fax   : +61 8 232 4995
 Australia                        Disclaimer: Not this little black duck!
From: vreddy@das.harvard.edu (Venkatesh Reddy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: NOVICE MAC programmer questions
Date: 31 Jul 92 15:14:24 GMT
Article-I.D.: das.1992Jul31.151424.6519
Distribution: usa
Organization: Aiken Computation Lab, Harvard University

In article <Bs4CJs.67E@news.cso.uiuc.edu>, tinsel@uiuc.edu (Thomas Aaron Insel) writes:
|> patf@silvlis.com (Pat Fitzgibbons) writes:
|> 
|> >   2. How do people get artwork into their C programs ?
|> >      My girlfriend is an artist and can draw 
|> >      phenominal things on a computer. How do 
|> >      I use these drawings in a program ? Does
|> >      she just use some sort of paint program 
|> >      and run something to convert the drawings
|> >      or is there a special tool for drawing 
|> >      things for a C program ?
|> 
|> This bit is easy.  No conversion, and very few special tools
|> are needed.  Draw your picture in a paint or drawing program, and
|> copy it to the clipboard as a PICT (the usual format for 
|> cut-n-paste of pictures).  Then, use ResEdit to paste these
|> into your program's resource file as PICT resources.  When you
|> want to use one, you can load it with GetPicture() and display
|> it one of many ways--Quickdraw has many commands for manipulating
|> and displaying pictures, or you can set a window to automatically
|> display a certain picture (so you don't have to worry about
|> update events and such).  The details for just about all of this
|> are in Inside Macintosh I.
|> -- 
|> Thomas Aaron Insel (tinsel@uiuc.edu)
|>   I speak for myself, and not for the State or University of Illinois.
|>   "We must not confuse dissent with disloyalty." -- Edward R. Murrow

I don't know about hte rest of you, but I find Inside Mac a bit difficult for a beginner to Macintosh programming. First of all, there is the language problem :
Inside Mac is written in pascal pretty much. It is a pain if you want to translate things as a beginner, such as str255 types, etc. I think the best toolbox programming manual I can find (of course, you should STILL HAVE Inside Mac, just don't rely onit... simply reference it) is called :

	Macintosh Programming Primer -- Programming in the Toolbox using Think C
	I forget the name of the author

	This book has two volumes... the first so far is all I have needed, and it
has a second edition that has special descriptions for System 7, Mac II, color, Resedit 2.1, etc...

	However, the second volume still doesn't have a second edition, so it is still stuck in System 6, and worst of all, Resedit 1.something, which is unacceptable to me, since all my Rsedit stuff is 2.1.1, and I am too accustomed to it to try to translate 1.whatever to 2.1.1.

-- Venk Reddy --

PS: This book explains that resource file in Rsedit that Thomas above explained

PPS: Does anyone know if this book/when this book will have a second edition for the second volume? Thanks in advance...
Newsgroups: comp.sys.mac.programmer
From: csh@leland.Stanford.EDU (Cynthia Howard)
Subject: Jump table entries limit in MPW
Keywords: jump table,link,MPW,MacApp
Organization: DSG, Stanford University, CA 94305, USA
Date: Wed, 22 Jul 92 21:35:10 GMT

I'm using MacApp 2.x and C++ in the MPW programming environment.  I'm
encountering the following error:

### Link: Error: Number of Jump Table entries exceeds limit of 4092.
	(Error 108) 

In the past I've dealt with this by eliminating redundant methods, but I'm
down to bare bones and have yet another module to incorporate before the
project is done.  So my question is exactly how fixed is this limit?  Can
it be extended?  Are there MacApp/lib object files I can leave out to get
around this?  I'm compiling with .Debug on.  Would changing this help?  (I
don't want to do this because I need the debugger available.)

I really don't want to go back and restructure my class heirarchy.  Any
suggestions/comments would be helpful.  Please respond by e-mail - 400
postings a day is too many for this weary PhD student to scan!

Cindy Stotts Howard


Newsgroups: comp.sys.mac.programmer
From: jack@jato.jpl.nasa.gov (Jack Kobzeff)
Subject: Re: And what about this DogCow business ? ( moof! )
Followup-To: comp.sys.mac.programmer
Organization: Jet Propulsion Lab
Date: Wed, 22 Jul 1992 18:02:38 GMT

In article <54626@mentor.cc.purdue.edu>, flip@sage.cc.purdue.edu (Phillip
Russell) wrote:
> 
> In article <1992Jul21.020227.22943@organpipe.uug.arizona.edu> jahnke@biosci.arizona.edu (Jerome Jahnke) writes:
> >The entire history behind the DogCow Clarus (he used to be called a CowDog,
> >but that name already belonged to someone else), can be found in Tech
> >Note #31, and is indeed a bit of computer folklore. And yes indeed "Moof,"
> >is one noise a DogCow makes, the other is "splat" when he grazes a bit too
> >close to the edge of the cliff.
> >
> 
> Everyone keeps refering to Tech Note #31. How about telling those of us 
> out here what all this DogCow stuff is!!!!!!
> 
> I've come across and graphic of a DogCow and didn't know it was referring
> to some inside joke.
> 
> What's the info!!!

Basically, Clarus the Dogcow is the mascot of Apple's Mac Developer
Technical Support team. He started life in a Page Setup (Options) dialog
box, but after DTS recieved a question as to whether he (she???) was a dog
or a cow, they of course replied that he was obviously both, and the world
has been better place ever since. See Tech Note #31 or the QT MooV (<<<get
it??) 'The Dogcow meets System 7' for more info. 


Jack Kobzeff       (jack@jato.jpl.nasa.gov)
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon W{tte)
Subject: Re: how to put indelible serial# in resource fork of app?
Originator: d88-jwa@dront.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
	<D88-JWA.92Jul23100813@dront.nada.kth.se> <14122@borg.cs.unc.edu>
	<14n8olINNsrr@agate.berkeley.edu>
Date: Thu, 23 Jul 1992 23:08:56 GMT

@ocf.berkeley.edu (Elizabeth Wylie) writes:

   On especially large projects you can save several K by not including macsbug names.  Keep 'em in your beta version, not in the final release.

But I'm not a beta tester. I still want to know what goes wrong
and how to fix it !

   (You *DO* write betas, don't you? And you *DO* have more than one person (your kid sister doesn't count) test for you?)

Yes of course. A few Ks don't matter much, and I like getting
mail from people who fix my bugs :-) I want others to feel the
same way since there STILL is bugs in released software.

-- 
         Jon W{tte, Svartmangatan 18, S-111 29 Stockholm, Sweden

### You have the Easy Access virus. This virus may cause strange sounds.
### You have the 24-bit virus. This virus eats system memory like CRAZY.
Newsgroups: comp.sys.mac.programmer
From: Minh Lang <minh@inst-sun1.jpl.nasa.gov>
Subject: System Extension sample source wanted!!
Organization: Jet propulsion Laboratory
X-Useragent: Nuntius v1.1b2
Date: Tue, 28 Jul 1992 15:43:57 GMT

I am looking for some sample source for writing System Extension.
I would appreciate any pointer or info (ftp sites, books etc...).
Thanks.
 == Minh ==
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.mac.programmer
Date: Fri, 24 Jul 1992 22:00:07 -0400 
From: Brian Scott Butler <bb26+@andrew.cmu.edu>
Subject: Read/Write MS Word and Excel Files

I there any code out there for creating, reading and writing some or all
of MS Excel, Word or Macwrite files.

I have the specification of the BIFF format (Excel files) but would like to
get jump on creating them if I can...

Thanks.

Brian Butler
bb26@andrew.cmu.edu
Newsgroups: comp.sys.mac.programmer
Subject: Re: MIDI Manager and Think C
From: rob@whio.canterbury.ac.nz (Rob Whitehead)
Date: 22 Jul 92 13:58:30 +1200
Reply-To: rob@whio.canterbury.ac.nz (Rob Whitehead)
Distribution: world
Organization: University of Canterbury, Christchurch, New Zealand

> I am trying to write an application that uses both Think C and Apple's
> MIDI Manager.  
> In my source code thus far, I have only made 1 call to MIDI Manager
> which is SndDispVersion, unfourtunately, I keep getting link error when
> I tried to run my program, and the error says that SndDispVersion is
> undefined.
> 1.  my program has an include for MIDI.h
> 2.  I have also installed MIDI Manager in the system folder.

> what's the problem?

You must also include in your project file a Think C library file. On the
Midi Manager Tool Set disk you will find an MPW .o library file, this must
be converted to a Think C library using the method explained in the Think C
manuals.

> I would appreciate any help,
> thanks in advance.

No problem

============================================================
Rob Whitehead		    email: rob@cosc.canterbury.ac.nz
			    snail: Computer Science
I'm Rob - 			   University of Canterbury
    who the hell is Bart!!	   New Zealand
From: bowman@reed.edu (Eric Bowman (bobo))
Newsgroups: comp.sys.mac.programmer
Subject: ViewEdit 3.0B2
Date: 30 Jul 92 21:10:04 GMT
Article-I.D.: reed.1992Jul30.211004.16559
Organization: Reed College, Portland, OR

After losing several hours of work in ViewEdit 3.0B2, I'm pretty pissed off.
Does anyone know if the next ETO will have a final/better version it?
Do those in the know think it would be better to use version 2 and promote?

Thanks,
bobo
bowman@reed.edu
Newsgroups: comp.sys.mac.programmer
From: zaphod@bluemoon.rn.com (Peter Bierman)
Subject: Re: And what about this DogCow business ? ( moof! )
Organization: Blue Moon BBS ((614) 868-998[024])
Date: Sat, 25 Jul 92 23:26:36 EDT

jack@jato.jpl.nasa.gov (Jack Kobzeff) writes:

> has been better place ever since. See Tech Note #31 or the QT MooV (<<<get
> it??) 'The Dogcow meets System 7' for more info. 
> 
> 

Wait a sec! My 6/92 list of tech notes lists TN#31 as "Unused"!! I have 
all the TNs printed out, and I _don't_ have a #31!!!


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

IntNet:zaphod@bluemoon.rn.com    FutureNet: #33@#10
The Metropolis (614)-846-1911
---
Newsgroups: comp.sys.mac.programmer
From: Steve Kohlmeyer
Subject: Re: File Mgr. vs. std. libs. for text files (new programmer)
Organization: University of Minnesota
Date: Fri, 31 Jul 1992 17:51:08 GMT

In article <84932@netnews.upenn.edu> peter@sysnext.library.upenn.edu (Peter C.
Gorman) writes:
>Hello -
>
>I've got a couple of projects which involve fairly simple manipulation of  
>text files using line-at-a-time access.  The standard library functions  
>are fine for this aspect of it, but I'd like to use the Toolbox for file  
>selection and opening.  Think C seems to tell me that I can't use the SF  
>Package and File Manager to get the files, then use fgets(), fputs(), etc.  
>for manipulation of the contents. .....

I use both the SF package and standard C i/o functions together all the time.
The SF package will return the volRefnum (or directory) of the opened/saved
file.
Use this to set your default dir.  Then use your C functions in the normal
manner.

Steve Kohlmeyer
U of Minnesota
From: mlanett@Apple.COM (Mark Lanett)
Newsgroups: comp.sys.mac.programmer
Subject: Re: C and C++ development on the Mac
Date: 22 Jul 92 20:06:17 GMT
Organization: Apple Computer Inc., Cupertino, CA

sch@mitre.org (Stu Schaffner) writes:

>Ouch, another flame war. IMHO (not a fact), Pascal lost favor because
>different groups offered different extensions and the users were unable to
>resist using and becoming dependent on those features.  I know this isn't
>an object-oriented newsgroup but I can't imagine a bunch of Prolog
>programmers being able to resist using the OOP extensions. As for being
>proprietary, I just meant that salespeople aren't exactly deluging me with
>mail about other implementations of C+-. 

Other implementations: Apple's Object Pascal was offered by Apple, THINK
Pascal and the late, great TML Pascal (ok, so-so, but it gave me a cheap entry
to MPW). I heard, but may be wrong, that Borland also offered it on the PC
side.
-- 
/*      Well, you wanted a command line interface, you got one, and now you
can't figure out how to use it without the manual.  What were you expecting?
That's how command line interfaces work. - John Nagle */
From: wombat@claris.com (Scott Lindsey)
Newsgroups: comp.sys.mac.programmer
Subject: Re: CTB - how to use it...
Date: 23 Jul 92 11:20:41 GMT
Organization: Claris Corporation, Vancouver WA
Wombat: yes
Number: 50524

In article <1992Jul23.065001.8001@iti.gov.sg>, jinho@iti.gov.sg (Tan Jin Ho (Sch.11/2)) writes:
> 
> After reading the first few chapters of "Inside Mac Comm. Toolbox"
> and several tries, I have finally get Apple's CTB kicking (well, almost).
> The problem is that nothing shows up on my terminal when I type or
> receive characters. I can see the cursor moving 
> but to see what I typed or received, I have to click on the terminal
> window. 
> I call TMActivate, TMUpdate, TMResume according to what the
> book says. Do I need to do anything extra ?

How about TMIdle?

--
Scott Lindsey <wombat@claris.com>
From: paul@fairgate.uucp (Paul Robichaux)
Subject: Top Ten Things I'd Like to See in Think Pasal
Organization: Fairgate Technologies
Distribution: world
Newsgroups: comp.sys.mac.programmer
Date: Wed, 22 Jul 92 20:34:38 -0600
X-Mailer: Fernmail 1.1b19

All this Think C wishing got me to thinking... it seems that TC, for
whatever reason, gets new features first; the TCL and global optimizer
both come to mind.

On the other hand, as a frequent user of both I find TP's user interface
superior. Herewith are my Top TenThere are some things I'd like to see in the product; perhaps
Phil can pass them along to the right people :)

0) Better TCL documentation.
1) External tool support, preferably via AppleEvents. Let me use
   BBEdit, AppMaker, or whatever-the-hell-else as additions to the
   TP environment.
2) Multi-file grep. As someone else noted, it should have the same
   syntax as TC's grep.
3) A global optimizer.
4) A window tiling menu that doesn't bring up a dialog box.. maybe
   a picture menu or something.
5) Make the project window respond to cmd-W.
6) In general, give us more command key accelerators. As bad as
   MS Word is, at least it offers a plethora of function key support
   for the keyboard-abled.
7) Let me rearrange the contents of the Lightsbug window. I don't ever
   want to see the heap display, and I hate having to drag borders each
   time to restore my preferred layout.
8) Let me "Add File" at a specific point in the project. I guess what
   I'm really asking for is an insertion point in the project window.
9) Better TCL documentation.

So, Phil, how about it? (and thanks for making Think Back friendly to
TP.. makes me wonder how I got along without it!)

---
                             Paul Robichaux, KD4JZG                       
         paul@fairgate.uucp -or- ...uunet!{sci34hub,xavax}!fairgate!paul
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Newsgroups: comp.sys.mac.programmer
Subject: Re: updating finder windows
Date: 22 Jul 1992 20:33:23 GMT
Organization: U. C. Berkeley Open Computing Facility
NNTP-Posting-Host: monsoon.berkeley.edu

In article <15246.2A6C9813@zeus.ieee.org> Tommy.Brown@f204.n2603.z1.ieee.org (Tommy Brown) writes:
>I don't think that you CAN get the Finder to update the window immediately,
>
>because as far as I know, the Finder just doesn't constantly poll the disk to
>see if anything's been changed. The only thing I can think of is if you were
>

You'd be surprised what the finder does.  Put a trap break on HFSDispatch sometime.  You'll be surprised.  The finder is constantly cycling through open windows and getting folder dates etc.

If you want to force the window to update, change the modification date of the folder containing the item you changed.

The finder always updates for me.  Sometime soon I may be posting a small INIT that does this as well as patch a few traps.  The INIT automatically relocates items dropped in a folder.

Just to a PBGetCatInfo followed by a PBSetCatInfo.  But remember that the ioDirID field (and a few others, I think) get chewed after the call is complete.

-E Wylie

and 

Newsgroups: comp.sys.mac.programmer
From: danny@utkux1.utk.edu (Danny W. McCampbell)
Subject: Modal Dialog Problem.......
Organization: University of Tennessee
Date: Tue, 28 Jul 1992 20:47:00 GMT

Hi all.  I have a modal dialog which consists of nothing more than
a really nice color picture.  The problem is when I bring up
the dialog on the screen I just get the window outline.  My picture
does not show up.  I have upped the memory on Think Pascal and
even tried getting the picture's resource seperately and drawing 
it into the dialog after it is shown on the screen, but this still
does not work.  Any reason why this does not work?  It worked
fine in another program I worked on.  Could it be the size of the
picture(which is small)?  Is there something extra I need to
show color pictures in dialogs?

Thanks in advance.

Danny McCampbell
danny@utkux1.utk.edu
From: ewylie@ocf.berkeley.edu (Elizabeth Wylie)
Newsgroups: comp.sys.mac.programmer
Subject: Re: how to put indelible serial# in resource fork of app?
Date: 23 Jul 1992 21:36:21 GMT
Organization: U.C. Berkeley Open Computing Facility
NNTP-Posting-Host: tornado.berkeley.edu

>I see MacsBug symbols as a user service ! More than once have I had
>spontaneous crashes, and only the debugger names helped me figure
>out what was going on. Not to mention a dedicated user can provide
>excellent feedback for Tech Support if the names still are in there,
>like, fixing their bugs :-)

I think the point the original poster was trying to make was it's much easier to berak copy protection schemes when there are macsbug labels like "CHECKPASSWORD", "COPY_PROTECTION_HERE", "BACKOFF_HACKERS" and "THIS_IS_IT".

On especially large projects you can save several K by not including macsbug names.  Keep 'em in your beta version, not in the final release.

(You *DO* write betas, don't you? And you *DO* have more than one person (your kid sister doesn't count) test for you?)

-E Wylie
.

Newsgroups: comp.sys.mac.programmer
From: davidm@sfsuvax1.sfsu.edu (David Morgenstern)
Subject: MacHack Recollections, Anyone?
Organization: California State University, Sacramento
Date: Wed, 29 Jul 1992 04:23:07 GMT

I'm finishing up (ok, I'm really starting but my deadline is the
end of the week) my article that includes some stuff about the
MacHack last month. Does anyone have anything they want to share
about the conference? What was good, what were the funny names of
the drinks at the bar, hacking in the cellar waiting out the
tornedos -- anything?
  
E-mail to me please...

Thanks,

daviD
-- 
*****     David Morgenstern (a.k.a. BMUG CheerLeader)     *****
*     CIS: 72030,1607   AOL: daviD eM   FAX: 510-849-9026     *
Newsgroups: comp.sys.mac.programmer
From: eldred@rrunner.jpl.nasa.gov (Dan Eldred)
Subject: Re: Top Ten Things I'd Like to See in Think Pasal
Organization: Jet Propulsion Laboratory
Date: Tue, 28 Jul 1992 16:10:00 GMT

Anyone else want to put in a vote for conformant arrays?  Those of us
who do numerical work really have a problem without this.

	- Dan
From: marykuca@ra.UVic.CA (Brent Marykuca)
Newsgroups: comp.sys.mac.programmer
Subject: Any RATFOR compilers for MPW?
Date: 27 Jul 92 19:56:44 GMT
Organization: University of Victoria, Victoria B.C. CANADA

Hello,

A client of ours has just purchased MPW and Language Systems FORTRAN,
and now she is looking for a RATFOR compiler/preprocessor, similar to
those available under UNIX, which will work with these products.

Can anyone recommend a RATFOR product?  Does anyone know if one
exists for the Mac?  Any help is appreciated.

Cheers!

___________________________________________________________________________
Brent Marykuca::Computing User Services::University of Victoria, BC, Canada
From: wooly@pine.circa.ufl.edu (LAMBERT)
Newsgroups: comp.sys.mac.programmer
Subject: Turning on MacsBug?  How?
Date: 31 Jul 92 08:30:44 GMT
Reply-To: wooly@pine.circa.ufl.edu
Organization: University of Florida  (ufl.edu)
News-Software: VAX/VMS VNEWS 1.3-4

I recently returned to System 7 after several weeks of System 6.07
 only to find that MacsBug refused to load at Startup.  I upgraded
to MacsBug 6.2.2 and put prefs and dcmds into the System 
folder to no avail.  Have I bunged up the System, or did I 
manage to Turn MacsBug off somehow and erase all evidence of 
having done so.  Someone please E-mail me the proper way to
install MacsBug and/or directions for setting the system debugger
flags.  Please save me from another trip to the Cerulean data
well...thanks

--------
Mike Lambert
WOOLY@pine.circa.ufl.edu - Internet
WOOLY@UFPINE - BITNET
From: mcmath@csb1.nlm.nih.gov (Chuck McMath)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Creating a floating palette in MacApp
Date: 23 Jul 92 14:19:19 GMT
Followup-To: comp.sys.mac.programmer
Organization: MSD

In article <poon.711840774@roo>, poon@parc.xerox.com (Alex Poon) wrote:
> 
> I want to create a floating palette in MacApp, much like Hypercard's tools
> window.  I'd also like it to be resizable and scrollable.  I've created
> a palette view in MacApp as a subview of TGridView, but the window that
> it's installed in becomes hidden when another window is activated
> on top of it.  I want the palette window to always be showing, and I don't
> want any sense of it being activated or deactivated.
> 
> Any suggestions?
> 
> poon@parc.xerox.com

Well, if you're using MacApp 3.0 you can easily create a floating window
with your stuff in it. There are additions to 2.0 to add floating palette
capabilities.  The additions work; I've used them successfully in a program
I wrote.

You need to set up the appropriate flags using ViewEdit (right?) and the
palette window needs to be a TFloatWindow (this is 3.0 I'm describing
here).

It's not that difficult.

chuck

|- chuck mcmath - mcmath@csb1.nlm.nih.gov - MSD, Inc. ------------|
|- National Library of Medicine - National Institutes of Health --|
|- Bethesda, MD 20894 ------------ C++ causes cancer -------------|
|- "Hey batter, hey batter, hey batter, swing" - Anon. -----------|
Newsgroups: comp.sys.mac.programmer