HDTenEightyP/NetNews huggingface dataset:
From: jacobson@fred.isgs.uiuc.edu (Russ Jacobson)
Newsgroups: comp.sys.mac.programmer
Subject: Macsbug and Programmers Key ext.
Date: 5 Nov 92 16:47:11 GMT
Article-I.D.: jacobson.jacobson-051192104534
Followup-To: comp.sys.mac.programmer
Organization: Illinois State Geological Survey


	I have been beta testing some software on my BBS and was told it would be
helpful to use MacsBug. I don't have the programmers switch anymore for my
SE/30 so it was suggested I use the programmers key extension. Well I have
several questions. 

	First the programmers key extension does not seem to work as advertised I
cannot get the restart and shut down commands to work. I got the latest
copy I could find on my BBS in a Box CD Rom Vol VI. Has anyone noticed this
problem? I was testing it on my Mac IIsi at work by the way with system
7.0.1 (with 1.1.1 tunup). 

	Second are there instructions somewhere for MacsBug?  The files that comes
with it from Apple are very little help to me as I am not a programmer and
thus have little understanding of what they are talking about in the readme
file that came with Macsbug 6.2.2. If some kind soul has a list of Macsbugs
commands and instructions for use of it after invoked I would be greatful
if you could email me a copy. 

	Please reply to my email address below, as I don't read this newsgroup
often and might miss your reply. Thanks much for your time!

 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Russ Jacobson                     INTERNET:jacobson@fred.isgs.uiuc.edu
  Illinois Geological Survey        FIDONET: 1:233/11 and 1:233/14        
  Champaign, IL 61820               Narnia BBS  217-384-3128 (Telefinder)  
                   
  217-244-2426                      Home Phone: 217-384-6983
 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Newsgroups: comp.sys.mac.programmer
From: davew@uswest.com (David Wroblewski)
Subject: Flattened (Single Fork) QuickTime Movies
Keywords: quicktime
Organization: U S WEST Advanced Technologies
Date: Thu, 5 Nov 1992 01:31:15 GMT

Does anyone have experience using the QuickTime FlattenMovie function to 
create single fork ("flattened") movie files?  I am experiencing a possible
bug, or at least obscure behavior.

The behavior is this:  I flatten ordinary movie file A using a little custom program 
that simply calls FlattenMovie, (producing file B) then FTP B round trip 
(in binary mode) to a Unix machine and back (producing file C). A, B, and C all
have different names on my disk. 

Now I delete file B.  

Now Simple Player (and other players) fail trying to play the movie from file C, popping 
up the standard "Looking for movie file B" dialog that Quicktime shows when it can't 
quickly resolve a reference to a data file. Of course, I think that QuickTime should be 
finding the self-same file (C) I told Simple Player to open, but it won't accept that answer,
it wants file B.  If I rename C to B, Simple Player can play it perfectly.

My theory is that somewhere inside the flattened movie file is an alias or other reference
to the flattened movie file B, which wasn't changed via the FlattenMovie procedure.
Since FlattenMovie was included in QuickTime exactly to handle the case of moving 
movies to other (non-mac) file systems, this seems like a bug to me, and since I want to 
write a "movie server" that can hand off movies to anyone who asks, without dictating the 
name of the file it gets stored in, this is causing me real grief.

Has anyone else seen this, have ideas about what might cause it, or thoughts on how
I might debug it?  Pointers to public domain code that flattens movies would also be
appreciated, on the off chance that I am not using FlattenMovie correctly.

Thanks in advance.

David Wroblewski
U S WEST Advanced Technologies
Boulder, CO 80303
(303) 541-6008
davew@uswest.com



Newsgroups: comp.sys.mac.programmer
From: cstrockb@cs.sunysb.edu (Caleb Strockbine)
Subject: Re: The Forgetful Finder
Organization: SUNY at Stony Brook Computer Science Dept.
Date: Sat, 7 Nov 1992 04:20:11 GMT

