HDTenEightyP/NetNews huggingface dataset:
From: gg4921s@acad.drake.edu
Subject: Think C & XFCNs returnValue Monster?
Organization: Drake University, Des Moines, Iowa, USA
Date: Thu, 7 Jan 1993 17:53:45 GMT

                                                                           
XFCNs written in Think C:
  I have a problem returning a value to HyperCard:  I can return a value
to a field or the message box.  My XFCN's will not return a value into a
variable directly.

   example: Put myXFCN("param1") into myReturnValue
            Put myReturnValue

   yields an empty message box where as:

            Put "" into myReturnValue
            Put myXFCN("param1") & myReturnValue into myReturnValue
            Put myReturnValue

   or
            Put myXFCN("param1")

   yields the correct result in the message box.

Since I am able to return value at all tells me I am doing something right?
Any one out there have any clues?                                                 
Thanks in advance,

Newsgroups: comp.sys.mac.programmer
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Subject: Re: Default buttons in dialogs
Organization: Curtin University of Technology
Date: Thu, 7 Jan 1993 15:03:54 GMT

880840m@axe.acadiau.ca (MICHAEL ALEXANDER MCKAY) writes:

>Whenever I make a dialog box with ResEdit, my "OK" buttons, which are always
>the number 1 button, fail to show up in my app with the heavy outline around 
>them. What am I doing wrong?

You're foolishly assuming that Apple figured this out for you.  Bad idea
:)

It works, sort of, for Alerts, although even then it won't be redrawn if
the alert is updated (eg, after a screen blanking).  I ignore that, that
one is Apple's problem.

As for Dialogs, the normal solution (well, ok, the one I use :-) is to
create a user item to draw the outline thusly:

  const
    ok_item=1;
  
  procedure OutlineDefault1 (dp: dialogPtr; item: integer);
    var
      kind: integer;
      h: handle;
      r: rect;
  begin
    GetDItem(dp, ok_item, kind, h, r);
    PenSize(3, 3);
    InsetRect(r, -4, -4);
    FrameRoundRect(r, 16, 16);
  end;
 
  procedure SetUpDefaultOutline (dp: dialogPtr; user_item: integer);
    var
      kind: integer;
      h: handle;
      r: rect;
  begin
    GetDItem(dp, user_item, kind, h, r);
    InsetRect(r, -10, -10);
    SetDItem(dp, user_item, kind, handle(@OutlineDefault1), r);
  end;

Call SetupDefaultOutline after creating the dialog and before
ShowWindowing it.

Under System 7 there is a call to do it for you, but I can't seem to
track it down.
   Peter.



-- 
_______________________________________________________________________
Peter N Lewis <peter@ncrpda.curtin.edu.au>           Ph: +61 9 368 2055
Newsgroups: comp.sys.mac.programmer
From: brod@jessica.Stanford.EDU (Brodie Lockard)
Subject: How to change portrait<-->landscape
Reply-To: brod@jessica.Stanford.EDU (Brodie Lockard)
Organization: Stanford University
Date: Fri, 8 Jan 93 00:10:56 GMT

Can someone provide an example of code that forces portrait or landscape
mode for printing?  I know this should usually be under user control, but
I'm trying to write an XCMD to make smart printing automatic in my stack.

I see GetRotn in IM V-415, but it only returns the current setting and
doesn't let you change it.  I take it I should get a print record via
PrintDefault, modify it, and send it back via PrGeneral, but I don't see
what part of the TPrint record to change.


Brodie Lockard      brod@jessica.stanford.edu
Newsgroups: comp.sys.mac.programmer
From: Ted Lowery <tbl@rock.concert.net>
Subject: TCL ScrollBar Q
Organization: Product Portfolio-Northern Telecom Inc.
X-Useragent: Nuntius v1.1
Date: Thu, 7 Jan 1993 15:15:48 GMT

Hi all,

Stupid TCL Question time agian.  Forgive me, but I just don't get it.

