HDTenEightyP/NetNews huggingface dataset:
From: merv@ellis.uchicago.edu (garrett marvin derner)
Subject: Re: WaitNextEvent availability
Reply-To: merv@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Thu, 12 Nov 1992 18:08:37 GMT

In 'Macintosh Programming Secrets' by Knaster & Rollin, it's solved
this way:

#define WNE_TRAP_NUM      0x60
#define UNIMPL_TRAP_NUM   0x9F
. . .
Boolean	gWNEImplemented;
. . .
    gWNEImplemented = (NGetTrapAddress(WNE_TRAP_NUM, ToolTrap) !=
                       NGetTrapAddress(UNIMPL_TRAP_NUM, ToolTrap));
. . .
    if( gWNEImplemented)
        WaitNextEvent(everyEvent, &theEvent, MIN_SLEEP, NIL_MOUSE_REGION);
    else  {
        SystemTask();
        GetNextEvent( everyEvent, &theEvent);
    }

----------------
(signed) Garrett
&Garrett == merv@ellis.uchicago.edu
Newsgroups: comp.sys.mac.programmer
From: davep@county.lmt.mn.org (Dave Polaschek)
Subject: New DeadKeys in 7.1
Followup-To: comp.sys.mac.programmer
Reply-To: davep@county.lmt.mn.org (Dave Polaschek)
Organization: LaserMaster Corp
Date: Wed, 4 Nov 92 23:46:22 GMT


Got a question about some different behavior I'm seeing with system 7.1.  The 
formerly handy keys <command><left-arrow> and <command><right-arrow> behave 
very differently.  These guys are what I continually used to zip to beginning 
and end of line while in the MPW editor, but now they don't even seem to 
generate events when they're pressed (or rather, something in the system is 
gobbling up those events).  I've managed to set up some QuicKeys that have 
those key combinations in them, and QuicKeys can send the events just fine, 
but Now I'm stuck learning a new more complex (isn't it always?) key 
combination for zipping to the beginning and end of lines.  Anyone know what 
it is that's swallowing these keystrokes and if there's a way to disable it?

Thanks in advance.

Dave Polaschek           	Internet:davep@county.lmt.mn.org
LaserMaster Corp. R&D  	      					ICBMNet:44^59'N 93^13'W
7156 Shady Oak Rd.  					      									AppleLink:LaserMax
Eden Prairie, MN 55344  			 			      	  	ATTNet:6129439204
-- Cuius testiculos habes, habeas cardia et cerebellum. --
From: cent@u.washington.edu
Newsgroups: comp.sys.mac.programmer
Subject: Spinning Beach Ball/ Watch
Date: 10 Nov 92 20:33:25 GMT
Article-I.D.: u.1992Nov10.203325.13546
Organization: Univ. of Wash.


 I would like to incorporate either the spinning beach ball or spinning watch
cursor into my application.  

I have found info about CURS and acur resources, but nothing about how to
invoke the animated cursor when I want.  Could someone please tell me where to
find the info I need.  Or, if it brief and you are willing a short
paragraph/code sample would be perfect.  

Thanks!!!!

Bob Cent
University of Washington
From: seanmcd@ac.dal.ca
Newsgroups: comp.sys.mac.programmer
Subject: What is the lowest system version that uses GWorlds?
Date: 9 Nov 92 00:30:55 -0400
Organization: Dalhousie University, Halifax, Nova Scotia, Canada

Here's an easy question: what's the minimum system version that uses
GWorlds? So far I've been living in a 1-bit world, but I plan to get
some sort of colour-capable mac soon, so I've got to learn this stuff!

Thanks for your help,

Sean
From: yjc@po.cwru.edu (Jerome Chan)
Newsgroups: comp.sys.mac.programmer
Subject: Re: looking for telecomm app source
Followup-To: comp.sys.mac.programmer
Date: 13 Nov 1992 00:46:50 GMT
Organization: The Tofu Society of Singapore
Distribution: world
NNTP-Posting-Host: b61539.student.cwru.edu

