HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.sys.mac.programmer
Date: Wed, 14 Oct 1992 00:51:32 -0400 
From: "Edward B. Rodgers" <er1u+@andrew.cmu.edu>
Subject: Graph Programming Environment

I am looking for a commercial quality graph programming environment.  By
that I mean something like a C library of graphing functions. I aware of
only one product called OGP, Object Graph Programming.  Unfortunately,
it is quite inadequate.  I'm would prefer a product that's usable in
Think C and is object oriented.  However, at this point anything would
be acceptable.

If anyone has any knowledge or experience of a product like this, could
you please send me mail.  Thanks in advance, any help would be greatly
appreciated.

Briscoe Rodgers
From: perm@csd.uu.se (Per Mildner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Telling the Finder to update a file's type & creator
Date: 15 Oct 92 00:41:53
Organization: Computing Science Dept.,Uppsala University, Sweden
NNTP-Posting-Host: groucho.csd.uu.se
In-reply-to: mkelly@mystix.cs.uoregon.edu's message of 12 Oct 92 22:40:28 GMT

In article <1992Oct12.224028.2828@cs.uoregon.edu> mkelly@mystix.cs.uoregon.edu (Michael A. Kelly) writes:
   :) :)  I really need to write a program to search the digest.  There's just
   too much there to search through by hand....

   Mike.
   -- 

I use BBEdit to search the c.s.m.p digests. It works like a charm and
is available at better archive everywhere. With this you could find
TouchDir in less than a minute.

--
Per Mildner			perm@CSD.UU.SE
Computing Science Dept.		tel: +46 18181049
Uppsala University, Sweden	fax: +46 18521270
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Suggestions for Font/Size menu handling
Date: 10 Oct 92 08:05:32 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

In article <1992Oct8.002357.8698@alw.nih.gov>, fixer@faxcsl.dcrt.nih.gov
(Christopher Tate) wrote:
>[...]
> I need a pair of synched menus to allow the user to select the font and
> point size for displaying a list.  The question is how to adjust the size
> menu to conform to the current font setting.
> 


You shouldnt try to expand your font list to show all possibilities, just
validate as real the entries in it at the time of a click in a menu.  I
have done this in a TCL environment, and it is not expensive.  You might
want to ensure that sizes actually in use exist in the menu, and you will
want to keep a parallel array of the binary of the displayed numbers, so
that it becomes cheap enough to use sane for conversion, and so that you
can be localizable.

--

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: keith@taligent.com (Keith Rollin)
Subject: Re: TimeDBRA
Followup-To: comp.sys.mac.programmer
Organization: Taligent
Date: Fri, 16 Oct 1992 22:12:57 GMT

In article <mxmora-161092110250@css-mac1.sri.com>, mxmora@unix.sri.com
(Matthew Xavier Mora) wrote:
> 
> I would like to know how to determine what MHZ a mac CPU is using.
> I see a global called TimeDBRA which IM says "TimeDBRA=$D00; number of
> DBRAs executed per millisecond [word] V-352"
> 
> Is this a reliable figure? Can the speed of the processor be determined
> with this value? I would like to know because I am working on a info
> program like MacEnvy.

You cannot determine the CPU speed this way. TimeDBRA can have different
values depending on, say, whether or not the on-chip-cache for the 68040 is
on or off, or whether a Mac IIci has a cache card.

> So the main question is how can I figure out the speed of the system
> in Mhz? 

I'm afraid I don't have any clever ideas here. In my mind, the question
isn't "How fast is my Mac going?" but "Is my Mac going fast enough for my
needs?" A raw MHz rating isn't going to tell me that.

-----
Keith Rollin
Phantom Programmer
Taligent, Inc.
Newsgroups: comp.sys.mac.programmer
From: wwg2101@venus.tamu.edu (GILPIN, W.W.)
Subject: Event Manager Too Slow or izzit just me?
News-Software: VAX/VMS VNEWS 1.41    
Organization: Texas A&M University, Academic Computing Services
Date: Tue, 13 Oct 1992 04:49:00 GMT

Here is some code from a little game thingy that I'm writing. It's part
of the event loop I'm using for when the game is actually being played. The
idea is that the little ship moves around on the screen and the player can
control whether it moves up, down, left or right. From the discussion here
I was expecting flicker problems but I haven't really experienced any of those.
(yet...knock on wood)