In article <1992Nov5.174108.20232@hobbes.kzoo.edu> k044477@hobbes.kzoo.edu (Jamie R. McCarthy) writes:

   Every once in a while, when you restart, the Finder will forget some
   information about one or more windows.  Sometimes they're open windows,
   sometimes not.  It remembers icon placements, but not the View-By,
   window size, or window location.  I've never noticed any pattern to it.

I don't know the explanation for this, but I've seen it too. I've ONLY seen
it happen on a IIfx running 7.0. It's not every once in a while, either -
it happened very frequently. We'd use the Views control panel to set the
display font to something non-standard (Tekton, usually, but others worked
too) and maybe set some other options (medium icon size, etc). The changes
would hold for a short while, and then revert back to Geneva after maybe
10 or 15 seconds.

We have a number of machines in the office where this happened, and only 
the IIfx exhibited this weirdness. Does it happen on other machines as well?

Caleb.
--
This message has been brought to you by the letters C and S and the number 3.
Newsgroups: comp.sys.mac.programmer
From: minow@apple.com (Martin Minow)
Subject: Re: problem with arithmetic and longints in THINK Pascal
Date: Thu, 5 Nov 1992 19:26:23 GMT
Distribution: usa
Organization: Macintosh Developer Services
Followup-To: comp.sys.mac.programmer

In article <1992Nov4.212432.3443@mcs.drexel.edu>, udmorrow@mcs.drexel.edu
(Daniel Morrow) notes that

> 		x[i] := 10000 + (i - 1) * 10000;

evaluates the expression in short (16-bit) integer arithmetic even though
the value is being stored in an array of Longints.
 
While I don't know the Pascal standard well enough to comment, this is
correct behavior for Ansi C (assuming that variable i is a short int).
It would seem that the safe way to do this would be, say,

    x[i] = (i - 1);
    x[i] = (x[i] * 10000) + 10000;

Substituting a Longint temp variable for x[i] as needed if you want to
be picky and don't trust the compiler's optimizer to do it for you.

Martin Minow
minow@apple.com
Newsgroups: comp.sys.mac.programmer
From: asunta@convex.csc.FI (Miika Asunta)
Subject: Re: Toolbox routine to get file sizes
Organization: Finnish Academic and Research Network Project - FUNET
Date: Sun, 8 Nov 92 09:37:57 GMT

In <1992Nov8.004411.1@tesla.njit.edu> erh0362@tesla.njit.edu (Elliotte Rusty Harold) writes:


>	Is there a simple Toolbox routine to get the physical and/or logical 
>file size of a given file on a disk?  If so, what is it?

>Elliotte Rusty Harold		Department of Mathematics
>elharo@m.njit.edu		New Jersey Institute of Technology
>erh0362@tesla.njit.edu		Newark, NJ 07102


GetEOF
--
Miika Asunta
asunta@convex.csc.fi			Double Bass Player
tel. +358-0-494 093			Macintosh Programmer
From: rrichter@link.ph.gmr.com (Roy Richter PH/32)
Newsgroups: comp.sys.mac.programmer
Subject: Source needed that reads TIFF files
Date: 9 Nov 92 16:30:02 GMT
Organization: GM Research Laboratories

I need some C code to read TIFF files and give me the results
in a PixMap, prefereably in RGB or CYMK, whichever the native
TIFF file gave.  I don't need to write TIFF, just read it.
Anybody have such a thing they could give to me, or a pointer
for anonymous ftp?
--
Roy Richter                  Internet: rrichter@ph.gmr.com
Physics Dept, GM Research    UUCP:     rphroy!rrichter
Newsgroups: comp.sys.mac.programmer
From: keith@taligent.com (Keith Rollin)
Subject: Re: Menu Bar Shape
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Fri, 6 Nov 1992 14:37:30 GMT

In article <1992Nov05.173347.13036@sunfs3.Camex.COM>, kent@sunfs3.Camex.COM
(Kent Borg) wrote:
> 
> Why is it that about the time Finder launches on a Powerbook the
> curved corners at the top of the screen get squared?  The bottom
> corners are still round, but not the top corners.  Why?