In article <1992Nov12.225746.1798@netcom.com>, knee@netcom.com (Mark
Lanett) wrote:
> I suggest you use the Communications Toolbox. Your program would be a lot
> more flexible if it did so. Alas, the CTb is almost totally ignored by Apple,
> and you'd need to buy the "Inside CTb" book. Also, the upcoming Enterprise
> toolbox supercedes the CTb (althoug it will be backwards-compatible).

What is this Enterprise ToolBox?

---
The Evil Tofu
From: levin@bbn.com (Joel B Levin)
Newsgroups: comp.sys.mac.programmer
Subject: Re: DogCow.. Moof..?
Date: 6 Nov 92 21:03:58 GMT
NNTP-Posting-Host: bbn.com

wight_brian@tallus.enet.dec.com writes:

|Hi Folks;

Hi.

|	In one of the newsgroups I ran across the words DogCow and Moof?  I may
|be in the dark on this one, but what is the origin of DogCow and Moof?  

Well, I'll say this much -- Moof is the usual utterance of the DogCow.
Newsgroups: comp.sys.mac.programmer
From: brown@garfield.cs.mun.ca (Ed Brown)
Subject: Help with port selection
Summary: I want to select the printer from inside an application
Keywords: printer, port
Organization: CS Dept., Memorial University of Newfoundland
Date: Tue, 10 Nov 1992 12:50:34 GMT

I'm not a Mac expert, so bear with me.. In a FoxBase application, I want to
be able to select an output device, with the same effect as using the chooser
from the desktop.

It seems likely that I should be able to write an XCMD to do what
the chooser does. Are there syscalls I can use for this purpose?
In what part of Inside Mac are they hidden?

Alternatively, is there another (better) way to poduce the same effect?
I have written XCMDs but I don't want to get into device drivers or DAs
very badly.

Email please. I don't subscribe to mac.programmer.

Ed Brown
brown@cs.mun.ca
Newsgroups: comp.sys.mac.programmer
From: famus1@DMI.USherb.CA (Projet1 Famus)
Subject: StyleWriter problem
Organization: Universite de Sherbrooke -- Dept. d'Informatique
Date: Fri, 13 Nov 1992 14:55:54 GMT

,
        I've got a small problem with my stylewriter.  I have program an
application htat print physician prescription.  The problem is that it took
25 to 40 seconds to print hte last line and after eject the paper.
I have define a Rect that I filled whith my print out and I make a refrech
of that Rect to the printer.
        It work good execpt the 25 to 40 second at the end

        - Iuse Thick C 5.0
        - What happen is this due to the refresh that generate some
          function that I dont know about it?
        - How could I solve my problem?
        - I need some other tricks to make the stylewriter print a little
          bit faster for other reports.

                        Thanks in advance,

                                        Sylvain Champagne
                                        C.H.U.S project FAMUS
                                        Sherbooke, Quebec, Canada
                                        E-mail: famus1@dmi.usherb.ca

Newsgroups: comp.sys.mac.programmer
From: tim@maths.tcd.ie (Timothy Murphy)
Subject: Re: How to use large arrays in Think C?
Organization: Dept. of Maths, Trinity College, Dublin, Ireland.
Distribution: comp
Date: Tue, 10 Nov 1992 18:21:29 GMT

cstrockb@cs.sunysb.edu (Caleb Strockbine) writes:

>For clarity and consistancy with the rest of the class, it would be great
>if I could use regular array notation for this picture. For instance, if
>I want to just run through every pixel in the image, I'd like to say:

>short i, j;

>for (i=0;i<256;i++)
>  for (j=0;j<256;j++)
>    ProcessPixel(image[i][j]);

The answers to this query seemed over-complicated to me.
Would it not be easier just to say

char *image[256];
...
for (i = 0; i < 256; i++)
  image[i] = malloc(256);

-- 
Timothy Murphy  
e-mail: tim@maths.tcd.ie
tel: +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
Newsgroups: comp.sys.mac.programmer
From: petrus@stacken.kth.se (Lars Petrus)
Subject: How do you make a master disk?
Organization: Stacken Computer Club, Stockholm, Sweden
Date: Wed, 11 Nov 1992 16:10:05 GMT

   Some software products are sold on disks that can not be copied - or so