The problem I *am* having, though, is the movement is jumpy. I've traced
the jumpiness to this code:

	while (! gameDone)
	{
		if (gWNEImplemented)
			WaitNextEvent(everyEvent, &gTheEvent, SLEEP, 
				NIL_MOUSE_REGION);
		else
		{
			SystemTask();
			GetNextEvent(everyEvent, &gTheEvent);
		}
		if (gTheEvent.what == keyDown)
			gameDone = HandleGameKey(&newDirection);
		.
		.
	(move the ship and/or change directions)
		.
		.
 	}

Note:
#define SLEEP            0L
#define NIL_MOUSE_REGION 0L


Without this code the ship moves smooth as glass...but I can't control it,
which doesn't help. I've tried just using keyDownMask instead of everyEvent but
that didn't help either. My questions are (1) Is there something I'm doing
wrong or something missing that should be painfully obvious? and (2) Is there
a faster way of getting keyboard input?

If I left anything out that would make the problem easier to slove lemme 
know...

Thanx
-------------------------------------------------------------------------------
| Wes Gilpin              | I'd kill myself for you...I'd kill you for myself |
| WWG2101@TAMZEUS(BITNet) |------------------------------------------         |
| WWG2101@ZEUS.TAMU.EDU   | Southwest Knights of Nee Paintball Team | PANTERA |
-------------------------------------------------------------------------------
From: spencer@panix.com (David Spencer)
Newsgroups: comp.sys.mac.programmer
Subject: another regular expression library
Date: 13 Oct 92 14:24:22 GMT
Organization: PANIX Public Access Unix, NYC

I should also have mentioned the Henry Spencer (unfortunately, no
relation) regexp library.

It is call compatible with the unix v8 (egrep) regular expression
library. Like the gnu code, it is used and loved by wizards. Unlike
the gnu code, it is public domain. Also unlike the gnu code, it will
not overload the symbol table of brain-dead compilers (like the
standard messy-dos compilers).

Mr Spencer states that it's not fast enough to replace the stock unix
egrep. However, it's fast enough for most purposes. And the code is
free and well-written.

ftp it from ftp.cs.toronto.edu.

dhs   spencer@panix.com
From: potts@itl.itd.umich.edu (Paul Potts)
Newsgroups: comp.sys.mac.programmer
Subject: Re: scanf equivalent calls that does not use global variables?
Date: 13 Oct 1992 02:10:26 GMT
Organization: Instructional Technology Laboratory, University of Michigan
NNTP-Posting-Host: 141.211.162.10

In article <RMF.92Oct12205253@chopin.cs.columbia.edu> rmf@chopin.cs.columbia.edu (Robert M. Fuhrer) writes:
>I just spent a minute touring through the Think C ANSI library source. [I was
>thinking perhaps sscanf() might call atof(), which would be a "primitive".]
>
>Well, atof() calls strtod(), which in turn calls __vsscanf(). This one calls
>the root-level routine __vfscanf(). Unfortunately, that routine, the heart of
>scanf(), uses globals to save a bit-vector of any scan-set specified, as well
>as a default conversion flag struct. Oh well...
>--
>
>-- Bob

What is it you are trying to do? You can use sscanf() in a code resource
such as an XCMD or whatever. Just include the ANSI-A4 library in your project.
You will have to do the usual A4 stuff. You don't need to access the global
A5 world to use sscanf(). It is a great utility to parse strings sent to
an XCMD for example.

Sorry if this is irrelevant... I seem to have missed the start of this thread.


-- 
"Everything I say is a lie." <--- potts@oit.itd.umich.edu ---> that's me!
"C++ will make your programming simpler, more efficient, and more fun!"
Newsgroups: comp.sys.mac.programmer
From: Christopher S. Eplett <opus@iear.arts.rpi.edu>
Subject: Re: Pointers sought on good C/Pascal compilers for novices
X-Xxmessage-Id: <A70262A55B035512@opus.stu.rpi.edu>
X-Xxdate: Wed, 14 Oct 92 04:49:57 GMT
Organization: Rainsallyear Instipolytechnitorturetute, Troy
X-Useragent: Nuntius v1.1.1d9
Date: Thu, 15 Oct 1992 03:50:49 GMT

In article <1992Oct15.024221.1147@ee.rochester.edu> Robert Rhode,
rhode@ee.rochester.edu writes:
>I am a TA for an introductory programming course, and have come to
>realize that the compiler we are using is UNFRIENDLY, and just not
>too well thought out.  On the other hand, Think C/Pascal, as far
>as I know, are too expensive to expect first-semester freshmen to
>buy.