I have a panorama installed inside a scroll pane, and I change the bounds 
of the panorama with SetBounds().  But the scroll bar doesn;t update
itself.
I works properly, and as soon as I click any part of it, it updates.  I
have
tried sending itsScrollPane->Calibrate(),
itsScrollPane->AdjustScrollMax(),
and about a dozen other messages that probably shouldn't work, and of
course
dont.  If I send it Refresh(), it updates the scroll bar, but it erases
and
redraws the entire scroll bar, which is kinda unsightly.

I am sure there is a very simple solution.  Any help would be most 
appreciated.

Ted
tbl@rock.concert.net
From: rudolph@unixg.ubc.ca (Christopher E Rudolph)
Newsgroups: comp.sys.mac.programmer
Subject: Detecting mouse position in a window ?
Date: 12 Jan 93 03:41:20 GMT
Organization: The University of British Columbia
NNTP-Posting-Host: unixg.ubc.ca
Summary: Sory about this common FAQ but I can't seem to find it in CSMP
Keywords: faq mouse in window regions etc help

I know this is a FAQ, seems I have seen it somewhere, but I have been
browsing through every volume of CSMP (using Easy View nice program for
looking a volumes of stuff).  Okay back to the question.

I have this simple little hack that I am working on that has three
rectangles (or maybe I should make them regions? ...hmmm.) that correspond
to pseudo edit text fields ( I plan to copybits changed values into them
as the user types on the keyboard, like a calculator).  So I have a few
definitions of cursor types.  I want to automatically switch the cursor to
a certain type as it passes over any of these three fields, and change it
back if it passes over anything else.

I obviously need to be checking where the mouse is at any one time and act
appropriately.  Does anyone have an example of how to do this gracefully. 
I would appreciate it.

thanks, and sorry about it begin an FAQ

Chris Rudolph (ComputerScience, UBC) <rudolph@unixg.ubc.ca>
=---------------------------------------------------------=
From: chuckb@stein.u.washington.edu (Charles Bass)
Newsgroups: comp.sys.mac.programmer
Subject: Is there a grep for the mac?
Date: 5 Jan 1993 22:45:07 GMT
Organization: University of Washington
NNTP-Posting-Host: stein.u.washington.edu

I posted a while back and appreciate the response on how to get
started programming on the MAC.

My new question is : Is there some sort of a grep program that I
can run at any time not just from within think C? I think this
would be a valuable utility, sorta like find file from within
the finder.

Sorry if my unix/MSDOS past gives me away,

chuckb  
Newsgroups: comp.sys.mac.programmer
From: bs2724@eehp5 (Benjamin T Sander)
Subject: Appleshare Group Names
Summary: How do I get the appleshare group name?
Organization: University of Illinois at Urbana
Date: Tue, 5 Jan 1993 22:34:47 GMT
Keywords: appleshare


Hi all-

Is there any way that I can get the name of a user's group
if all that I know is his/her user name?

Thanks,

Ben Sander
bts39313@uxa.cso.uiuc.edu
From: Barry_Wolman@transarc.com
Newsgroups: comp.sys.mac.programmer
Subject: ASCII Text to/from Postscript Printers
Date: 9 Jan 93 04:10:04 GMT
Organization: Carnegie Mellon, Pittsburgh, PA

Do the low level printer driver routines described in Inside Mac Vol
II work with a Postscript printer connected via Appletalk?  I'd like
to send some Postscript commands to the printer as straight ASCII
text.

I'd appreciate any tips you can provide on writing ASCII text to and
reading ASCII text from Postscript printers.  Sample code is
particularly welcome.

Thanks,
Barry
From: bagwill@swe.ncsl.nist.gov (Bob Bagwill)
Newsgroups: comp.sys.mac.programmer
Subject: how do you do automated GUI testing?
Date: 4 Jan 93 15:51:25 GMT
X-Newsreader: TIN [version 1.1 PL6]

How does Apple (if they choose to respond) do automated testing
of the GUI aspect of their product?