I think that's for certain types of monitors, starting with the original
Mac Portable. Normally, the margins of your desktop are black, and drawing
the black rounded corners looks nice. However, there are some monitors with
white or light margins. On those monitors, the rounded corners look really
stupid (white menubar and white margins with these little triangular black
things floating in the middle of it all).

The MBDF in the Mac Portable was modified to not draw the rounded corners.
My guess is that the logic used to decide whether or not to draw those
corners is not quite accurate for all of the new portables.

The code in the MBDF (under 7.0 and later) performs along the following
lines:

	pSquareMenubar = false;
	if (Gestalt(gestaltMiscAttr, &result) == noErr) {
		pSquareMenubar = (result & (1 << gestaltSquareMenuBar)) != 0;
	}

So it looks like Gestalt isn't returning the appropriate value for your
PowerBook. If this really bothers you, I suppose you could write an INIT to
replace that Gestalt selector and return a different value.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer
From: alana@majestix.cs.uoregon.edu (Thomas Alan Akins)
Subject: Undo Hints
Organization: The uncharted backwaters of the unfashionable end of the			      Western Spiral arm of the Galaxy.
Date: Fri, 13 Nov 1992 20:04:42 GMT

I am fairly new to Mac Programming although I consider myself to be more than
a novice.  I am implementing a simple text editor as part of an application
and would appreciate any hints on implementing the Undo command.  I have some
of my own ideas but would appreciate anything that is fairly simple to
implement.

Tips on how to "remember" the last edit command and the storage of a string of
text that the user may wish to undo (Undo Typing), etc.

Anything will be greatly appreciated.
Alan
-- 
*                                        |    Alan Akins                      *
*       "I could say 'addition'          |    alana@cs.uoregon.edu            *
*        when I mean ... 'basketball.'"  |    University of Oregon            *
*                        - E. Tick       |    Department of Computer Science  *
From: James_Zuchelli@qm.claris.com (James Zuchelli)
Newsgroups: comp.sys.mac.programmer
Subject: Where to find Bar Code information?
Date: 10 Nov 92 02:03:44 GMT
Distribution: usa
Organization: Claris Corp

I have a friend who is Mac programmer.  He needs info on programming 
Bar Codes.  How to read them, encoding rules, checksums, etc.

Does anyone know of a good source for information on this?

I understand there is a company that has a central registry for bar codes
that use the UPC format, does anyone know where this company is located.

Thanks

Email appreciated, will post any info I get.

James Zuchelli

-------
This is my personal opinion and not that of Claris Corp. or my Employer.
Newsgroups: comp.sys.mac.programmer
From: g16m@alf.zfn.uni-bremen.de (Mick Schmidt)
Subject: Need Infos on Interrupt and SCC programming
Keywords: SCC,Interrupt Programming
Organization: Univ. Bremen, Informatik
Date: Mon, 9 Nov 1992 14:37:19 GMT

Hi everybody!

I'm seeking for Information (Docs, Example Sources, etc.) on programming
the SCC and on Interrupt programming in general.

I have to do a different XON/XOFF handling (for a multiplexing protocol) and
so I guess i will be forced to do that by hanging own Rotines in the SCC
Interrupt tables.

Any hints where I can find such infos like ftp-Server, etc. or titles of
literature which covers that would be great. (Mac Revealed only points to
IM and the IM are not very extensive in their description either).

Answers please per e-mail to g16m@alf.zfn.uni-bremen.de or in this newsgroup.

G'Day Mick
--
Mick Schmidt / Kopenhagener Str. 145 / 2820 Bremen 77 / Tel. 0421/ 635270
Home: ms@hb.maus.de (No Binaries/UUEs!!!) / Uni: g16m@alf.zfn.uni-bremen.de
// Fuer Risiken und Nebenwirkungen essen Sie die Packungsbeilage 
                          und schlagen Sie Ihren Arzt mit dem Apotheker! //
Newsgroups: comp.sys.mac.programmer
From: kent@lloyd.Camex.COM (Kent Borg)
Subject: Re: The Forgetful Finder
Organization: Camex Inc., Boston MA
Date: Thu, 12 Nov 1992 00:01:29 EST