I don't know about Rochester, but here at RPI, a full working copy of
THINK C ( or Pascal, for that matter ) is only $65 ( the wonders of
educational discounts ). It seems to me that this is about the same price
as the average textbook....

+---------------------------------------+-------------------------------+
|	Christopher S. Eplett		| "I think...			|
|					|				|
|	opus@iear.arts.rpi.edu		|  I've forgotten what I think!"|
|	epletc2@rpi.edu			|	R.H. Gumby		|
|	opus@opus.stu.rpi.edu (no email)|				|
+---------------------------------------+-------------------------------+
Newsgroups: comp.sys.mac.programmer
From: ames@kong.gsfc.nasa.gov (Troy Ames)
Newsgroups: comp.sys.mac.programmer
Subject: Object Master and SourceServer?
Date: 14 Oct 92 20:20:40 GMT
Distribution: usa
Organization: Goddard Space Flight Center

I am trying to get Object Master 1.0.2 to work with SourceServer from 
ETO #8.  Has anyone been successful with this?  It appears the
CurrentProject varible is not getting set in the OMCheckOut script.
Does anyone have a work around for this problem?

--Troy
ames@kong.gsfc.nasa.gov
Newsgroups: comp.sys.mac.programmer
From: Ed Rotberg <gonzo@ntb.apple.com>
Subject: Re: How do I do a nice "fade-to-black"?
X-Useragent: Nuntius v1.1
Date: Thu, 8 Oct 1992 17:53:28 GMT
Organization: Apple Computer

How do I do a nice "fade-to-black"?

If you are trying to do it using color animation and the palette manager,
be sure to set the entire palette to pmAnimated and do an
_ActivatePaltette after each sucessive change to the ColorTable.  Be
aware that color 0 (white) is never allowed to be animated.  I've
implemented code to do this myself and it works pretty well, but if you
want the ultimate is smooth fades, and you want to fade the "entire
scree" and not just a window, then doing a gamma fade is definitley the
way to go.  This gets into the SCSI manager routines, however, and is not
for the faint of hearts.  Also, if you do try to implement this, and you
start to crash in between the fade-out and fade-in, you'll probably have
to reboot the Mac to get anything visible again (or write a clever FKEY
to resore the Gama table).

Good luck,

Ed Rotberg                 "Just remember...
Professor of Gonzo          a waist is a terrible
Apple Computer, Inc.        thing to mind"
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Word 5 problems
Date: 6 Oct 92 06:20:14 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

In article <41113@imag.imag.fr>, iron@imag.fr (Francois Menneteau) wrote:
> 
> 
> I wrote my thesis with Word 5 on a Macintosh with no access to a printer.
> As the document is large, I chain the various chapters.
> 
> So When I wanted to print it, I put my documents on a other mac, and big
> surprise, Word 5 printed only the first chained file and said it could not
> find the next one!!!!!! (I suppose It must store a vrefnum or somethink like
> that which is really not portable from one mac to an other).
> 
> So my question (extremely simple in fact) is: does any other user experience
> such a behaviour ? Is there a solution to solve the problem without being
> obliged to build again the chain of files ?


Microsoft seems impervious to comments from the peanut gallery on this
subject, Word 3 and 4 suffered from the same problem, ie, lack of a project
manager.  I complained about it as long ago as summer of 1990, which was
about the time they were working on the v5 feature set.  As far as I know,
MS will probably continue to ignore pleas for a fix to this headache, at
least untill somebody beats them to market with a product that caters to
book/thesis layout concerns.  My bets would be on Nissus for that.

IMHO the project manager should present a view of:

o  filepath, mod date/time.
o  Document format settings.
o  project level stylesheet, and selected doc deltas from it.

Editing of each project file's style sheet and document format should be
supported here.
Each document should be marked with a backpointer(resource fork) to each of
the various projects it might be a member of.
Project file should either specify a settings file, or be a substitute for
it.

changes at the file level:

o  Footnote numbering should be cabable of chaining as pagination does now.
o  Included illos should be capable of being omitted till print time, and
maybe even not even then 
    (drafts) placeholders would actually be file aliases for eps/pict files
(?resources in the 
    project document?).
o  Unexpected resource fork material should be caried over during Save (per
apple spec).

for serious academics, it would be nice if text could be style tagged for
the dictionary suite (if any) to be used in spell checking.  It is a real
pain to deal with foreign language quotations  otherwise.