How do "professional" Mac developers do automated testing of
their products?

I will summarize responses (if any).  If anyone is willing to
share information with me, but don't want it shared with the
net, put "PRIVATE" at the head of your response.

Warning: Don't send anything your lawyers don't want you to share.  And
remember that Internet email is not secure.

--
Bob Bagwill
bagwill@swe.ncsl.nist.gov
NIST/Computer Systems Lab/Distributed Systems Engineering Group
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How does my app know that its document was double clicked?
Date: 4 Jan 93 11:44:16 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <1992Dec31.205747.16147@netcom.com> bskendig@netcom.com (Brian Kendig) writes:

>Now I've got a question, too.  How do you cope with double-clicking
>files that belong to an _open_ application?  Does this require the use
>of AppleEvents?  Right now, when I dragdrop a file onto my app, it
>launches and opens the file, but when I dragdrop another file onto my
>app, the Finder says "Some files could not be opened.  Try opening
>them from within the application."

You read the Tech Notes, or Inside Mac VI (yes, it has much more than
System 7 in it)

MultiFinder will TRY and find a menu called "File" and an item
called "Open..."; choose that item, and short-circuit the
standard file dialog that the application will put up. However,
if the application does not put up a standard file dialog, or
has one of those brain-dead file filters that forces you to set
the type pf document you want to open (and doesn't default to
ALL OPENABLE FILES) it won't work.

You can override the menu and item names with mst# resources.

Cheers,

						/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

 -- I don't fear death, it's dying that scares me.
Newsgroups: comp.sys.mac.programmer
From: christopher m. knox <chris@benton.prepress.com>
Subject: Re: RESEDIT: putting a dlg item in front of another dlgitem?
Organization: Pre-Press Technologies, Inc.
X-Useragent: Nuntius v1.1b2
Date: Wed, 6 Jan 1993 16:51:37 GMT

Subject: RESEDIT: putting a dlg item in front of another dlgitem?
From: Soetjianto, soetji+@G.GP.CS.CMU.EDU

Hi,
the dialog manager draws controls before all other items, so that's that.
You could make the button another user item or, what I have done before,
you
can draw the button yourself with Draw1Control after the dialog manager
has updated the dialog... (actually: HideControl/update/ShowControl will
do).
Chris
chris knox, primary programmer, SpectreTouch? 
                                                    
"Omne animal triste est post (or without) coitum"  Umberto Eco
Newsgroups: comp.sys.mac.programmer
From: lsr@taligent.com (Larry Rosenstein)
Subject: Re: Stallman and friends
Followup-To: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.os.ms-windows.programmer.misc
Organization: Taligent, Inc.
Date: Wed, 6 Jan 1993 02:48:18 GMT

In article <1993Jan05.231932.21087@eng.umd.edu>, russotto@eng.umd.edu
(Matthew T. Russotto) wrote:
> 
> They state them quite openly:  they want software to be free, or at
> least they don't want people to have to pay for it with money.  They
> DON'T believe it should be free of attached strings, which say that

That's not my understanding.  

They do provide their software free of charge, but they also send out tapes
and CD-ROM for which they do charge.  (In fact, there's a debate in
gnu.misc.discuss because they charge companies more for the CD-ROM than
individuals.)  Their license agreement says something about charging for
distribution costs, but there's no fixed limit on those costs.  If someone
charges "too much", however, someone else can always undercut the price.

You can sell a piece of Copylefted software if you wish, but anyone can buy
from you and turn around and give it away to anyone else.

The "Free" in Free Software Foundation does stand for free of attached
strings.  But the FSF is the one that decides what's a "string".  To them a
string is something that prevents you from obtaining the source code and
modifying it as you see fit.  To others, their license agreement is a
serious string.

> anyone who uses their software must treat the product of their work in
> accordance with Stallman's wishes.

That's not quite true.  You *must* treat their work according the their
license agreement, which is somewhat more lenient than what I think
Stallman's wishes would be.  This is no different than any other software
publisher.

