HDTenEightyP/NetNews huggingface dataset:
From: Andrew Gilmartin <Andrew_Gilmartin@Brown.Edu>
Newsgroups: comp.sys.mac.programmer
Subject: Re: srcBic problems on Plus and PB 100
Date: 7 Oct 1992 19:18:57 GMT
Organization: Brown University
Distribution: world
NNTP-Posting-Host: cis_staff-kntx6.cis.brown.edu
X-UserAgent: Nuntius v1.1.1d7
X-XXDate: Wed, 7 Oct 92 20:23:27 GMT

In article <1aus14INNmqi@stanley.cis.Brown.EDU> Andrew
Gilmartin, Andrew_Gilmartin@Brown.Edu writes:

>     PenMode( srcBic );

To answer my own question, I should be using patBic. I turns
out that a Macintosh with color QuickDraw treats src and pat
modes the same. Neither the Plus nor the PowerBook 100 have CQD
so I should be using pat modes.

-- Andrew
From: tm@media.mit.edu (Mike M. Tuyo "Xsistor")
Newsgroups: comp.sys.mac.programmer
Subject: How do I create ListBoxes...
Date: 13 Oct 92 14:35:26 GMT
Distribution: usa
Organization: MIT Media Laboratory

Hi!,

I have done a lot of programming under MS Windows and X11, and I
just started programming on the Macs.  My question is:

How do I create a dialog that acts like a List Box?
basically what I want is a window that holds a list of strings that a user
can 'click' on one of the strings and the window returns the 
item number and a pointer to string.  That simple!

It's being very fraustrating (sp), because I've been trying to find some
good books on how do build resources.  The ones I have don't discuss
how to create one.  I'd appreciate any help.

Mike Tuyo
tm@media.mit.edu
tm@mumford.mit.edu
Newsgroups: comp.sys.mac.programmer
From: ross@bnr.ca (Ross Brown)
Subject: Re: Apple Events! How to locate a service?
Organization: Bell-Northern Research Ltd.
Date: Fri, 9 Oct 92 20:33:08 GMT

In article <D88-JWA.92Oct8204556@byse.nada.kth.se> d88-jwa@byse.nada.kth.se
(Jon Wtte) writes:
>[stuff deleted]
>Does the finder listen to remote events? I thought not. Therefore
>you have to write a small system extension (background application)
>that listens for specific AppleEvents and relays them to the local
>finder. Talk about security hole :-)

Does Finder listen to remote events?  It does for me.  Check out Jon Pugh's
FinderEvents stack.  In the description of the Open Selection and Print
Selection events, he mentions that these are the only ones you can fire at a
remote Finder, and by Jove, it works.

You may have noticed that Finder always appears in the list of programs when
you are poking around the network in the PPC Browser.  In fact, there's no
Sharing dialog for Finder, so you can't tell it *not* to listen to remote
events... 'sope' and 'spri', at least.

==============================================================================
Ross Brown, Dept. 7C22  < Bell-Northern Research     >  Just the facts, ma'am.
Advisor, Telemgmt Svcs  < P. O. Box 3511, Station C  >  We don't care whose
ross@bnr.ca             < Ottawa, ON, Canada K1Y 4H7 >  opinions yours aren't.
==============================================================================

Newsgroups: comp.sys.mac.programmer
From: Masud Cader <mcader@worldbank.org>
Subject: REPOST: multisegment CODE resource help
X-Xxmessage-Id: <A7007387B5021C24@36.28.220.138.in-addr.arpa>
X-Xxdate: Tue, 13 Oct 92 20:37:27 GMT
Organization: The World Bank
X-Useragent: Nuntius v1.1.1d10
Date: Tue, 13 Oct 1992 16:32:19 GMT

After programming WingZ externals (code resources), I have been wondering
about some of the more subtle nature of mulitsegmented code resources. 
First of all, what is the best source of information on CODE resources
and especially multisegment code resources.

Before I continue, I will explain my application.  Basically, I am
attempting to access a Fast Fourier Transform CODE resource (WingZ
external) from within the WingZ spreadsheet.  While this is not quite
complicated, I have found that the WingZ application crashes if I pass
vectors of more than 300 rows (of a single column), i.e., 300 elements. 
After speaking with some folks at Informix, they mentioned something
about the DATA segment of the code resource not being large enough.  I am
not quite sure what they were talking about since I think that the DATA
segment is usually quite static and contains such things as strings for
registration passwords, etc., or perhaps I am confusing this with the
DATA fork?
So, secondly, how does the DATA segment(?) of a CODE RESOURCE work.  How
do I accesss it, write data to it, read data from it, etc.  Are there
limits to the the amount of data I can pump into a code resource? 
Thirdly, under System 7, am I not supposed to elude all the 32K limits
due to 24bit addressing?