In article <BxIM0r.IHC@unx.sas.com> Michael Hecht <Michael_Hecht@mac.sas.com> writes:
>In article <1992Nov10.174217.23367@netcom.com> Bill Hofmann,
>wdh@netcom.com writes:
>>This must be one of those "only a few hundred" open bugs in 7.1.  It's 
>>a common experience, and there seems to be no particular cause for it.
>>I reported it into the great black hole using the bug reporter, I hope
>>others will as well.
>
>I've *only* seen this happen when the Mac forgets my Monitors
>configuration..;

System 7.0, 7.0.1, and possibly 7.1 (using it not long enough to know
yet), are high-quality products, except *Finder* has some frustrating
bugs.  Some of them are speed issues.  Yes, maybe they bit off more
than they could chew, but they have an obligation to say when that
happens.

My biggest gripe: Finder is too slow.  I say sentence the Finder Team
to living on Classics (not Classic II's) until they clean up their
act.

Second, Finder is the buggyest part of the the 7.Xs.  (Ever noticed
the mess they make if the desktop database?  System 7 icons hiding
behind system 6 masks, icons igored, pixel to the right offsets for
icons, etc.) 

So fix it!


-kb, grumpy beyond belief

--
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: rhorn@csws20.ic.sunysb.edu (Robert Horn)
Subject: Re: How to use large arrays in Think C?
Organization: State University of New York at Stony Brook
Distribution: comp
Date: Sat, 7 Nov 1992 19:25:08 GMT

In article <CSTROCKB.92Nov6235644@csws12.cs.sunysb.edu> cstrockb@cs.sunysb.edu (Caleb Strockbine) writes:
>
>Forgive me if I should have been able to figure this out on my own, but
>deadlines are approaching and I need to get to work...
>
>I know that I can't declare arrays > 32K in Think C on the stack. Fine,
>I don't mind using malloc(). But I'm working on a project for a class
>in which I have to process images that are 256x256 pixels, and the images
>are stored (on a unix system) as 256x256 byte files (each byte = 1 pixel).
>
>So my question is this: is it possible to allocate a bunch of memory using
>malloc() and then pretend it's a regular array?

If you're using Think C 5.0.x, you can turn on the far data option, otherwise, you
might be able to...

typedef struct Bongo Bongo, *BongoPtr;
struct Bongo {
  Byte        x[256][256];   // your data, Think C should be able to handle
			     // this definition, just not a declaration
			     // of the type. You can probably mess around
			     // with typedefs and array types, I just don't
			     // like the idea of a pointer to an array
			     // and am not sure of how to code one.
};

your_code() {
  BongoPtr     pBongo;
  short        i, j;

  pBongo = NewPtr(sizeof(Bongo)); // a call to malloc of > 32K is automaticly
				  // a call to NewPtr, i believe
  if(!pBongo) {
    FailHorribly();
  }
  for(i = 0; i < 256; i++) {
    for(j = 0; j < 256; j++) {
      pBongo->x[i][j] = 0;	  // init to 0, or use NewPtrClear
    }
  }
  // your code here
}

Cheers!
Robb
(official member of the michael kifer fan club)
-- 
rhorn@ic.sunysb.edu           Never choose a college because it has a duckpond.
Would you like to touch my wombat?		  Send me hate mail, I love it.
Newsgroups: comp.sys.mac.programmer
From: Joshua D. Wachs <joshua@natural.com>
Subject: 4D Expert Wanted!!!!!
X-Xxdate: Thu, 12 Nov 92 20: 42:17 GMT
Organization: Natural Intelligence, Inc.
X-Useragent: Nuntius v1.1.1d7
Date: Thu, 12 Nov 1992 20:42:39 GMT

Natural Intelligence, makers of Easy4D(tm) and providers of a full
range of computer consulting services, has immediate openings for
professional, articulate 4th DIMENSION experts. We offer excellent
pay, generous benefits, and an attractive profit-sharing plan.
 

Candidates must have a strong working knowledge of 4th DIMENSION
and related ACIUS products. (4DCalc, 4DWrite, 4DDraw, 4D SQL Server,
4D DAL, etc.)

Knowledge of any of the following is a plus: C, SQL, MacToolbox,
and Sybase.

If you've got what we want, send a cover letter and resume,
including salary requirements to: 

	Natural Intelligence, Inc.
	Human Resources Division
	2067 Massachusetts Avenue
	Cambridge, MA  02140
	Fax:  (617) 492-7425
	Phone:(617) 876-4876
	email:hr@natural.com
Newsgroups: comp.sys.mac.programmer
From: pdd@meaddata.com (Paul Darata)
Subject: Help! Tear-off menu in TCL doesn't appear
Organization: Mead Data Central, Dayton OH
Date: Mon, 9 Nov 1992 16:32:54 GMT
Reply-To: pdd@farside.meaddata.com
Distribution: usa


I am  trying to create an additional tear-off menu in a program similar
to the Art Class demo in Think C.  I have been unable to get the tear-off
menu to appear.  The new tear-off is a hierarchical sub-menu.  This is
what I have done so far:

    o   created a new class which is a copy of the ToolsDir.C file provided
        in the Art Class demo

    o   modified the code to look for a different 'ChGd' resource

    o   added a new menu item to an existing menu with the new tear-off menu
        as the submenu

    o   created a new empty menu for the new tear-off

    o   created the new 'ChGd' resource using ResEdit (I also changed the
        field with the menu number to the new tear-off)

    o   created a new MDEF resource

    o   at run-time the menu item and the tear-off menu menu are enabled

And then nothing happens when I highlight the new menu item.  What have I
missed?  I also moved the original "Tools" tear-off to act as a hierarchical
menu and it works fine.  Any help will be greatly appreciated.



----------------------------------------------------------
Paul Darata                       pdd@farside.meaddata.com
Mead Data Central           ...!uunet!meaddata!farside!pdd
P.O. Box 933                     meaddata!pdd@uunet.uu.net
Dayton, OH  45401
(513) 865-7756            #include <std.disclaimer>

  "... as for me and my house, we will serve the Lord."
         Joshua 24:15
----------------------------------------------------------

Newsgroups: comp.sys.mac.programmer
From: zaphod@bluemoon.use.com (Peter Bierman)
Subject: CTB, fake ports, how?
Organization: Blue Moon BBS ((614) 868-998[024])
Date: Thu, 12 Nov 92 22:36:21 EST

I'm trying to design a scheme for my school.

What I want to do is to create a fake CTB port on a machine that I will 
pass the modem port data to. But I will intercept and modify the data as 
it is passed.

What I want to do is put a shell over the control of the modem. I will 
then use PortShare to share this "shelled" modem over the network.

First) How do you create a new port?