I'm told. This means that you can have an installer program on that disk,
and only allow a limited number of installations from that disk.

   But I can not see any way that this can be accomplished. If you copy a disk
you copy every byte of is, and thats that.

   Any ideas?


  -  -  -  -
"Sometimes it is said that man cannot be trusted with the government of
 himself.  Can he, then, be trusted with the government of others?"
                                --- Thomas Jefferson

Lars Petrus, Solna, Sweden  -  petrus@stacken.kth.se

Newsgroups: comp.sys.mac.programmer
From: aep@world.std.com (Andrew E Page)
Subject: Re: C and Assembly Help Needed
Organization: The World Public Access UNIX, Brookline, MA
Date: Mon, 9 Nov 1992 14:53:31 GMT


   Add 'CASE ON' to your assembly directives.  You need
this in order for C callable stuff to be visible to the
linker. 

-- 
Andrew E. Page   (Warrior Poet) |   Decision and Effort The Archer and Arrow
Mac Consultant                  |     The difference between what we are
Macintosh and DSP Technology    |           and what we want to be.
From: werner@soe.berkeley.edu (John Werner)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Toolbox for elegant, multi-bitdepth Update handling?
Followup-To: comp.sys.mac.programmer
Date: 13 Nov 1992 01:05:01 GMT
Organization: UC Berkeley School of Education
Distribution: world
NNTP-Posting-Host: 128.32.157.31

In article <1992Nov13.003200.8020@leland.Stanford.EDU>,
felciano@summit.stanford.edu (Ramon M. Felciano) wrote:
> screen, so I'd like it to be a shade of gray (pattern). How do I handle
> this for windows that span several screens? It seems like I'll have to
> loop through each device, and if any part of the window overlaps there,
> I'll need to draw _that rectangle_ in that screen at the correct bit
> depth. Ugh!

This is what you need to do, but it's really not that hard.  There's a
toolbox routine called DeviceLoop that does most of the work for you.  You
pass it a pointer to a function that it calls for each device that overlaps
your window area.  The function can easily figure out the device bit depth
and color/bw setting.

Take a look at the "MyDeviceLoop" snippet from DTS (in the
"Graphics&Printing:QuickDraw" folder).  If you're using MacApp I have a
not-quite-finished TDeviceLoopView class you can use.

--
John Werner                         werner@soe.berkeley.edu
UC Berkeley School of Education     510-642-9651
From: evans@Apple.COM (John Evans)
Newsgroups: comp.sys.mac.programmer
Subject: Re: need Get folder dialog sample code
Date: 13 Nov 92 22:33:58 GMT
Organization: Apple Computer Inc., Cupertino, CA

MacDTS has written a fair amount of sample code, one piece of which deals
with almost exactly this problem.  It's sample code #18, and contains
several modifications to standard file, including selecting a directory.

The sample code is on the ETO CD from Apple, and should also be in places
like Sumex for you to download.
-- 
+========================+===============================================+
| John S. Evans          | These opinions are mine. Apple's opinions are |
| Collaborative Systems  | Apple's.  Any similarity is coincidental.     |
| Apple Computer, Inc    | "They've given you a number, and taken away   |
| evans@apple.com        |  your name."                  -Johnny Rivers  | 
+========================+===============================================+
Newsgroups: comp.sys.mac.programmer
From: aep@world.std.com (Andrew E Page)
Subject: Re: NSetTrapAddress question
Organization: The World Public Access UNIX, Brookline, MA
Date: Mon, 9 Nov 1992 15:01:39 GMT


  Cast the address of your patch function as a 'long'.  

NSetTrapAddress((long)newTrap, 0xA9BC, Tooltrap);

-- 
Andrew E. Page   (Warrior Poet) |   Decision and Effort The Archer and Arrow
Mac Consultant                  |     The difference between what we are
Macintosh and DSP Technology    |           and what we want to be.
From: James_Zuchelli@qm.claris.com (James Zuchelli)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How do you make a master disk?
Date: 13 Nov 92 02:07:31 GMT
Organization: Claris Corp