If someone/s could clear this up for me, or provide me with references
(tech notes, articles) to multisegment code resources, I would be most
grateful.  Please note that I have already read IM I-V under this item
(CODE RESOURCE).
Newsgroups: comp.sys.mac.programmer
From: tree@newton.uvm.edu (Tom Emerson)
Subject: Symantec Job Openings
Organization: University of Vermont, EMBA Computer Facility
Distribution: comp
Date: Tue, 13 Oct 1992 13:58:25 GMT

Symantec's Development tools group in Bedford, MA, is growing!
If you are interested in joining a winning team and qualify for any of the
following positions, we would like to hear from you.  Please rush your
resume to:

Symantec Corp.
135 South Road
Bedford, MA 01730
Attention:  Nancy Ciampa
Phone:  617-280-2652
Fax:    617-275-2124

Please do *not* email your resumes to me: they will be directed to 
/dev/null.

QUALITY ASSURANCE ENGINEER
Write code in C and C++, develop test plans, perform code
reviews, coordinate beta sites and be an integral part of the
development process.  Superior analytical and communications
skills, commitment to shipping Quality products.  Dos,
Windows, OS/2, or MAC programming experience; strong C;
practical exposure to 80x86; C++, OOP/class library experience
desirable.  BS in Computer Science with 2-4 years language
tools QA or development experience.


PRODUCT/MARKETING MANAGER - MAC
Be the champion for all MAC products by coordinating products
from development to inception ensuring and reporting schedules
and managing POR's.  Create and manage 3rd party marketing
relationships with individual software vendors and publishers
to get broadest support for MAC products.  Position products
to obtain best market recognition.  Candidate must be able to
"influence without authority", have industry experience, 2-5
years product management with a CS degree or an excellent
understanding of the scope of programming.


SR. TECHNICAL WRITER/SUPERVISOR
Create user and reference manuals for C and C++ development
environments for DOS, Windows, OS/2 and Macintosh while
seeking ways to improve current documentation methods.  Will
work from previous versions of manuals, engineer's notes and
specifications of future products to produce finished product.
Will manage a team of 2 writers and insure all product related
schedules are met.  Candidate must have 4+ years of technical
writing in a software related field, preferably in development
tools; 1-2 years management experience; working knowledge of C
and C++ to write basic source code examples; BSCS desirable.


SR. SOFTWARE ENGINEER
Lead a team of engineers in developing the next generation of
development tools for Symantec as well as maintaining and
enhancing parts of the existing THINK C compiler and tools
including front-end code generator, optimizer and linker.
Perform original design and implement next generation
development for Mac, Windows and other platforms.  BSCS with
5-10 years commercial software development experience
preferably in Macintosh and PC (DOS or Windows) applications
arena; 2+ years in project leadership position.  Strong C
required, C++ and experience in compiler construction and
linker development is highly desirable.
--
   Tom Emerson                                    Technical Support
   Language Products Group                     Symantec Corporation
                         Internet: tree@uvm.edu
From: mgeorgy@vmsclst1.sc.csupomona.edu
Newsgroups: comp.sys.mac.programmer
Subject: Resource Help!!!!!
Date: 8 Oct 92 14:59:27 GMT
Article-I.D.: vmsclst1.1992Oct8.075927.1
Organization: Computer Science Computational Systems
Nntp-Posting-User: mgeorgy

Hello, Could someone please explain to me how to use resources that I have
created via RESEDIT.  The  compiler I use won't let me conveniently select the
files and it does everything for me like the Think series, so I think I'll have
to use the REZ, DEREZ tools in MPW, right???

Thanx,
Matt Georgy
California State Polytechnic State University, Pomona  -- Computer Science
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+When It Absolutely, Positively, Has To Be Taken Out Overnight!!!+
+                                                                +
+                                           -- Team Stealth      +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Newsgroups: comp.sys.mac.programmer
From: tonym@polari.online.com
Subject: Forcing TextEdit to set scrpAscent and scrpHeight
Summary: Is there a way to get TextEdit to set the height and ascent fields?
Keywords: TextEdit, scrpHeight, scrpAscent
Organization: Seattle Online Public Access Unix.  (206) 328-4944 (all lines telebit-equipped)
Date: Sun, 11 Oct 1992 01:32:21 GMT

