HDTenEightyP/NetNews huggingface dataset:
From: wong_a@summer.chem.su.oz.au
Subject: Popup menus - menuitems at runtime
Organization: School of Chemistry, University of Sydney
Date: Fri, 17 Apr 1992 02:02:58 GMT


I want to use the new control for popup menus (IM VI 3-16) but I want to 
set up the menu-items at run-time. Easy enough, once you can extract the
MenuHandle from the control's contrlData field then you can do,

	for (i=0;i<menuItemsCount;++i)
		AppendMenu(popupMenu,ArrayStrPtr[i]);
	ShowControl(popupCntl);

Unfortunately, the control is NOT updated until you've called TrackControl,
which leaves the control Rect blank until the user clicks on it. Has
anyone figured out a workaround for this problem, or I am just completely
wrong about this.

 
-----------------------------------------------------------------------------
Adrian Wong, Dept.of Theoretical Chemistry     wong_a@summer.chem.su.oz.au
University of Sydney NSW 2006 Australia        061-2-692 4137
From: ksand@apple.com (Kent Sandvik)
Newsgroups: comp.sys.mac.programmer
Subject: Re: PPC Programming
Date: 9 Apr 92 01:48:25 GMT
Organization: MacDTS Mongols

In article <1992Mar28.205035.20240@cs.mcgill.ca>, camrose@cs.mcgill.ca writes:
> 
> 
> 
> Does anyone out there have any experience with the PPC Toolbox? I am
> currently in the midst of writing an application that needs to utilize
> this Mac feature.  It seems as though this is pretty virgin ground
> judging by the amount of literature on it -- or am I missing something?
> (Very, very possible!!!!)  If anyone can answer some questions for me or
> direct me in the direction of some literature, I would be more than
> grateful.

IM VI should cover a lot of ground - also check out Kibitz, a DTS
sample that has a lot of PPC code which could be re-cycled.

Cheers,
Kent Sandvik, Dynamic Language Propagandist
Newsgroups: comp.sys.mac.programmer
From: Chris Haynes <chaynes@sunfish.cs.indiana.edu>
Subject: Quickdraw to ASCII printer
Reply-To: chaynes@cs.indiana.edu
Organization: Computer Science, Indiana University
Date: Wed, 15 Apr 1992 13:22:30 -0500