Larry Rosenstein
Taligent, Inc.

lsr@taligent.com
Newsgroups: comp.sys.mac.programmer
From: skwong@cuse1.se.cuhk.hk (Wong Sai Kee (Graduate Assistant))
Subject: Re: MacMINIX
Organization: Faculty of Engineering, The Chinese U. of Hong Kong
Date: Sun, 3 Jan 1993 10:36:44 GMT

brad@tazboy.jpl.nasa.gov (Brad Pickering) writes:

>In article <C04tHD.13I@iapa.uucp%mailhost.ecn.uoknor.edu> ctrbdo@iapa.uucp%mailhost.ecn.uoknor.edu (bryan d oakley) writes:

>   Newsgroups: comp.sys.mac.programmer
>   Path: elroy.jpl.nasa.gov!usc!cs.utexas.edu!convex!constellation!iapa!ctrbdo
>   From: ctrbdo@iapa.uucp%mailhost.ecn.uoknor.edu (bryan d oakley)
>   Organization: FAA / Mike Monroney Aeronautical Center
>   Date: Thu, 31 Dec 1992 16:22:24 GMT
>   Lines: 7

>   I've seen several references of late to MacMINIX.  Anyone care to
>   describe the product? 

>MacMINIX is the Mac version of MINIX. MINIX is a unix like operating
>system that comes with source code so you can see how things are done
>and change them if you like.  It is often used in operating systems
>classes to give a hands on feel for OS programming.  MINIX is
>discussed in comp.os.minix.  Read this group for more details.

I had a MacMINIX 1.5 running System 6.0.7 one year ago.  After I
upgraded to System 7.0.1, it seemed not work, and I stopped playing
around minix.  Is MacMINIX 1.5 runnable in System 7.1 or can I have free
upgrade of MacMINIX for System 7.1 ?

Mr.Sai-Kee WONG

>Brad Pickering
Newsgroups: comp.sys.mac.programmer
From: ollef@sics.se (Olle Furberg)
Subject: Re: Think Ref 2.0
Organization: Satellite Image in Kiruna Corporation
Date: Sat, 9 Jan 1993 22:59:29 GMT

In <PHILS.93Jan8135651@chaos.cs.brandeis.edu> phils@chaos.cs.brandeis.edu (Phil Shapiro) writes:

>Yes. While THINK Ref 2.0 doesn't support arbitrary text selections, it

  Any particular reason for not supporting arbitary selections, like copyright
or something? I would like to make non-contiguous selections of the
example code (some declarations at the top, and the most critical part in
the middle).

  Anyhow, it will be great to have IM VI on-line in ThinkRef, and a big relief
to get the sample code without having to print it and type it in by hand.

  Has it been relased yet? Anyone using it?


    /Olle
Newsgroups: comp.sys.mac.programmer
From: pcastine@tubkom.prz.tu-berlin.de (Peter Castine)
Subject: Re: Locating someone on AppleLink (from the Internet)
Organization: TU-Berlin TUBKOM, Germany
Date: Wed, 6 Jan 1993 13:27:38 GMT

In article <noah-050193102428@noah.apple.com> noah@apple.com (Noah Price) writes:
>In article <1993Jan4.205307.667@cs.uoregon.edu>,
>mkelly@mystix.cs.uoregon.edu (Michael A. Kelly) wrote:
>> In article <1993Jan4.155352.28308@zip.eecs.umich.edu> positron@quip.eecs.umich.edu (Jonathan Haas) writes:
>> >Is there a way to find out someone's AppleLink address?
>> 
>> Anyways, I would like the answer to this also.  I suspect it isn't possible.
>
>You're correct.  You can only search for people's AppleLink addresses from
>within AppleLink.
>
>noah
>

