HDTenEightyP/NetNews huggingface dataset:
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Alg. for Detection of Monspaced Fonts
Date: 15 Dec 92 02:25:39 GMT
Followup-To: comp.sys.mac.programmer
Organization: personal

In article <6534.2b28a410@hayes.com>, bcoleman@hayes.com (Bill Coleman)
wrote:
> 
> In article <scott.724029618@phylo>, scott@phylo.life.uiuc.edu (Scott Howard) writes:
> > My Application requires that all fonts it uses are monospaced
> > and will allow the user to choose display fonts that meet that 
> > requirement.
> 
> Perhaps your application needs to be rewritten to allow proportional fonts
> 
> > [...]
> 
> I ran into this in 1984. Our solution was to create our own fonts. Today the
> better solution is to support proportional fonts.

??? This is an issue of UI, some user will want to specify monospaced fonts
for certain situations.

Computer code, Email and plaintext documents often look best when rendered
in a monospaced font, especially when they contain tabular material which
was laid out using a monospaced font.  The user is not always knowledgable
as to what fonts are monospaced, and program help is often considered
welcome for this.  

Anyway, to determine if a font is monospaced, one must decide/determine if
international fonts are to be supported.  If not, then one has only to
exclude symbolic fonts (by FOND ID range), and incomplete fonts (by
inspection of the FontRec structure), and then compare selected characters
(say "WWWMMMiii".

Short of a comitment from Apple, I hesitate to offer a strategy for
international fonts, those which are discused in Apples literature are
amenable to the test given above, but I suspect that some font will someday
be invented which would fool it.

BTW, dont try to analyse the entirety of ALL fonts, some are rather a bit
larger than you would think :-).
--

Dana S Emery <de19@umail.umd.edu>
From: de19@umail.umd.edu (Dana S Emery)
Newsgroups: comp.sys.mac.programmer
Subject: Re: TCL: Couple o' Questions
Date: 17 Dec 92 02:43:13 GMT
Followup-To: comp.sys.mac.programmer
Organization: personal

In article <1992Dec16.195027.23764@ncar.ucar.edu>, urban@stout.atd.ucar.edu
(Art Urban (PROFS)) wrote:
> 
> What would be a good example of a "multi-window" application according to
> the TCL definition? 

a page reference to the manual would help here, in liu of it, I should
point out that the TCL is well suited for implementing applications which
allow multiple independant documents to be simultaneously open.  Each
document can be comprised of multiple windows, and floating (independant)
windows can also exist. 

> What is the best way to implement visual "scrolling" lists, like in the 
> SFGet/Put dialogs? These darn things seem to be standard interface elements,
> yet there is no obvious Class for them. I have not yet examined the Table
> Class yet...is this how they expect us to impelement this feature?

CTable/CArrayPane are indeed a possible way to implement alternatives to
the (ugh) listmanager.  Since they are data-ignorant abstract classes, you
must implement a subclass to provide data specific functions.  You will
probably also implement a CArray subclass to manage the data, you could
look to the StringDemo portion of the NewClasses Demo project for some
ideas.

An alternative to CTable is available at ftp.brown.edu, I think the class
is called CScrollList.

--

Dana S Emery <de19@umail.umd.edu>
Newsgroups: comp.sys.mac.programmer
Subject: OnLocation Index Engine
From: goblec@physc1.byu.edu
Date: 15 Dec 92 16:40:17 -0700
Distribution: world
Organization: Brigham Young University


I have a couple of questions about OnLocation.

   I have been trying to find a nice indexer/scanning program for a
collection of text files and notes that I have on disk.  The 
majority of the files are in MS-Word 5.0 format, although some
are various text files I ftped from Gutenberg.  I posted a request
for programs that could do nice fast searches and the only replies
I recieve dealt with Gopher and OnLocation.
   I am using Gopher right now, but it is a pain to select new 