--

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: felciano@summit.stanford.edu (Ramon M. Felciano)
Subject: Q: THINK C 5.0.3 and MacTCP bad?
X-Posted-From: InterNews1.0a5@leland.stanford.edu
Organization: Stanford University Medical Media and Information 
 Technologies
Date: Fri, 9 Oct 92 01:15:35 GMT
Xdisclaimer: No attempt was made to authenticate the sender's name.


Hi --

I'm working on an e-mail project that uses MacTCP. I recently upgraded
to THINK C 5.0.3, and am now encountering bus errors left and right
when running on the Quadra. The bus errors don't occur on other
machines, or if I turn the network access off (i.e. work offline).

Has anyone else encountered problems with MacTCP and 5.0.3? Any
suggestions? Unfortunately, I'm only working on the application
interface stuff, not the engine, so I'm at a loss as to where to go
from here.

Thanks!

Ramon

+----------------------------------------------------------------+
| Ramon M. Felciano                felciano@summit.stanford.edu  |
| Associate Director, SUMMIT       (415) 723-9688                |
| Stanford University Medical Media and Information Technologies |
+----------------------------------------------------------------+
Newsgroups: comp.sys.mac.programmer
From: J074870@LMSC5.IS.LMSC.LOCKHEED.COM
Subject: Re: Need idiot-level asm help v1.1
Organization: Lockheed Missiles & Space Company, Inc.
Date: Fri, 16 Oct 92 20:49:28 GMT

------------------------- Original Article -------------------------
Newsgroups: comp.sys.mac.programmer
From: yates@engr.latech.edu (Donald W. Yates)
Subject: Need idiot-level asm help v1.1
Organization: Louisiana Tech University
X-Newsreader: TIN [version 1.1 PL6]
Date: Thu, 15 Oct 1992 19:55:19 GMT

This should work for you.  First create a file called hello.asm

            Include  :<folder>:IOPackDefs.txt;holds Xref's etc.
            XDef     Main

Main:       lea      'Example of hello world', A0
            bsr      MakeWindow
            bsr      NewLine
            lea      '   Hello  World   ', A0
            bsr      CStrOut
            bsr      NewLine
            lea      'Enter n to exit ', A0
            bsr      AskYesNo
            bsr      Exit

Assemble it and link it and your done.

Let me know if you have any questions.
Thanks.......... Matt Shember
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: C.S.M.P. Digest V1 #182 Available
Date: 10 Oct 92 16:49:50 GMT
Article-I.D.: cs.1992Oct10.164950.21319
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.


C.S.M.P. Digest             Sat, 10 Oct 92       Volume 1 : Issue 182

Today's Topics:

	Password entry in a dialog
	DLOG stuff....
	Using CODE rescource files
	Moving to the foreground after receiving an 'odoc' from the Finder



The Comp.Sys.Mac.Programmer Digest is moderated by Michael A. Kelly.

The digest is a collection of article threads from the internet newsgroup
comp.sys.mac.programmer.  It is designed for people who read c.s.m.p. semi-
regularly and want an archive of the discussions.  If you don't know what a
newsgroup is, you probably don't have access to it.  Ask your systems
administrator(s) for details.  (This means you can't post questions to the
digest.)

Each issue of the digest contains one or more sets of articles (called
threads), with each set corresponding to a 'discussion' of a particular
subject.  The articles are not edited; all articles included in this digest
are in their original posted form (as received by our news server at
cs.uoregon.edu).  Article threads are not added to the digest until the last
article added to the thread is at least one month old (this is to ensure that
the thread is dead before adding it to the digest).  Article threads that
consist of only one message are generally not included in the digest.

The entire digest is available for anonymous ftp from ftp.cs.uoregon.edu
[128.223.8.8] in the directory /pub/mac/csmp-digest.  Be sure to read the
file /pub/mac/csmp-digest/README before downloading any files.  The most
recent issues are available from sumex-aim.stanford.edu [36.44.0.6] in the
directory /info-mac/digest/csmp.  If you don't have ftp capability, the sumex
archive has a mail server; send a message with the text '$MACarch help' (no
quotes) to LISTSERV@ricevm1.rice.edu for more information.

The digest is also available via email.  Just send a note saying that you
want to be on the digest mailing list to mkelly@cs.uoregon.edu, and you will
automatically receive each new issue as it is created.  Sorry, back issues
are not available through the mailing list.