I used to search for AppleLink ID's from a LAN using QuickMail. I'm not
sure if this was some special service provided by the QuickMail<->AppleLInk
gateway, or if the mail was simply sent on to AppleLink. On the assumption
that the latter is the case, let me pass on the following tidbit: Subject
line 'UserID Search*' (with the asterisk, without the qoutes), content
of the message was the search string.

If this works from Internet, you should get a reply shortly afterwards with
a list of all matching names and the ALink addresses.

Oh, I almost forgot who to address the mail to. Unfortunately, I don't have
access to aforementioned LAN right now, so I can't check that out.

Noah, maybe you could check this out?



subject line must be 'UserID Search*'
-- 
Peter Castine.                       "Errors and anachronisms ought to be
Technische Universitaet Berlin        few. If they do occur, I take full
pcastine@tubkom.prz.tu-berlin.de      responsibility like Richard Nixon."
					                    -- Gore Vidal
From: blob@gallant.apple.com (Brian Bechtel)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Inside Mac volume 6
Date: 5 Jan 93 19:57:19 GMT
Organization: Apple Computer Inc.

ppc1@cec2.wustl.edu (Peter Pui Tak Chiu) writes:

>i tried to find inside mac volume 6 in our campus bookstore but they don't
>have it... does it exist?

APDA can send it to you, if you can't get it from any local bookstore.
It's an Addison-Wesley publication, so any bookstore can order it for
you.

--Brian Bechtel     blob@apple.com     "My opinion, not Apple's"
Newsgroups: comp.sys.mac.programmer
From: urban@yoda.fsl.noaa.gov (Art Urban)
Subject: QuickDraw: Why Can't it Mirror Right?
Organization: Forecast Systems Lab, NOAA, Boulder CO, USA
Date: Tue, 5 Jan 1993 19:19:18 GMT

There is something wrong with either QuickDraw or me... :-)

If I draw a line from 0,0 down and to the left, why won't QuickDraw mirror
the line when I draw it down and to the *right*?

I've examined the resulting bitmaps by taking screenshots and looking at
them in Canvas. The choices that QuickDraw makes for pixel placement are
different, yet the lines begin and end in mirrored coordinates. No matter
what I do, I cannot coerce QuickDraw to create a mirrored (pixel for pixel)
line angle. I need this for a bisymetrical region I'm making, so I can't 
just flip around some CopyBits operation (I presume).

I realize that mathematically my region will be defined correctly, but I
want it to be drawn with some semblance of accuracy on the screen when I
call FrameRgn(). If QuickDraw can do it correctly to the left, why can't it
do it correctly to the right? (or vise-versa :-) )

-- 
Art Urban 					        urban@yoda.fsl.noaa.gov
===============================================================================
 "Look, he's being attacked by creamy nugget centers."		 	 -Joel
===============================================================================
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
From: whedon@netcom.com (Bill Whedon)
Subject: Re: Stallman and friends
Organization: Netcom Online Communications Services (408-241-9760 login: guest)
Date: Wed, 6 Jan 1993 07:20:28 GMT

In article <D2150035.mtvsj2@outpost.SF-Bay.org> peirce@outpost.SF-Bay.org (Michael Peirce) writes:
>I just wanted to thank the large number of folks who sent me email
>on this subject.  It's nice to know there are lots of us who think
>Stallman is a kook.

I'm not sure that "kook" is the correct term.  Perhaps "misdirected would-be
saviour" is more correct.  Of course, I find the idea of software "patents"
utterly abhorrent.  In either (FSF or Patent) situation, the only people who
will win will, of course, be the lawyers.  It's gotten so bad of late, I just
heard of a law firm splitting a $1.2 million award 66.6/33.4 with a litigant,
wherein the lawyers got the 66.6 piece of the action.  

Stallman, if you're listening, how about directing some of that boundless
energy of yours toward that sort of problem.  What I'd like to see would be a
system in which lawyers got paid just like any other sort of "agent", at a
fixed rate of 10 or 15 percent of the pre-tax gross.  Want a _real_ windmill,
Richard?  Use that idea to unclog the courts first, then go after the SW
patent thing, huh?
Cheers,
Bill Whedon   whedon@netcom.com   (just a humble programmer who sells)
... hmmmm... just re-read... drop the decimal, you get 666... hmmmmm... ;-)