folders to scan.  I have to go to a window and delete the current
folders being scanned and then move around my hard drive to 
select the new files.  Gopher also doesn't index files.  It does
a linear scan and thus is relatively slow.
   OnLocation apparently indexs and is quite fast, but doesn't allow
complex searches.  I have no idea how easy it is to select the files
to scan with OnLocation.  This has kept me from purchasing OnLocation.
I was looking at the documentation for BBEdit though, and it will
do full grep searches using the OnLocation index engine.  Does anyone
know how this is done?  If using the engine is easy or only a matter
of apple-events, I may just get OnLocation and write a little scanning
program that sends open AE to MS-word.
   Talking about MS-Word, what AE does it respond to?  I know it handles
the standard Finder-suite.  Is there a way to go to a specific place
in a file?  ie. I want to find a word with the OL engine, and then
have MS-Word open the file with the cursor at that word.

Thanks for any help...

Clark Goble
goblec@theory.byu.edu

Newsgroups: comp.sys.mac.programmer
From: russotto@eng.umd.edu (Matthew T. Russotto)
Subject: Re: Duplicate Object in Think C?
Date: Sun, 20 Dec 92 16:03:10 GMT
Organization: Project GLUE, University of Maryland, College Park

In article <white.724729120@sfu.ca> white@fraser.sfu.ca (Steve White) writes:
>How do you duplicate an object without knowing its class?  We would like
>to write something like
[...] 
>sizeof( class_name )
> 
>will return the size of an object in a class.  We get "illegal use of
>class type" when we try to compile, e.g., 
> 
>sizeof( Window )

You can't get the size of an object which has private members (except
within that object).

And since typing is done at compile time, you can't set the type of an
object through assigment.  I think you are trying to do something not
supported by the paradigm.
-- 
Matthew T. Russotto	russotto@eng.umd.edu	russotto@wam.umd.edu
Some news readers expect "Disclaimer:" here.
Just say NO to police searches and seizures.  Make them use force.
(not responsible for bodily harm resulting from following above advice)
Newsgroups: comp.sys.mac.programmer
From: johnston@me.udel.edu (Bill Johnston)
Subject: Re: Drag & Drop on an alias?  What's missing?
Organization: University of Delaware
Date: Sun, 20 Dec 1992 02:38:14 GMT

In article <jpugh-191292124255@kip2-42.apple.com> jpugh@apple.com (Jon Pugh) writes:
>In article <HARDIN.92Dec15221431@dino.mcc.com>, hardin@dino.mcc.com (John
>Hardin) wrote:

>> creating my OWN app, however, I can't get the Finder to highlight an
>> *alias* (to my app) when I drag suitable files over it.  (The Finder
>> *does* highlight my app when I drag suitable files over it.  Just
>> *not* the alias.)  What gives?
>
>I've seen what I call a bug wherein drag and drop fails on aliases to
>programs on different volumes (i.e. your program is on volB and the alias
>is on the desktop of volA).  This happens with a lot of the alias making
>programs.  You should do Make Alias in the Finder and move that alias to
>the desktop.  That always works for me.

Alternatively, keep a copy of a util like "Alias Maker" on each volume,
and use it to create aliases to apps that reside on that volume.
I doubt that this is a bug in the John Hardin's program;  I "rediscover"
the problem every time I try to set up a set of aliases on the Desktop.
-- 
-- Bill Johnston (johnston@me.udel.edu)
-- 38 Chambers Street; Newark, DE 19711; (302)368-1949
Newsgroups: comp.sys.mac.programmer
From: e-sink@uiuc.edu (Eric W. Sink)
Subject: Re: HARVEST C beginner question
Originator: sink@ux2.cso.uiuc.edu
Reply-To: e-sink@uiuc.edu
Organization: University of Illinois at Urbana
Date: Wed, 16 Dec 1992 15:02:53 GMT

carlsonb@mari.acc-admin.stolaf.edu (Bradley P Carlson) writes:

>I'm new to Macintosh programming, and am trying to use Harvest C
>(Freeware, (c)1992 Eric Sink), which shares traits of Think C and MPW.
>I've set it up (with the requisite MPW libraries) in its default
>configuration: all the bundled 'example' code is in its own folder.
>When I open one of these example projects, select one of its source
>files and select "Compile," the compilation window opens, pauses, then
>displays: 
>"": O FATAL,: File not found: filename.c

Well, you see, it's like this:
	Harvest C has a bug in it.  Maybe more than one. :-)

When Harvest C saves a project, it saves the names of all the files
in the project.  BUT, it saves them as directory ID/refnum/name.
This almost guarantees that the project file will never work on someone
else's Mac.  That is in fact the case with the Harvest C samples.
They only work on my IIsi. OOPS :-)

The best way to use the sample files is to not use them.  Reconstruct
the projects from scratch by creating new project files and adding the
source files back in.

MAYBE I'll think about fixing that bug.  I told myself and my family
that I was done with Harvest C for now, but I guess it wouldn't be too
difficult to fix just that one. :-)

>I'm sure things would begin to fall into place if I could just get
>"Hello World" to compile :) .

Don't be so sure.  Allow me to repeat the litany:

	Harvest C is free - it's not commercially supported, or supported
	at all.  It was released in the hope that someone else would
	take the work and continue it.  Unfortunately it has fallen into
	the hands of the unsuspecting beginner FAR more often than into
	the motivated programmer with time on his hands.  It has problems.
	Lots of them.

I get lots of mail, electronic and surface, about Harvest C.  99% of
it is from someone like yourself.  Believe me, I share your enthusiasm.
Remain undaunted!  But do not be deceived - there is no freely available
C compiler for the Mac which is stable -- yet.  TopSoft *will* do something
with it, sooner or later.

-- 
Eric W. Sink, Spyglass        | "You are the Pan."
1800 Woodfield Drive          |     - Rufio
Savoy, IL  61826              |
---- e-sink@uiuc.edu ---------|---------- 217-355-6000 -----------------------
Newsgroups: comp.sys.mac.programmer
From: Reid Ellis <rae@Alias.com>
Subject: Re: Stripping Mac text for Usenet
Organization: Alias Research, Inc., Toronto ON Canada
Date: Mon, 14 Dec 1992 15:51:52 GMT

Keith Rollin <keith@taligent.com> writes:
K> I just checked it out, and you're right: it doesn't quite do what I want.
K> For example, it changes opt-d to d, opt-y to Yen, and opt-x to =. I prefer
K> to make it clearer by changing them to opt-d, opt-y, and opt-x.

Jon Wtte <d88-jwa@dront.nada.kth.se> wrote:
J> Of course this extension would totally fail on anything but a
J> US keyboard layout! What you call opt-8, I call opt-q.

K> So...who's the smartest person out there? If I'm looking at a lower-case
K> delta, an upper-case sigma, or something that the Greeks never even thought
K> of, what can I turn it into so that Jon can understand it on his end?

How about sticking with the pictographic way of doing things?  Choose symbols
that *look* like the characters instead of using symbols that involve the keys
you press?  i.e., \d for delta, \= for the US opt-x, \* for bullet, \B for the
german double-s..  Of course, this is bound to break down somewhere.  It will
depend on whether you prefer digraphs or trigraphs or something like that..

Ya, just install unicode.  It's the simple solution.  :-)

Reid
--
Reid Ellis  176 Brookbanks Drive, Don Mills, ON, M3A 2T5           Canada
rae@gpu.utcs.toronto.edu || rae%alias@csri.toronto.edu || +1 416 446 1644
From: arminl@tabaqui.informatik.rwth-aachen.de (Armin Luetkenhaus)
Newsgroups: comp.sys.mac.programmer
Subject: How to write a software that simulate a disk drive (volume)
Date: 16 Dec 1992 13:38:38 GMT
Organization: RWTH-Aachen, Deutschland
NNTP-Posting-Host: tabaqui.informatik.rwth-aachen.de
Keywords: question, disk drive, volume, big problems, wizards wanted