Second) Where can I find better info on the CTB than the Inside the Mac 
CTB book? It's not exactly clear...


--
   T H E    M E T R O P O L I S     | Internet: Zaphod@bluemoon.rn.com
          (614) 846-1911            | FutureNet: #33@#10
 350 MB of Apple II and Mac Files   |   "I've changed my mind, Hobbes.
    F R E E  D O W N L O A D S      |    people are scum." --Calvin
--
From: dalessan@clam.rutgers.edu (Gene Gino The Gene-man)
Newsgroups: comp.sys.mac.programmer
Subject: Questions: best c++ for mac...
Summary: Question: What's the best c++ for mac...
Keywords: prog
Date: 7 Nov 92 04:31:24 GMT
Organization: Rutgers Univ., New Brunswick, N.J.

Hi...Couple quick questions...

What's the  best mid-range c++ compiler for the Quaddra 700/950?
I am used to Borland's c++ compilers on the IBM, is there anything
equivalent or close to them for the mac.

The most of the work that I will be doing will be graphics/fractal/
video intensive using the Vista++ Video board and a couple various
systems. Does anyone know of any libraries or source codes that are
in the public domain related to fractal visualtion for the Mac's.
Could anyone suggest a particular programming instructional manual
or book that is detailed and well written in realtion to the          
topics that I have mentioned (i.e. graphics, video, fractals, etc).