I need to send ASCII characters straight out the printer port of a Classic
(from a MacScheme program, but that shouldn't matter). I'm told the best
way to do this is via Quickdraw calls using an appropriate driver (that
does *not* do bit map conversion).  Does anyone know how I can get such a
driver?

Thanks in advance for any tips.

Chris Haynes
chaynes@cs.indiana.edu
Newsgroups: comp.sys.mac.programmer
From: quinn@cs.uwa.edu.au (Quinn "The Eskimo!")
Subject: Re: Patching traps at INIT time under sys. 7
Organization: The University of Western Australia
Date: Mon, 13 Apr 1992 04:06:34 GMT

In article <22832@goofy.Apple.COM>, nerm@apple.com (Dean Yu) writes:
> 
> In article <1992Apr4.223527.3101@aplcen.apl.jhu.edu>, haceaton@aplcomm.jhuapl.edu (haceaton@aplcomm.jhuapl.edu) writes:
> > 
> > I am trying to patch the trap _initwindows in an INIT.  It seems to work
> > fine under system 6.0.x, but I have determined that when the finder loads
> > under system 7 it seems to do a wholesale replacement of many trap addresses
> > without linking to the existing patch code (i.e. those put in before the
> > finder loaded)!  I haven't found anything in I.M VI that warns me about this
> > either.  It seems like I must be missing something very fundamental here
> > since all the other INITs that I have seem to be able to use _settrapaddress
> > to successfully patch traps made after the finder loads.
> 
>   You're not doing anything wrong.  The Process Manager completely replaces
> _InitWindows with its own version when it starts up.  And you're right.  It
> doesn't call through to the old one.

Yeah, it does the same with the _Launch trap.  My hackaround was to patch
_SetTrapAddress and watch while it patches _Launch and then repatch _Launch.
Very very very very very evil and yukky and horrible and full of compatibility
probelms (but it worked and it wasn't in a shipping product).

Quinn "The Eskimo!"   <quinn@cs.uwa.edu.au>  "Real Coke, Diet .sig"
Department of Computer Science, The University of Western Australia
From: burglin@amber.mgh.harvard.edu (Thomas Burglin)
Newsgroups: comp.sys.mac.programmer
Subject: Re: ATTN: Addison Weseley (sp): Book idea
Date: 6 Apr 92 06:25:00 GMT
Organization: Molecular Biology, Massachusetts General Hospital, Boston
News-Software: VAX/VMS VNEWS 1.41

In article <1992Apr3.093049.17563@lin.foa.se>, eriks@lin.foa.se (Erik Svensson) writes...
>e-sink@uiuc.edu (Eric W. Sink) writes:
> 
>>I want a SMALL, INEXPENSIVE, INCOMPLETE reference to the Mac
>>Toolbox.  I'm thinking, like the size of a Star Trek novel,
>>selling for 5.95 or something like that.  Pack all the info you
>>can into this thing of course, but I'd be happy with a prototype
>>and a one line description of every toolbox call.
>>I don't want IM crammed into a pocket book.  I want a pocket book
>>with as much Mac info as possible.
> 
>>Anybody else think this would be handy ?

Well, I also wish for something like that.  At the moment the
best alternative for me is Think Reference, but it's missing Volume 6.
Thomas Burglin
Newsgroups: comp.sys.mac.programmer
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Subject: C.S.M.P. Digest V1 #52 Available
Organization: University of Oregon Computer and Information Sciences Dept.
Date: Fri, 17 Apr 1992 10:45:37 GMT


C.S.M.P. Digest             Fri, 17 Apr 92       Volume 1 : Issue 52

Today's Topics:

	Wild Magic
	No current port vs. CopyBits?
	free-ware or Shair-ware Programing Language
	A/UX irc client crashes on call to malloc()
	Invisible files
	Completion routines & A5
	pict -> macbinary resource fork on unix
	Official Chocolate of Mac Programming
	File Labels
	Is there X11, NFS, TCP for the MacOS?


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

These digests are available (by using FTP, account anonymous, your email
address as password) in the pub/mac/csmp-digest directory on ftp.cs.uoregon.
edu.  This is also the home of the comp.sys.mac.programmer Frequently Asked
Questions list.  The last several issues of the digest are available from
sumex-aim.stanford.edu as well.

These digests are 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 digest as it is created.

The articles in these digests are taken directly from comp.sys.mac.programmer.
They are not edited; all articles included in this digest are in their original
posted form.  The only articles that are -not- included in these digests are
those which didn't receive any replies (except those that give information
rather than ask a question).  All replies to each article are concatenated
onto the original article in the order in which they were received.  Article
threads are not added to the digests 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 digests).

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

-- 
_____________________________________________________________________________
Michael A. Kelly                                         University of Oregon
mkelly@cs.uoregon.edu                             Computer Science Department
_____________________________________________________________________________
From: andersm@prism.CS.ORST.EDU (Mark Anderson)
Newsgroups: comp.sys.mac.programmer
Subject: Any changes when printing to HP Deskwriter?
Date: 6 Apr 92 21:04:56 GMT
Article-I.D.: CS.1992Apr06.210456.25541
Organization: Oregon State University, Computer Science Dept.

I have written a program that seems to work fine when printing to StyleWriters
and LaserWriter, but I have gotten two reports that it crashes during the print
process and both of these people were printing to HP DeskWriters.  I think I 
also remember reading a fix in the README file for Disinfectant that mentioned
that his printing code crashed also when printing to a DeskWriter.  So my 
question is, is there anything special I have to do (or not do) when printing
to a DeskWriter.  If so, how do I tell that a DeskWriter is the currently 
selected printer?  Any help would be greatly appreciated.

						Mark J. Anderson
						andersm@prism.cs.orst.edu