I'm going to write a piece of software that simulates a disk drive
on the Macintosh.
I want to mount a drive, i.e. make it appear on the desktop, make it
accessible to all file system calls and map these calls to my own
routines.
Possible the user interface could be similar to Apple's "AppleShare":
Another icon appears in the chooser, the user can click on this icon
and a list of the available volumes the user can mount appears.

Now to my question: I did never write such machine dependent code
before. Has anybody experience with such problems and/or can someone
give me some hints where I can get information about
	1) adding a volume to the desktop
	2) write chooser extensions?
Any kind of help is welcome!!!

Thanx in advance
--- Armin ---

P.S.: My problem (esp. "1") seems to be very similar to what one
has to solve to write a ramdisk application. Does anyone know the authors
of "AppDisk" or "MountImage"? I'm sure they could help me!
From: potts@oit.itd.umich.edu (Paul Potts)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How do I use the 'miscdosc' AppleEvent?
Date: 18 Dec 1992 20:50:43 GMT
Organization: Instructional Technology Laboratory, University of Michigan
NNTP-Posting-Host: helen.oit.itd.umich.edu

In article <1992Dec18.174212.23244@kth.se> d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>						/ h+
>
>-- 
> -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
> Engineering: "How will this work?" Science: "Why will this work?" Management:
> "When will this work?"  Liberal Arts: "Do you want fries with that?"
>                     -- Jesse N. Schell


I feel I should mention that of the programmers in my office, I have a degree
in English, one of us has a degree in Education, one a degree in Philosophy,
our manager has a degree in English, leaving two with computer science
degrees. And one of those just told me that he thinks having a varied
educational background in history, literature, science, and arts is very
helpful. (He's the only Republican in our office, by the way...)

-- 
Politics is crime pursued by other means.              
potts@oit.itd.umich.edu      CI$ 71561,3362 (rarely)
Newsgroups: comp.sys.mac.programmer
From: kdlee@umn-cs.cs.umn.edu (Kevin D. Lee)
Subject: Re: Advice needed
Organization: University of Minnesota, Minneapolis, CSci dept.
Date: Mon, 14 Dec 1992 14:32:32 GMT

In article <1992Dec13.062936.26772@midway.uchicago.edu> hd12@midway.uchicago.edu writes:
>A software company is trying to buy an application I wrote for Macintosh.

	Don't sell the copyright, just sell the marketing rights in return
	for a percentage of sales.  One way to protect yourself is to require
	a yearly performance figure, if the software sales don't reach the
	minumum sales figure (i.e. generate enough roylaties) then at your 
	option, all rights revert to you.


>
>1. Usually what's the percentage the software author can get from the 
>company's profit? Any estimation in terms of dollar? (assuming say, $70
>each copy.)
	10-20% seems to be the norm for roylaties.  Make sure that the 
	royalty is on net sales.  By the way, roylaties are nice because
	you do not have to pay social security on roylaties.

>
>2. If the company offer fixed percentage of their profit, how am I supposed
>to make sure they will keep their promise, since I don't have access to
>their balance sheet?
	In you contract insist on the right to audit the books. They
	may require that it be done by a CPA.  Also insist that if 
	the audit shows they made an error they pay for the audit.

B
>
>3. Do I need a lawyer to make it legally binding?
	No, but you may feel more comfortable if you have a lawyer.
	Try to do as musch of the negotiating yourself and just 
	use the lawyer as a refrence.

B
>
>4. Any tips? Precautions? Suggestions?
	There are several books published about negotiating your
	own book contracts.  There are enough similarities that
	it is worth your while to look at them.
	Good Luck!
>
>All helps and suggestions will be very appreciated.
>
>