I am writing a Windows version of a Mac application. It uses the same file
format as the Mac version. This file format uses style scrap records to 
store information about the text styles. So on the Windows end, I have to
generate scrap style records myself without the help of TextEdit. The
problem is setting the scrpHeight and scrpAscent fields properly. Since
I have no way of obtaining font metrics, it seems like I am stuck. My
question is this: is there some "magic" value for these fields that will
force text edit to read the font metrics and fill them in properly? I
tried -1, but this did not do it.

If there is no magic value, I will have to modify the Mac program to
get it to reread the font metrics if the file is coming from Windows.
What is the easiest way to get TextEdit to do this? Interestingly
enough, TESetSelect rereads these fields, but this seems like the
wrong function for this purpose.

If you have any answers or ideas, I would be much obliged. If you can figure
out a method that does not require any changes on the Mac end, I will mention
your name in the "Special Thanks To..." section of the manual! :-)

-- 
Tony Mann
Spontaneous Software
From: peirce@outpost.SF-Bay.org (Michael Peirce)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Think C++??
Date: 14 Oct 92 17:09:43 GMT
Article-I.D.: outpost.D2150035.g352mi
Reply-To: peirce@outpost.SF-Bay.org (Michael Peirce)
Organization: Peirce Software
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <1992Oct13.124312.887@gagme.chi.il.us> (comp.sys.mac.programmer), essam@gagme.chi.il.us (Essam Khairullah) writes:
> 
> I have never quite figure out why people would want to use MPW anything to
> do any programming!  It just seems to be so archaic!  Maybe if they put a
> Commando shell on it (ala A/UX) it would be easier to use...  But then just
> remember that this (MPW) is coming from the same people who invented the idea
> of using a Lisa to program a Mac...

There are lots of good reasons to use MPW.  It's very powerful and
very flexible.  I seem to spend a lot of time developing things with
code resources in them.  RDEV's, cdev's, patches, Add-It's, INIT's.
MPW is very good at letting me build them very easily and conviently.

For example, when I wrote a chooser thing, it contained three different
types of code resources and all it took was one make file to coordinate
them.  I didn't have to use multiple projects in THINK Pascal or C,
just say BuildIt and my script would assemble all the pieces and copy
them into the right places.  Very simple and very fast.

And with Jasik's debugger I can debug anything, even wird code resources
with mxied C, Pascal, and Assembly without skipping a beat.

Who wants to be stuck in an environment where you can't easily mix
languages?  I do a fair amount of work in C these days, but I have
tons of Pascal code that I refer to, and it's nice to be able to just
link it right in (translating Pascal to C isn't my idea of fun). 

Commando is nice when I forget how something works (more usually I
just use HELP), but most of the time I don't need to refer to any
of that since most of what I do is already distilled into a variety
of scripts that do the work for me.

Sure there is room for improvement with MPW, but it's a very productive
programming environment for some of us.  

The THINK environments are fine for many types of work, but I've always
found them too specialized.  If I was writing just plain appplications all
the time I could probably learn to make do with THINK Pascal or THINK
C, but MPW lets me do so many things that THINK doesn't, I just can't
image giving MPW up.

P.S.  Besides, I'm getting old and set in my ways and I have way too much
time invested in cool scripts to leave MPW behind. :-)

--  Michael Peirce      --   peirce@outpost.SF-Bay.org
--  Peirce Software     --   Suite 301, 719 Hibiscus Place
--                      --   San Jose, California USA 95117
--  Makers of...        --   voice: (408) 244-6554 fax: (408) 244-6882
--            SMOOTHIE  --   AppleLink: peirce & America Online: AFC Peirce
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@byse.nada.kth.se (Jon Wtte)
Subject: Re: Event Manager Too Slow or izzit just me?
Originator: d88-jwa@byse.nada.kth.se
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 13 Oct 1992 09:50:12 GMT

> wwg2101@venus.tamu.edu (GILPIN, W.W.) writes:

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

		   if (gWNEImplemented)
			   WaitNextEvent(everyEvent, &gTheEvent, SLEEP, 
				   NIL_MOUSE_REGION);
		   else
		   {
			   SystemTask();
			   GetNextEvent(everyEvent, &gTheEvent);
		   }


Okay, why are you checking for WaitNextEvent? Want to run
under system 4.2 without MultiFinder? WaitNextEvent is ALWAYS
implemented if
1) you run system 6.0 or higher
or
2) you run MultiFInder

I did away with checking a LOOOONG time ago. (Now, people, what's
a good way of checking for MultiFinder? :-) :-) :-)

		   if (gTheEvent.what == keyDown)
			   gameDone = HandleGameKey(&newDirection);
		   .