Send administrative mail to mkelly@cs.uoregon.edu.


-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: THINK C bug AGAIN
Date: 15 Oct 92 11:36:47 GMT
Followup-To: comp.sys.mac.programmer
Organization: Personal

In article <Bw4DGs.Gyz@news.cso.uiuc.edu>, swofford@uxh.cso.uiuc.edu (David
Swofford ) wrote:
> 
> gb2a+@andrew.cmu.edu (George J. Baxter) writes:
> 
> >I have found another piece of code that fell apart due to the Think
> >5.0.3 upgrade:
> 
> >	while (*index != CR && i < 9)
> >		posString[i++] = *index++;
> >	posString[i]=0;
> 
> 
> >basically, a similiar piece of code, and the exact same problem,
> >confirmed in the assembly with MacsBug.  See previous post.
> 
> This is scary.  I switched to 5.0.3 primarily because of the Debugger
> fixes.  Now I'm wondering if I too should go back.  The problem is that
> in a very large application, bugs like this go easily go unnoticed for
> a long time.
> 
> Does THINK know about this?  Will there be a 3.0.4 soon?


Symantec knows, I asked.  Unfortunatly, they have not been able to
replicate it, although george has.  At the moment I beleive he is
attempting to abstract the problem, and I am sure all of us await the
results which will be posted, be assured.
--

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,comp.sys.mac.comm
From: Alexander M. Rosenberg <alexr@apple.com>
Subject: Re: CTB Tool Menu Wierdness...
X-Useragent: Nuntius v1.1.1d12
Date: Mon, 12 Oct 1992 18:16:59 GMT
X-Xxdate: Mon, 12 Oct 92 19:16:49 GMT
X-Xxmessage-Id: <A6FF0F2156010C7C@mtdew.apple.com>
Organization: Hackers Anonymous

In article <84243D415D@ivt.srcc.msu.su> Vladimir Butenko,
butenko@stalker.srcc.msu.su writes:
> There are several solutions: 1) copy the MDEF resource into your tool -
> urgly, and incompatible with future system versions.
> 2) Store the title and menu items as STR or  STR#  resources  and  use
> NewMenu(), but DON't forget  to  restore  the  current  resource  file
> between loading those STR resources and calling  NewMenu(),  otherwise
> you meet the same problem.
>
> I do understand why  CTB  tools  are  excluded  from  the  application
> resource files chain, but why they are not linked to the System file -
> is beyond of my mind.

Apple's Terminal tools do the following during an init message:

curResRef = CurResFile();
UseResFile(procID);
mhndl = (MenuHandle) CRMGet1Resource('MENU', resID);
											// Gets the MenuHandle
UseResFile(curResRef);						// Include System and ROM maps
resID = GetMenu(resID);						// Only to fill in menuProc field
UseResFile(procID);
// loops through submenus to:
	// Searches for unused menu ids for each submenu it is inserting.
	// Does a NewMenu with a bogus title using unused menu id.
	// Hand fixes the menu marks to have new submenu IDs
	CalcMenuSize(submenu);
	InsertMenu(submenu, -1);

And then on an activate message, they insert the main menu if menus are
allowed by the calling application.
---------------------------------------------------------------------------
-  Alexander M. Rosenberg  - INTERNET: alexr@apple.com      - Yoyodyne    -
-  330 Waverley St., Apt B - UUCP:ucbvax!apple!alexr        - Propulsion  -
-  Palo Alto, CA 94301     -                                - Systems     -
-  (415) 329-8463          - Nobody is my employer so       - :-)         -
-  (408) 974-3110          - nobody cares what I say.       -             -
Newsgroups: comp.sys.mac.programmer
From: Anders Wallgren <anders@verity.com>
Subject: Re: UnloadSeg and pointers to functions
Organization: Verity, Mountain View, CA, USA
Date: Fri, 16 Oct 92 02:18:21 GMT
X-Xxmessage-Id: <A70375E76901C897@pokey.verity.com>
X-Useragent: Nuntius v1.1.1d12
X-Xxdate: Thu, 15 Oct 92 03:24:23 GMT

In article <absurd-151092151115@seuss.apple.com> Tim Dierks,
absurd@applelink.apple.com writes:
>2) If you're using -model far, you'll always get a PC-relative
>   address due to a bug in the way it patches up your segment.

This is fixed in the latest MPW on ETO.
Newsgroups: comp.sys.mac.programmer