Newsgroups: comp.sys.mac.programmer
From: k044477@hobbes.kzoo.edu (Jamie R. McCarthy)
Subject: Non-GDevice screens (was Re: Depth and...)
Organization: Kalamazoo College
Date: Mon, 14 Dec 1992 18:07:40 GMT

d88-jwa@cyklop.nada.kth.se (Jon Wtte) writes:
>
>There are,
>for instance, screens that draw via SCSI - or over a network!
>Those will not even have devices associated.

Yah, I've seen ads for systems that apparently give you 8-color
(Classic) QuickDraw through the SCSI port.  How do they work?  Will
any of them give you two distinct screens, or does the quasi-color
screen just mirror the 9-inch screen?

I _hope_ all "SCSI screens" that attach to a Color QuickDraw machine
will make every effort to appear normal, and that includes putting
themselves into the GDevice list.  Are you aware of any that don't?

>   Speed is arbitrary. Don't believe me? Try a PowerBook 180 running
>   System 7 against a 486 laptop running Windows 3.1.

Er...if I were to try this, what would I learn?
-- 
 Jamie McCarthy      Internet: k044477@kzoo.edu      AppleLink: j.mccarthy
 "As you should know by now, we're strong believers in the Apple II
  and always will be.  But we can't ignore reality forever."
    - Tom Weishaar
Newsgroups: comp.sys.mac.programmer
From: rjr@titan.ucc.umass.edu (Richard J. Resnick)
Subject: Beginner's Hierarchical Menu Problem
Organization: University of Massachusetts, Amherst
Date: Sun, 20 Dec 1992 17:20:21 GMT

I am returning to the Mac environment, and getting stuck (as usual) on
what seem to be trivialities.

I am trying to make a simple FONT menu, which will be a hierarchical
menu under a menu called SPECIAL. I built the resources correctly, and
the FONT menu, res_id = 100, was built empty in the resource editor,
so that I could call AddResMenu to load it up.

My code looks something like this:

(*Loads up the Desk Accesories in the Apple Menu*)
  aMenu := GetMHandle(APPLE_MENU_ID);
  AddResMenu(aMenu, 'DRVR');

(*Tries to load up the Fonts in the FONT_MENU*)
  aMenu := GetMHandle(FONT_MENU_ID);
  InsertMenu(aMenu, -1);
  AddResMenu(aMenu, 'FONT');

The error that I get when I run this under Think Pascal is "Think
Pascal unexpectedly quit", and when I build the application and run
it, I get a missing coprocessor error. I didn't think that any of
these routines called for a coprocessor!!

In terms of system: I am running an ugly Mac Classic, 4megs of ram,
with no real upgrades of any sort. System 6.07.

Thanks in advance for any help you can give me.

Richard Resnick
Newsgroups: comp.sys.mac.programmer
From: oster@well.sf.ca.us (David Phillip Oster)
Subject: Re: Advice needed
Organization: Whole Earth 'Lectronic Link
Date: Mon, 14 Dec 1992 08:39:07 GMT

In article <1992Dec13.062936.26772@midway.uchicago.edu> hd12@midway.uchicago.edu writes:
>A software company is trying to buy an application I wrote for Macintosh.
>Since I don't have this kind of experience before, I would appreciate if 
>experienced people on the net can give me some good advice:

>1. Usually what's the percentage the software author can get from the 
>company's profit? Any estimation in terms of dollar? (assuming say, $70
>each copy.)
Whatever you can negotiate. IIt has been reported in the trade press that
the author of the Atari version of Frogger made $0.75Million. It has been
reported that Randy Wigginton got $1. for each copy of MacWrite given away
with new macintoshes for the first 1 million macs. (Not bad for 6 months 
work.)

>2. If the company offer fixed percentage of their profit, how am I supposed
>to make sure they will keep their promise, since I don't have access to
>their balance sheet?
Many contracts specify that you get periodic access to their balance sheets,
say once a year. What does "profit" mean here? Are their own salaries
included? Do they subcontract production of the boxes to a production
house that is, say, owned by a parent of the publisher, so the cost of
production always equals income, (i.e, the "profit" is siphoned out of
the publisher to the printer, leaving you with a piece of nothing.)?
It has been reported that movie studios do this trick a lot.