You inline the event handling dispatching. That's bad style,
because if you call WaitNextEvent some other place, or get an
update event within a filterProc, you want to handle that event
using your normal event handling functions.

Separate out the dispatching (and use a switch for chrissake :-)
into a HandleEvent ( EventRecord * event ) function instead.

Now, about your jerkyness problem; you'll lose background tasking
one way or the other:

1) System 6 way:
	Call GetOSEvent instead of WaitNextEvent. This will totally
	freeze up all background tasks, but will yield snappy
	performance for you. Update events and other such unimportant
	stuff won't get in your way, and clicks outside your window
	won't switch you out.
2) System 7 way:
	Ask the user "Would you like jerky motion and living processes,
	or should I kill the f*cking cycle-stealers ?"
	Then, if the user opts for violence, use the process manager
	to kill off all tasks except yourself. WaitNextEvent should
	be snappy enough after that.

Hope this helps,

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Suedoise (not french speaking) --

   There's no problem that can't be solved using brute-force algorithms
   and a sufficiently fast computer. Ergo, buy more hardware.
Newsgroups: comp.sys.mac.programmer
Subject: Re: Productivity of a C programmer ?
From: russells@ccu1.aukuni.ac.nz (Russell Street)
Date: Tue, 13 Oct 1992 21:26:24 GMT
Organization: University of Auckland, New Zealand.

erh0362@tesla.njit.edu (Elliotte Rusty Harold) writes:

>I think the key rite of passage for a Macintosh programmer is that point where 
>the toolbox stops being an obstacle and starts being a quick way of writing a 
>really impressive interface (by the standards of platforms other than the Mac 
>at least :-) ).

<Sigh> May be.  Have you ever actually noticed how *difficult* it is
to do a really nice Mac interfacy things?  I have found it takes a
lot of work to do something simple and then it never seems to be quite
right.

The standard managers seem to be quick and dirty hacks to get the job done
(ListManager) or to do simple things (TextEdit) but fall over when you
give them a real job -- the poor programmer has to rewrite them. Admittedly
once you have done that once you can reuse the code -- but writing
things for a *general* case is hard.

Two cases I have had to deal with are:
	Having a 'list manager' (styled) list that you can edit
	the data in (like Excel, argh!). I wanted this for a small list
	that the LM could handle easily but to do the editing
	part really nicely was a real pain.

	Dragging gray regions around. Well not quite a region --
	I wanted to drag a vertical line around a line graph
	to mark out a region.  This ended up with a lot of 
	strange code.

However I love the Mac and do enjoy programming it, more than any 
other environment and would not move to anything else.

Russell
-------------------------------------------------------------
Russell Street                     russells@ccu1.aukuni.ac.nz 
"Baldrick, I believe the phrase rhymes with 'clucking bell'."
        -- Edmund Blackadder



Newsgroups: comp.sys.mac.programmer
From: tbl@rock.concert.net (Ted B Lowery -- Personal Account)
Subject: Attn: Ray Sanders/Steve Antonakes
Organization: CONCERT-CONNECT
Date: Sun, 11 Oct 1992 22:21:09 GMT

Hi All-

I am looking for Ray Sanders or Steve Antonakes.  They were developers at 
MacHack '91.  They wrote a hack called 'color hack' for MPW and Think C.  I
use that hack extensively, and love it, but it has some shortcommings.

If they are still out there, or if anybody knows how to find them, please
email me.  I would like to get their code and make some changes, or possibly
find a program that does everything I want.

For those who are not familiar with color hack, it prints the reserved words
in color when in a MPW or Think C window.  But it only supports ANSI C/C++  
reserved words.  I would like to change the program so it supports Mac trap
words, global vars and structures, comments, and possibly provide an editor
of some sort to make it easier to change the attributes. 

Again, if anybody knows where these two are, or if you have the source to
color hack, or if you know of another product that does what I want, please
let me know.  For those who are interested, If I am able to gain the source,
I will gladly provide my updates to anyone just for the asking.  I think
the product as it stands now is a must have, and after I am done making changes,it will be the most useful addon any programmer could ask for.  :-)

Anxiously awaiting a reply...

Ted
tbl@rock.concert.net
Newsgroups: comp.sys.mac.programmer
Subject: little INIT code resource problem
From: zocca@amc.uva.nl (Vincent Zocca)
Date: Wed, 14 Oct 1992 14:18:18 GMT
Followup-To: comp.sys.mac.programmer
Organization: Uni. of Amsterdam, Fac. of Med.


Hello!

I've got a probably very little problem with vriting an INIT.
What I want is to check for disk insert events and perform some action as a
reaction to them.
I wrote something that looks like this.