In article <1992Nov11.161005.23758@kth.se>, petrus@stacken.kth.se (Lars Petrus) writes:
> 
> 
>    Some software products are sold on disks that can not be copied - or so
> I'm told. This means that you can have an installer program on that disk,
> and only allow a limited number of installations from that disk.
> 
>    But I can not see any way that this can be accomplished. If you copy a disk
> you copy every byte of is, and thats that.
> 
>    Any ideas?
> 
> 
>   -  -  -  -
> "Sometimes it is said that man cannot be trusted with the government of
>  himself.  Can he, then, be trusted with the government of others?"
>                                 --- Thomas Jefferson
> 
> Lars Petrus, Solna, Sweden  -  petrus@stacken.kth.se
> 
> 
I have heard that one way to do it is to write part of your code to a portion
of the master disk that is not normally used by the operating system you are
running on.

Some disks for the Apple II series used a system that wrote the tracks in
a spiral pattern, completely different form the standard Apple II DOS.

However, be sure you want to do this, when I owned an Apple II I wouldn't buy
anysoftware that I couldn't make backup copies of.  If The master disk
gets trashed and I need to get to a file, what am I supposed to do?  

James Zuchelli
---------------
This is my opinion and not that of Claris Corp. or my Employer.
Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: C.S.M.P. Digest V1 #210 Available
Followup-To: poster
Organization: University of Oregon Computer and Information Sciences Dept.
Date: Mon, 9 Nov 1992 00:42:46 GMT


C.S.M.P. Digest             Sun, 08 Nov 92       Volume 1 : Issue 210

Today's Topics:

	Sound Manager



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                                               Senior Partner
mkelly@cs.uoregon.edu                                      High Risk Ventures
_____________________________________________________________________________
From: veloso@husc9.harvard.edu (Manuel Veloso)
Newsgroups: comp.sys.mac.programmer
Subject: High Level Events or AEIMP
Date: 9 Nov 92 15:24:12 GMT
Organization: Harvard University
X-UserAgent: Nuntius v1.1.1d11
X-XXMessage-ID: <A723ED9E83021817@humcr3.harvard.edu>
X-XXDate: Mon, 9 Nov 92 15:27:42 GMT

Hi there,

I've got a project whose spec just moved from using the PPC Toolbox
as the communications protocol to AppleEvents. Unfortunately, I discovered
that there seem to be 2 kinds of apple events...high level, & AEIMP's.
Besides the complexity of the latter, does anyone have an idea of the
tradeoffs between the two?

Manuel
Newsgroups: comp.sys.mac.programmer
From: felciano@summit.stanford.edu (Ramon M. Felciano)
Subject: Toolbox for elegant, multi-bitdepth Update handling?
X-Posted-From: InterNews1.0a5@leland.stanford.edu
Organization: Stanford University Medical Media and Information 
 Technologies
Date: Fri, 13 Nov 92 00:32:00 GMT
Xdisclaimer: No attempt was made to authenticate the sender's name.

Hi --

Has anyone come up with a good scheme for handling elegant window
updating, especially across different screens?

For example, I've started to include B/W and Color versions for all of
the PICTs in my dialogs; when creating a dialog, I check the depth of
the monitor and set the appropriate pictures for that dialog.

Things are getting a bit harrier with windows, tho. In particular, if I
have a colored background on a window, it doesn't look too hot on a B/W
screen, so I'd like it to be a shade of gray (pattern). How do I handle
this for windows that span several screens? It seems like I'll have to
loop through each device, and if any part of the window overlaps there,
I'll need to draw _that rectangle_ in that screen at the correct bit
depth. Ugh!

Isn't there a cleaner way to do this? What I'd like is for my window to
get a series of Update calls along with a bit-depth setting. In
addition, the caller would set the clipRect for me, so that I can
freely redraw the entire window rather than having to calculate which
window elements should actually be drawn. Anyone have any ideas?

Thanks!

Ramon