thanks in advance...

Trebor Smith
dalessan@clam.rutgers.edu
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ThinkC or ThinkPascal?
Date: 12 Nov 92 15:04:55 GMT
Followup-To: comp.sys.mac.programmer
Organization: personal

In article <1992Nov7.225952.18033@bert.eecs.uic.edu>,
inglehar@bert.eecs.uic.edu (James Inglehart) wrote:
> 
> I've used Macs for years, but never programmed one. Now I need to
> develop a GUI front-end for some existing software (with drawing
> and graphing capabilities) that runs on the Mac
> [...]
> ThinkC or ThinkPascal or something else? What
> else do I need to get started? (ResEdit, I assume. What's the
> latest version?) What books should I use? The "ThinkC Programming
> Primer?" How soon will I need "Inside Macintosh" Vols. 1-6?

My first Mac experience was in Think Pascal.  I have since started working
in Think C.

If you are importing C code, you might do better to use Think C, otherwise
I would recommend Pascal.

I say Pascal for the strength of its debugger, which is considerably more
intuitive to use thatn its C counterpart.  Pascal projects have several
virtues over their C cousins, in that they are not as subject to casual
corruption during debugging, and they are also much more definative as to
where your source files are actually located, which eases large project
management headaches.  Pascal projects also tend to occupy 40% less disk
than comparable C projects, for reasons I dont fully understand.

Unfortunatly, much more C PD code exists, and C code is more capable of
being optimized, as the Think C has an integral assembler, which Pascal
sadly lacks.

Either language is bundled with the Think Class Library, which you may find
especially usefull, as it takes on a lot of the burden of designing the UI.
 You should be comfortable with OO design concepts before leaping at this
tho, as the available literature is minimal.

You might consider AppMaker for assistance with the intial UI work.

ResEdit 2.1.1 is the latest version I know of, at least 2 books are
available which discuss its use in depth.  MacsBug 6.2.2 is the current
machine level debugger, a good book is available for it as well.

A Subscription to the Apples Develop Magazine is cheap, and the articles
are especially deep.  Mactutor is also usefull.  Back issues of both are
good.

This groups FAQ will point 

You will need IM from the start, you might be able to get away with just
the second edition, I would pay particular atention to the Memory volume,
as Mac memory management issues are the bane of most debugging schedules. 
The original Mac had a very small memory, and so emerged the Handle and the
heap.(read all about it)

Just remember, dont worry if a particular trap call or function reference
might move memory, just assume it does, lock dereferenced handles, and
youll be alright.

Hope you can find a good users group, or maybe some experienced Mac
programmers around you, this beast is wicked to master under time pressure.

good luck
--

Dana S Emery <de19@umail.umd.edu>
Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA
Newsgroups: comp.sys.mac.programmer
Date: Thu,  5 Nov 1992 21:19:58 -0500 
From: "John A. Fedak" <jf3c+@andrew.cmu.edu>
Subject: Copybits/Offscreen drawing...

yo,

OK I've stared a this long enough, what am I doing wrong?
It's going to be a simple little animation routine.  I'm attempting
to draw offscreen to speed things up a little.

I'm not getting any results (i.e. blank window).  I guess I should
be glad it's not crashing.

----
 GDHandle     currDevice;
	GWorldPtr    newWorld,currPort,oldPort;
	PixMapHandle newMap;

	GetGWorld(&currPort,&currDevice);
	
	NewGWorld(&newWorld,0,&mainBounds,0,0,0);
	newMap = GetGWorldPixMap(newWorld);
	LockPixels(newMap); 
	
 SetGWorld(newWorld,currDevice);

  /* Draw Stuff Here */

	CopyBits(newWorld->portPixMap,currPort->portPixMap,
			 &newWorld->portRect  ,&currPort->portRect  ,srcCopy,0);		 
			 						 
	UnlockPixels(newMap); 
	SetGWorld(currPort,currDevice);
	DisposeGWorld(newWorld);

----


Thanks in advance,

Feds