From: greggor@Apple.COM (Greg L. Anderson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Password specification for AppleEvents?
Date: 16 Apr 92 23:03:49 GMT
Article-I.D.: apple.65554
Organization: Apple Computer Inc., Cupertino, CA

In article <23432@goofy.Apple.COM> jpugh@apple.com (Jon Pugh) writes:
>You patch a mess of shit and/or burrow under the AE manager.  Greg Anderson
>already did this in his AutoGuest INIT & library.  It is available on the
>Developer CD.  It only allows Guest access this way though.

For the record, there were quite a few people who worked on overcoming this
problem; I just rolled it all together.  AutoGuest should be avoided when
possible, though; it's not guarenteed to work with future versions of
the system.

>Anything 
>requiring a password is still out of bounds for a bg only app.  I think we
>need a programmatic way of providing the user name and password, but it 
>doesn't exist.
>
>In short, we know it's fucked.  We're trying to get it fixed.

Amen...
-- 
=====================   ===========================   =====================
Greg Anderson           Apple Computer, Inc.            O    Ponnuki    O
Macintosh Bodhisattva   Macintosh System Software      O O  is  ideal  O O
greggor@apple.com       Finder Team                     O     shape     O
=====================   ===========================   =====================
Newsgroups: comp.sys.mac.programmer
From: krk@itl.itd.umich.edu (Kenneth Knight)
Subject: Co-ordinates returned by Get/Wait-NextEvent are wrong - help?
Originator: krk@helen
Organization: Instructional Technology Laboratory, University of Michigan
Date: Mon, 6 Apr 92 20:48:02 GMT

I am having a very strange problem with a standard main event loop.

Here is the fragment of concern:
//	SystemTask();
	if (WaitNextEvent(everyEvent,&myEvent, 0L, nil)) {
/*	if (GetNextEvent(everyEvent, &myEvent)) { */
		MaintainCursor(&(myEvent.where)); /* update cursor . */
		switch (myEvent.what) 

The problem is that it seems that the co-ordinate being returned in the
myEvent.where field IS NOT a global co-ordinate. It is a co-ordinate in the
local co-ordinate plane of the main window (and it always seems that way even
if I say bracket the event call with something along the lines of a
  GetWmgrPort(&wPort);
  SetGWorld((CGrafPtr);
  ... event call.....
  SetGWorld( /* back to what it should be */

So, if I click in the main window I get a local co-ordinate and then , of
course, doing a GlobalToLocal() call messes things up totally. But, if I 
click in my secondary window (a little thing holding icons) the co-ordinate
returned is global. If I click outside both windows the co-ordinate is global.
If I click outside, I think, the portRect of the main window, but still in the
window frame, the co-ordinate returned is still local to the main window
(i.e. myEvent.where = {some horizontal value, -vertical value}). This is
something I have never seen before. Can anyone give me any clue as to what is
going on here. I have a kludge that would work (just do GlobalToLocal when
I am sure, ha ha, that the point is global, but that is really pretty
pathetic and this program must be sound).

Help...

  ** Ken **
krk@itl.itd.umich.edu

Newsgroups: comp.sys.mac.programmer
From: Andrew_Gilmartin@Brown.EDU
Subject: Diff and Diff editor for Macintosh?
Organization: Brown University
Date: Tue, 14 Apr 1992 18:46:44 GMT

I am looking for a Macintosh application (not MPW tool) that does a diff and
diff edit to text files. The applicaiton must be shareware or public domain as
it is to be distributed to a wide audience. Thanks.

-- Andrew_Gilmartin@Brown.Edu

Newsgroups: comp.sys.mac.programmer,comp.sys.mac.misc
From: kettler@mitme5.mit.edu (KETTLER, THOMAS R.)
Subject: Re: ResEdit Easter Eggs
News-Software: VAX/VMS VNEWS 1.4-b1  
Organization: MIT Lab for Nuclear Science
Date: Wed, 15 Apr 1992 02:57:00 GMT

In article <22893@goofy.Apple.COM>, ksand@apple.com (Kent Sandvik)              writes...
>In article <BM2DKA.HuJ@world.std.com>, kenh@world.std.com (Ken Hancock) writes:
>> In article <1992Apr2.023201.11196@watdragon.waterloo.edu> > >> Hear, hear.
>However it seems that Apple appears to consider Canada as
>> >>being simply an extension of the US market in a lot of ways. At least
>> >>Canada is part of Pacific (I think) and not Apple USA. Certainly
>> >>changing the way things are spelt (or spelled...) in the Finder would
>> >>be nice for a Canadian version. The Finder 6 "color"  menu used to get
>> >>on my nerves a bit.
>> 
>> Well, I could say that the folks in Canada and the UK just learn
>> to spell correctly, but then I'd probably be flamed for being an
>> insensitive, ego-centric lout.  ;-)
> 
> 
>Don't forget the Kiwiis and Aussies, color is 'colour' down under.
> 
>Cheers,
>Kent
>former down under-ite

For those who are interested, I will say why we in the USA use color and 
flavor instead of colour and flavour, etc. It is because of President Theodore 
Roosevelt. He felt that words should be written the way that they are spoken 
and used words which end in our but have a sound of or as examples. The 
newspapers back then had a field day using "words" such as "tuff", "enuff" in 
articles about him. After that occured, he stopped his crusade of changing the 
spelling of words to how they were pronounced but color and flavor stuck, so 
that is how we in the USA write those words. Those who were interested in 
this article of history or want to flame me about wasting bandwidth on trivia 
may write to kettler@pierre.mit.edu.

						Sincerely yours,

						Thomas R. Kettler "Mac Nut"
From: wingo@apple.com (Tony Wingo)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Zortech C++ Summary
Date: 8 Apr 92 17:13:52 GMT
Distribution: na
Organization: Apple Computer

In article <13265.29D870EF@zeus.ieee.org>, Ray.Arachelian@f204.n2603.z1.ieee.org (Ray Arachelian) writes:
> 
> On 03-20-92, CORY@ENIGAMI.MV.COM wrote to ALL:
> 
>  C> Symantec's tech support ain't all that up on the Mac version of the 
>  C> compiler; one tech support group from all platforms.  They also don't 
>  C> return calls. 
> 
> If Zortech C++ for the Mac sucks so badly, why did Symantec bother to buy 
> it, especially when they already own Think C?

Probably because Zortech is a major player in the MSDOS C++ field, and they
wanted into that market.

-tony

>>usual disclaimer<<
Newsgroups: comp.sys.mac.programmer
From: andrews@sp1.csrd.uiuc.edu (John Andrews)
Subject: Re: comp.sys.mac.programmer.OOP
Organization: UIUC Center for Supercomputing Research and Development
Date: Wed, 15 Apr 92 13:59:40 GMT

creiman@void.ncsa.uiuc.edu (Charlie Reiman) writes:

>Although I know this is a lost cause, I am opposed to a new group.  If
>I have something to say regarding MacTCP, I always have to scratch my
>head and ask "c.s.m.p or c.s.m.c?" Now, if I have a questions regarding
>the toolbox, but my program happens to be written in C++, then where
>should I go?
> [other comments deleted]
>-- 
>Charlie Reiman - creiman@ncsa.uiuc.edu
>"People are going to take to voice input like lemmings to the sea."
>					 -Tony Bove (MacWeek V.6 N.13)

I am also against the proposed subdivision of c.s.m.p .  There are enough
mac newsgroups already.

--
John Andrews (andrews@csrd.uiuc.edu) "He who dies with the shortest .sig, wins"
Graduate Research Assistant, Center for Supercomputing R&D, Urbana, IL
Newsgroups: comp.sys.mac.programmer
From: Charles McClary <cmcclary@indiana.edu>
Subject: How do you get the top, left, width, and heighth  from a WIND
     resource?
Organization: Indiana University
X-Useragent: Nuntius v1.0
Date: Fri, 10 Apr 92 21:27:50 GMT
From: lkimes@alshain.usc.edu (Lance 'Moof' Kimes)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to turn File Sharing on?
Date: 10 Apr 1992 19:23:15 -0700
Organization: University of Southern California, Los Angeles, CA
Distribution: world
Reply-To: lkimes@alshain.usc.edu (Lance 'Moof' Kimes)
NNTP-Posting-Host: alshain.usc.edu


In article <D88-JWA.92Apr11002621@byse.nada.kth.se>, d88-jwa@byse.nada.kth.se (Jon W{tte) writes:
|> .umontreal.ca> casgrain@ERE.UMontreal.CA (Casgrain Philippe) writes:
|> 
|> 	   I would like to know how to turn file sharing ON or OFF, not by
|>    using the Control Panel, but from within an application.
|> 	   There seems to be no mention of this in IM VI.
|> 
|> OFF: Send a quit apple event to the File Sharing process.
|> ON: LaunchApplication on the File Sharing extension.
|> 
|> FindFolder, PBCatSearch, GetNextProcess, GetProcessInfo and the
|> AE manager seems to be the parts you need.
|> 
|> -- 
|> h+@nada.kth.se; Jon W{tte, the Diplomat - NOT!


Have you tried this to see if it works? It seems to me to be both very useful &
full of potential security hazards.

I know all users should be setup already with names & passwords, but what about hte clueless who are not? Even if everythings passworded, sharing could be turned on AGAINST your wishes & compromised passwords then allow easy entry.


I guess we're just paranoid at USC, but we're safe. :-)

Lance Kimes
USC
From: howard@rigel.cs.pdx.edu (howard l. berkey)
Newsgroups: comp.sys.mac.programmer
Subject: Summary of Graf3D (long...)
Date: 7 Apr 92 16:49:43 GMT
Article-I.D.: pdxgate.5268



I should have made this available for the c.s.m.p. digest...
Have fun!





-----------------------press n now if not interested------------------------







Here's all the info I have to date...Good Luck!
	-Howard




From lasleyse@wam.umd.edu Sat Feb 29 17:21:00 1992
Received:  from wor-srv.wam.umd.edu by rigel.cs.pdx.edu (4.1/pdx-client-evision: 1.17 
	id AA27848; Sat, 29 Feb 92 17:20:48 PST
Received: from rac2.wam.umd.edu by wor-srv.wam.umd.edu 
	id <AA05078@wor-srv.wam.umd.edu>; Sat, 29 Feb 92 20:20:35 -0500
From: Scott E. Lasley <lasleyse@wam.umd.edu>
Received: by rac2.wam.umd.edu 
	id <AA09693@rac2.wam.umd.edu>; Sat, 29 Feb 92 20:20:35 -0500
Date: Sat, 29 Feb 92 20:20:35 -0500
Message-Id: <9203010120.AA09693@rac2.wam.umd.edu>
To: howard@rigel.cs.pdx.edu
Subject: Re: Graf3D
Newsgroups: comp.sys.mac.programmer
Organization: Space Physics Group, University of Maryland at College Park
Status: OR

i think that Graf3D is documented in the MPW manual.  Here is some info
from the net regarding Graf3D:
From: nateh@quake.sylmar.ca.us (Nate Hawthorn)
Subject: MUBBS Echo!
Organization: Quake Public Access
Date: Wed, 15 Apr 92 05:06:20 GMT


               ****** NEW E-MAIL ECHO ANNOUNCEMENT ******
 
 
For those of you who are interested in MUBBS, the "Multi User BBS"
for the Macintosh (it's FreeWare, it's Modular and it's GREAT!):
 
There is a E-Mail "Echo" going on via InterNet that's also tied
into America OnLine ! Soon to be tied into other online systems and
eventually MUBBS itsself!
 
Many people are talking about what's happening with MUBBS and where
it may be going. Support is available from MANY people via the Echo!
 
If you would like to receive the MUBBS Echo, send ANY message to:
 
mubbs!request@quake.sylmar.ca.us
 
  (or some mailers may want to see a %)
 
mubbs%request@quake.sylmar.ca.us
 
 
This will automaticly put you on the list!
 
(you send ANY message, content does not matter, it reads just your
"Reply to:" address and uses it to make up the list)
 
 
QUICK SUMMARY:
 
mubbs!request@quake.sylmar.ca.us  << to put yourself on the list
 
mubbs!cancel@quake.sylmar.ca.us   << to remove yourself from the list
 
mubbs!submit@quake.sylmar.ca.us   << to send something to the whole Echo
 
ssbbs!nateh@quake.sylmar.ca.us    << This is a real human, if you want one
 
 
 
Nate...
 
BTW: the reason this is going to the "programmers" is because it's very
EASY to program modules for MUBBS. There's lots of sample source code
and we release most of the code for others to "build on top of".
 
If you have always wanted your own "custom" made BBS, you can program
MUBBS to do just about anything, and it handles all the "BBS" stuff for
you!
From: scott@mcl.mcl.ucsb.edu (Scott Bronson)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Writing apps that use plug-ins?
Date: 12 Apr 92 03:59:20 GMT

In <BMG2AE.273@world.std.com> zobkiw@world.std.com (Joe Zobkiw) writes:

><< If I recall correctly, THINK C (or Pascal or both) will, as an
>optimization, not include methods in an object that are not called when it
>does a smart link, therfore your methods won't exist if you don't use them
>from inside the application. >>

>I think you're wrong. I've alwasy understoodthat THINK C's Smart Link is 
>on a FILE BY FILE and NOT a ROUTINE BY ROUTINE "smartness."


Yes, it does do it file by file.  But, can you trust this not to change?
Defensive programming now might save you a lot of debugging time in
the future.

	- Scott
From: charles@aurora.unice.fr
Newsgroups: comp.sys.mac.programmer
Subject: Need informations about the MIDI interface...
Date: 9 Apr 92 14:14:03 GMT
Organization: University of Nice - Sophia Antipolis, France
Originator: charles@aurora.unice.fr

Hi mac users...

I look for informations about MIDI. Does it exist a ftp server or
something like that where I can find the complete (or incomplete !!!)
dscription of MIDI (some examples a welcome.......).

I probably will use the midi library to code some MIDI function. I notice
a file called midi.h in the think C 5.0 but no precise informations in the 
think C documentation....same in inside mac V.
	
It's really very important for me to learn the way to use the library given
with the think C 5.0.

Please mail me if you have any informations.........

Thanks a lot....

Tony / charles@aurora.unice.fr
-- 
------------------------------------------------------------------------------
|  A               |  Anthony CHARLES         |  "Life is boring...........  |
|   T     *** ***  |  ESSI one student        |    .....buy a TT.....!!!!!"  |
|    A     *   *   |  2, place Mejane         |  E-mail (first prefered)     |
|     R    *   *   |  06560 SOPHIA ANTIPOLIS  |    charles@aurora.unice.fr   |
|      I           |  Tel : 92 96 00 26       |    charles@malibu.unice.fr   |
------------------------------------------------------------------------------
From: mxmora@unix.SRI.COM (Matt Mora)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Anybody interested in a Clock program?
Date: 14 Apr 92 16:23:35 GMT
Organization: SRI International, Menlo Park, California

In article <702994046.F00007@blkcat.UUCP> Pete.Gontier@p811.f70.n109.z1.fidonet.org (Pete Gontier) writes:
>
> PP> From: potts@itl.itd.umich.edu (Paul Potts)

> PP> If your application is background only it shouldn't have a user
> PP> interface. In this case you wouldn't initialize any of the managers
> PP> that provide the user interface. However since your application
> PP> *does* have a user interface...

>Unfortunately, you can't even begin to compromise on this issue. I've had
>a bg-only app crash just calling InitGraf. Ugly scene.

>This sounds a lot like the perfect excuse to write directly to video RAM.

Well since I can't create a Faceless Background app with my clock program,
I'm trying to get it to run in a very low memory partition. 
I have the partition set at 32k. The app works fine until I try to 
select a menu. It bombs on menuselect. 

It wused to work fine without a menubar but I found out that it
wouldn't let you shutdown without one.

So my questions are:

What is the minimum amount of memory an app can run in?
What should I set the stack size to? 
   (I'm using gworlds and copybits. Didn't copybits used to use the stack? 
    Does it still?) 

Why would menuselect fail? 
Is it trying to save the background bits in my heap?
What does menuselect want? 
   (It looks like it trying to load some resources.)
Can I somehow preload whatever its looking for?

Thanks for any help you can give. 

What started out as a half hour hack has been bothering me for two weeks
now. :-)


mxm





-- 
___________________________________________________________
Matthew Mora                |   my Mac  Matt_Mora@sri.com
SRI International           |  my unix  mxmora@unix.sri.com
___________________________________________________________
Newsgroups: comp.sys.mac.programmer