{-----------------------}

   {headers and other stuff precede}

	procedure Main;

		var
			INITHndl: handle;
			OsError: OSErr;
			myEvent: EventRecord;
			GotEvent: Boolean;

	begin

		INITHndl := GetResource('INIT', 0);
		DetachResource(INITHndl);

		repeat
			GotEvent := WaitNextEvent(DiskMask, myEvent, 60, nil);
			if GotEvent then
				begin
					if (HiWord(myevent.message) <> noErr) then
						begin
							myEvent.where.h := 40;
							myEvent.where.v := 20;
							InitCursor;
							OsError := DIBadMount(myEvent.where, myevent.message);

   {At this point I want to perform some action}

						end;
				end;
		until False;

	end;

{-----------------------}


The code resource generated messes up the machine it's installed on. It
does get disk events at startup though, I've tested that with a
SysBeep(10).

Ok,ok,... What is it? What am I forgetting. Give it to me. I can handle it.


Thanks in advance.



Yours truly,


zocca@amc.uva.nl (Vincent Zocca)
From: kn@doc.ic.ac.uk (Keng Ng)
Newsgroups: comp.sys.mac.programmer
Subject: Problem with MPW & MacApp
Date: 12 Oct 92 13:57:13 GMT
Organization: Imperial College of Sc Tech & Medicine
NNTP-Posting-Host: dse-mac-keng.doc.ic.ac.uk
X-UserAgent: Nuntius v1.1.1d9
X-XXMessage-ID: <A6FF429D82020E1F@dse-mac-keng.doc.ic.ac.uk>
X-XXDate: Mon, 12 Oct 92 14:56:29 GMT

Hi all,

I've just moved over from Think Pascal to MPW and are having problems
compiling my MacApp 2.0.1 program. I was able to build a -debug version of
my program but when I try to compile with the -sym -debug options, MPW
will
crash out (usually with error=3) when compiling some of my Pascal units,
producing an incomplete .p.o file. I've tried increasing the MPW partition
to 15meg but the same thing happened. I should point out that I was able
to
build the -sym -debug version of the MacApp library OK.

All the MPW & MacApp stuff I'm using comes from ETO#8. I'm using a
Quadra 700 with 8meg of real memory.

Could anyone shed some light on this ? I'm probably missing something
obvious. Many thanks in advance.

Cheers,
Keng


-----------------------------------------------------------------

Keng T. Ng              DARPA: kn@doc.ic.ac.uk
Imperial College,              kn%uk.ac.ic.doc@nsfnet-relay.ac.uk
Dept. of Computing,     UUCP:  kn@icdoc.UUCP
180 Queen's Gate,
London SW7 2BZ,         TEL:   +44 71 589 5111 ext 5091
United Kingdom.         FAX:   +44 71 581 8024
Newsgroups: comp.sys.mac.programmer
From: lipa@camis.Stanford.EDU (Bill Lipa)
Subject: Re: searching the digests?
Organization: Stanford School of Medicine
Date: Fri, 16 Oct 1992 18:29:55 GMT


You could get the Info-Mac CD-ROM and search the digest directory that way.
That would result in searching the Info-Mac digest, Tidbits, csmp, and
Murph's Vaporware.

Bill Lipa
lipa@camis.stanford.edu
Newsgroups: comp.sys.mac.programmer
From: fixer@faxcsl.dcrt.nih.gov (Christopher Tate)
Subject: Suggestions for Font/Size menu handling
Reply-To: fixer@faxcsl.dcrt.nih.gov
Organization: Computer Systems Laboratory, DCRT, NIH
Date: Thu, 8 Oct 1992 00:23:57 GMT

This *must* be a frequently-tackled problem, and it seems there must be a
better way of handling it than my current scheme....

I need a pair of synched menus to allow the user to select the font and
point size for displaying a list.  The question is how to adjust the size
menu to conform to the current font setting.

At present, I reconstruct the size menu every time the selected font
changes.  To determine what sizes are available, I call RealFont() on
every point size from 6 to 64 (the practical limit for this list) for
that font, adding an entry to the size menu every time I find a legitimate
size.

This seems like a horribly brute-force way to find the allowable sizes
for a given font, but having to special-case TrueType makes me nervous.
This code has to run under systems that don't have Gestalt....

Anyone have any better ideas?

------------------------------------------------------------------------------
Christopher Tate             | The Leadfoot Collection, Continued:
Management System Designers  |        * Barracuda (Heart)
                             |        * Summer of '69 (Bryan Adams)
fixer@faxcsl.dcrt.nih.gov    | Because driving fast is a cathartic experience.