+----------------------------------------------------------------+
| Ramon M. Felciano                felciano@summit.stanford.edu  |
| Associate Director, SUMMIT       (415) 723-9688                |
| Stanford University Medical Media and Information Technologies |
+----------------------------------------------------------------+
From: udmorrow@mcs.drexel.edu (Daniel Morrow)
Newsgroups: comp.sys.mac.programmer
Subject: Re: problem with arithmetic and longints in THINK Pascal
Date: 6 Nov 92 15:34:34 GMT
Distribution: usa
Organization: Drexel University

In article <1992Nov6.173213.12016@waikato.ac.nz> ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University) writes:
>Yuk! Don't use a cast! (Ignorant C programmers...) Use the Ord4 function--
>that's what it's for:
>
>    x[i] := 10000 + Ord4(i - 1) * 10000
>

Thanks, everyone, for your advice. But I still have just one question.

If Pascal is such a strongly typed language, why _doesn't_ it evaluate
the right-hand-side of the expression as a longint?

-Dan.
From: bowman@reed.edu (BoBoRaMaVitch <bowman@reed.edu>)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Complex window and popup v
Date: 10 Nov 92 00:31:27 GMT
Distribution: comp.sys.mac.programmer
Organization: Reed College, Portland, OR

In article <ALESKINE.92Nov9221258@cardhu.cs.hut.fi> aleskine@cs.hut.fi (Arto Leskinen) writes:
>I have window with two popups, some static text and some buttons. Is this
>best done by program, or should I use window/dialog resourse for this.
>Of course I want that my window works on background. (Modeless?)

Far better, IMO, to not use the dialog manager for this sort of thing.  I
suspect most people would agree with me on this point.

>What is easiest way to make up popup with down arrow on it? I do not want
>to use menu resourse, because I do not know on startup time how many and 
>which items I have in menu. If someone has example code on think C I would 
>appreciate.

Well...7 has a CDEF popup menu.  If you're not using 7, try sumex or somesuch
for popup CDEF from the past.

>Can a program use code resources of different files? How?

Yes, but it's probably not worth the effort.  Why do you want to do this?
If you absolutely must do it, the easiest thing is to manually load the
resource, lock it down, and jump into it.

>My window has similar look than finder's. So I do not want scrollbars all the
>way. And I do not want line that goes up. Is there any way to stop drowing on
>update?

It looks like the line is being drawn by the scroll bar.  Make the scroll bar
shorter.  If you don't know who's drawing the line, drop into MacsBug, type
"SS 0 0", and then watch.  Everything will be slowed down immensely, and you
should be able to figure out when the offending line is being drawn.  Drawing
and then erasing is rarely the preferred course of action.

lood guck,
bo-bob
bowman@reed.edu
From: billh@hplsla.hp.com (Bill Harris)
Date: Tue, 3 Nov 1992 18:09:06 GMT
Subject: Registering owner names?
Organization: HP Lake Stevens, WA
Newsgroups: comp.sys.mac.programmer

A question from my son:

Is registering an "owner name" for an application free?  As I understand it,
Apple assigns these to applications so that the system can recognize files
belonging to the application and start the application when someone double
clicks on the file.

How does one go about registering such an owner name?

Please reply by e-mail, as I don't read this group often.

Thanks,

Bill Harris
billh@lsid.hp.com      

Hewlett-Packard Co. 
Lake Stevens Instrument Division ms/330
8600 Soper Hill Road
Everett, WA 98205-1298
Newsgroups: comp.sys.mac.programmer
Subject: In-Built Video Memory??
From: george@ccu1.aukuni.ac.nz (George Ma)
Date: Tue, 10 Nov 1992 04:18:42 GMT
Organization: University of Auckland, New Zealand.
Keywords: Vide, Memory
Summary: How do I change how much RAM is used for internal video (IIsi etc)

Hi there!!

Does anybody know how, where and when the control panel "Monitors" sets
how much RAM to set aside for in-built video use (IIsi, IIci etc).

I first thought it might be stored in the relevant "scrn" resource, but I
can't find where. As far as I can tell, it's done with a _Control call to
the driver.

Also, what software actually sets this memory aside (the System I asume)?

Thanks in advance...

Please reply to  david@cs.aukuni.ac.nz

Mad Dog
Computer Science Dept
Auckland University
New Zealand

Newsgroups: comp.sys.mac.programmer