-- 
C, ICON dBase Ada!  Paradox?  (B Jovial, Pascal!)




Xref: sparky comp.sys.mac.programmer:21225 comp.sys.mac.games:14129
From: ozma@kuhub.cc.ukans.edu
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.games
Subject: Re: Code for drawing a sprite desired.
Date: 11 Jan 93 17:00:11 CST
Organization: University of Kansas Academic Computing Services

In article <1993Jan10.222055.342@midway.uchicago.edu>, grass@cs.uchicago.edu (Joshua Grass) writes:

>> THere is alot of interest in writing games for the mac (myself included.)
>>If there's a kindly sagelike programmer out there with a little time on
>>his/her hands, could someone share a technique for copying a sprite from an
>>offscreen grafPort?

There are TechNotes and Apple sample code (and code Snippets as well) that
illustrate this.  Furthermore, all my source code for my shareware games has
been available for years now.  In fact, it should be on AOL and any other
net-site that wants it.  Back issues of MacTutor (now MacTech) have examples
with code as well.

> Actually, sprite is not the correct term, (What is that from, TI 99's?) what
> the new equivalent of what you are doing is called is an icon.  This is pro-

The Vic-20?  Anyway, Icon is a little restrictive a term - perhaps just
pix-image or bit map.  Or I suppose we could argue about it a while longer. : )
Really though, maybe it's just me, but I cringe at the word sprite ( pet peeve
of mine I suppose).  I also don't like the way "use" is spelled (or perhaps
pronounced).

john calhoun-

Newsgroups: comp.sys.mac.programmer
From: peter@cujo.curtin.edu.au (Peter N Lewis)
Subject: Re: Q: Source for BinHex?
Followup-To: comp.sys.mac.programmer
Organization: NCRPDA, Curtin University
Date: Tue, 12 Jan 1993 04:05:18 GMT

In article <D2150096.ndoljc@sproul.sproul.com>, Sproul@sproul.sproul.com
(Mark Sproul) wrote:
> 
> Does anyone know were I can get source to BinHex, preferably in C.
> If not the source, how about the formating so I can write it.
> I want to include it in a comm package I am writting.

There is my pascal source for DeHQX (note to DeHQX users, get StuffIt
Expander!), its on sumex-aim.stanford.edu:/info-mac/source/pascal,
but figuring out the dehqxing bits is a bit of a mess.

What might be more useful is the dehqx and enhqx filters for FilterTop
(dreaded project of TopSoft, due to be released sometime next millenia),
you can get the pascal source for the filters from syrinx.kgs.ukans.edu in
/topsoft/filtertop/Filter.stuff/filter-source-10d8.hqx (I hope that has the
binhex filters in it, if not let me know).

Also, there is BinHex code in Eudora, the C source to which is available
FTP.CSO.UIUC.EDU:/pub/eudora.

And I think there is source for BinHex somewhere, it used to be on
info-mac/source/pascal I think, but I doubt its still there.

Have fun,
   Peter.

_______________________________________________________________________
Peter N Lewis <peter@cujo.curtin.edu.au>             Ph: +61 9 368 2055
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: HOpenResFile and HOpenRF supported by glue in System 6?
Organization: University of Delaware
Date: Sat, 9 Jan 1993 20:50:26 GMT

Well, the title basically says it all: are all of the various H... calls
supported by glue when my application is running in System 6.x?  IM VI
documents these calls (pg. 23-36) but doesn't make it clear when these calls
began to be supported. (HOpenRF didn't exist in IM IV, where it was a
low-level call.)  I want to support both System 6 and 7, which means I can't
use the FS... calls, but I also don't want to use the old calls which don't
support a dirID.

I'm using THINK Pascal 4.0.  

Thank you!

--Kurisuto