>3. Do I need a lawyer to make it legally binding?
No, a contract does not _require_ a lawyer to be legally binding, but a
lawyer is trained to point out spots that another lawyer can use to cause
you trouble. (This process of "sticking an oar in" itself causes trouble
and slows the negotiations down.)  See the next point.

>4. Any tips? Precautions? Suggestions?
No Lo press, Parker St., Berkeley CA, publishes a number of good self help
books on selling software, including selling to a publisher for royalties.
Get them. Read them.

"Getting to yes" and its sequels are good books on the art of negotiation,
and there are many good books on how to sell. In the real world, what you
get is what you get and everything is negotiable, although other parties
often point to a printed sheet of rules as a means of making you think you
can't negotiate.
Remember that you can always hire a trained negotiator, but the better he
is, the better he will be at negotiating his deal with _you_, so there is
a point of diminishing returns.

Remember subsidiary rights, like what happens if the publisher wants a
version on another computer.

Think of it as you hiring a "publisher" to produce, distribute, and
market your work. How much is that worth?

I've been doing this for a living, but I sure don't know it all.
Anyone else have advice?
Newsgroups: comp.sys.mac.programmer
From: The Mad Hacker <Mad@HackersRus>
Subject: Think Reference ...
Organization: The Society for the Advancement of Hacking
X-Useragent: Nuntius v1.1
Date: Sun, 20 Dec 1992 13:36:36 GMT

Check out the writeup on FindWindow, right after:

	inDrag  (4) in the drag region ...

Am I missing something here?  Or is there more to TR 
than just a tool box?
From: bayes@hplvec.LVLD.HP.COM (Scott Bayes)
Date: Thu, 17 Dec 1992 00:00:08 GMT
Subject: Re: Curves in QuickDraw GX
Organization: Hewlett-Packard Co., Loveland, CO
Newsgroups: comp.sys.mac.programmer

> So: are we going to see lots of GX programs that <ouch> make us use quadratic
> curves to describe shapes? Or <grin> is there some magic way to display cubic
> curves using quadratics? As far as I know, there's no simple way of doing so.
> Does <gasp> GX provide some way of performing this magic? If not <"display
> ignorance" mode on>, shouldn't it?

Quadratics and (non-degenerate) cubics can't even describe the same
curves.  It's hard to see how to do the "magic" without approximations
and lotsa MIPS, as you say.

ScottB
From: edw@distant.uucp (Ed Watkeys)
Newsgroups: comp.sys.mac.programmer
Subject: Further complications regarding the "Try doing this..." bug
Date: Fri, 11 Dec 92 18:29:46 EST
Organization: Distant Software
Reply-To: edw%distant@bts.com
X-Mailer: uAccess - Macintosh Release: 1.6v2

Okay, some people report this bug without MenuChoice. Personally, I don't
get the problem when I turn off MenuChoice.

The question, I think, is what can cause this bug to occur? What would make
an application blow up while pulling down a menu when particular dialogs or
alerts are on the screen?

If you have experienced this bug with or without MenuChoice, send me your
configuration -- I'll try to find any similarities which exist. Please include
system version, extensions, control panels (including Apple ones), model of
Macintosh, and monitor you have (just to be exhaustive).

BTW, if you didn't get the original message, here is a definition by example
of the bug I'm talking about: if go to the help menu, select 'About Balloon
Help...' and then try to pull down another menu, the current application should
quit or at least get really screwed up. In my experience, an image of the
menu you pulled down will 'contaminate'any thing that was lying under the
menu.

Ed

--
Edwin H. Watkeys III                                   edw@distant.uucp
Distant Software                               dsinc!jabber!distant!edw
+1 215 387 7971                                     edw%distant@bts.com