HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.sys.mac.programmer
Subject: Re: Alert Help
From: seth@physc1.byu.edu
Date: 12 Jan 93 00:23:34 -0700
Distribution: world
Organization: Brigham Young University

DANG IT! Not more than two minutes after I posted my question I went back and
started looking at my alert again and noticed that the static text that was
getting the rectangle around it was item #1. So, I tried something I hadn't 
tried yet - I tried renumbering the items. I made my button item #1, and, you
guessed it, this time the buttin was surrounded by the "default" rectangle. You
can tell I haven't got much experience with this yet... Well, it certainly is
embarassing to post a question on the net and find your own answer within a
couple of minutes afterwards....
BUT, this does bring up a couple of new questions. Within the last few weeks I
seem to remember a guy asking why he couldn't get a default button surrounded
autonatically by the "default" round-corner rectangle. Someone said that this
was not autonatic, and discussed ways of doing this. On my machine with THINK
Pascal it DOES seem to be automatic. Also, why didn't this show up in ResEdit?
Is this a "feature" of THINK Pascal? It must be, as I created some alerts in
THINK C before, and I don't recall anything being surrounded by the "default"
rectangle then.

Seth Leigh
BYU Physics Dept.

Xref: sparky comp.sys.mac.programmer:21013 comp.os.ms-windows.programmer.tools:1940
From: trsnyder@mcs.drexel.edu (Bob Snyder)
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools
Subject: Re: Stallman and friends
Date: 8 Jan 93 18:19:59 GMT
	<1993Jan7.132930.4247@kth.se> <C0HoM3.5G5@news.rich.bnr.ca>
	<1993Jan7.134127.19071@husc3.harvard.edu>
Organization: ASCI

In article <1993Jan7.134127.19071@husc3.harvard.edu> veloso@husc9.harvard.edu (Manuel Veloso) writes:

   After reading through this thread, it seems that there's a
   perspective on the FSF that seems to have been missed...that their
   software distribution policy (copyleft) is a step towards
   domination of the unix utility market. My unix friends tell me that
   most of the base unix utilities are FSF-made (& better than the
   original); GCC, Emacs, YACC, etc. are better at what they do than
   the commercial versions. Even better, they're free.  How, then, can
   a commercial firm compete against well-produced, good quality,
   el-cheapo software? They can't...for long. The implications are,
   well, interesting.

Actually, it's worse than that.  They're writing the GNU Herd, a CopyLeft-ed
variation of UNIX. :-)

Bob
Xref: sparky comp.sys.mac.programmer:21151 comp.sys.mac.games:14068
From: lagnaf@Apple.COM (John "LJ" Czlonka)
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.games
Subject: Re: Code for drawing a sprite desired.
Keywords: Bring out the sprites!!!
Date: 11 Jan 93 03:22:35 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer Inc, Cupertino, CA

In article <1993Jan10.222055.342@midway.uchicago.edu> grass@cs.uchicago.edu (Joshua Grass) writes:
>In article <1ha3ikINN7tm@uwm.edu> bowden@csd4.csd.uwm.edu (John William Bowden) writes:
>>Hiya,
>>
>> 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?
>>
>> Here's what I have in mind.  A short program that loads in a PICT containing
>>a sprite and its mask into an offscreen grafPort and the copyBits the sprite
>>into a visible window.

John,

Check out Tech Note #41 for tons of useful info on how to manage offscreen
bitmaps.  Also, as far as books go, I locked myself in with my Mac Plus and
a copy of Chernicoff's Mac Revealed a few years ago - it's a fantastic tome!

Hope this helps,

-LJ
John Czlonka
lagnaf@apple.com

---------------------------
My opinion, not Apple's
Newsgroups: comp.sys.mac.programmer
From: brad@wendel.jpl.nasa.gov (Brad Pickering)
Subject: Re: Sozobon (or other free C's): would this strategy work?
Followup-To: comp.sys.mac.programmer
Organization: Jet Propulsion Laboratory, Pasadena, CA
Distribution: comp
Date: Thu, 7 Jan 1993 17:45:17 GMT


All very good suggestions.

Let me just take a minute to clarify my suggestions and why I think
that I have a very easy way to go.

I already have a development environment setup on the sun that I can
build mac programs using gcc and other unix development tools.  The
startup sequence is similar to what you explain where code 0 and 1 are
mac format and load a TOS (actually minix-st in my case) formated
executable.  I have a Perl script which converts MPW headers into
gcc headers and gcc glue routines to interface the mac roms.  You
have a choice in whether you compile with the inline code interface
if you compile with -ffixed-a5, or you can link in the glue routines
which setup and restore a5.  Quickdraw globals are stored in the
data section of the program.  A call to InitGraf causes (a5) to point
to these globals.  There is nothing forcing the QD globals to be
directly below a5.  The worst problem with this development
environment is pascal callbacks.  It is easy to setup a5 when it
it is needed, because it is stored in a global variable. But it
is a pain to hand write the glue routine that converts the pascal
format of the callback to the C format before calling the c
callback routine.  But considering that we are trying to provide
a free c compiler, I don't think people will complain to much
over a few added hastles.

My suggestion was not to just have a TOS emulator for the mac, but
that a TOS emulator would be a good place to start to get free
development tools running on the mac.  This development environment
could be used to develop mac applications that didn't need to run
under this environment.  These mac programs would use the same
techniques I descriped above.  Similar techniques have also been
shown to work by MacMINIX.

So far I have Sozobon C running on my mac under my TOS emulator. It
is able to produce atari programs that can run under the emulator (or
a real atari I assume).  I haven't built any mac programs yet
because I have to port over a few more tools from my unix environment.

I will post what I have to an archive site when I have removed my
dependence on think-c libraries.  I would post it now except that
I got scared by the copyright discusions recently that pointed out
that think requires you to copyright your programs enought to
protect their libraries.  I don't want to copyright this work.

Brad
Newsgroups: comp.sys.mac.programmer,comp.sys.atari.st.tech
From: Don Lee <DL10@cornell.edu>
Subject: Re: Mac C Prog. Primer
X-Xxmessage-Id: <A76DDEC83001EC36@cu-dialup-0212.cit.cornell.edu>
X-Xxdate: Mon, 4 Jan 93 12: 32:08 GMT
Nntp-Posting-User: dl10@cornell.edu
Organization: Cornell Information Technologies
X-Useragent: Nuntius v1.1.1d16
Date: Mon, 4 Jan 1993 17:31:01 GMT

In article <C0BrL3.HxC@news.cso.uiuc.edu> Daniel X Pape, dpape@imlab writes:
>Ok -- I have this book (volume one, 2nd edition) and I am working out the
>examples. I have typed in the examples for EventTracker and EventTrigger
>EXACTLY ( I have even had others proofread it for me) and although
>EventTracker seems to work, EventTrigger won't. Has anyone else out there
>bought this book and done these two examples and gotten them to work?
>
>In fact are there any brave souls who want to mess around and I could mail 
>them the typed in source code, and they could try to get them to work?
>
>The success of the EventTrigger example is not essential to my finishing the
>book, but it would be nice to get this first AppleEvents example working.
>
>Hey-- I wonder if Dave Mark and Cartwright Reed actually read this group.
>Maybe they could figure out what I'm doing wrong :)

The problem is that the book neglects to mention that you need to set the 
HighLevel Event Aware flag (under Set Project Type - Size Flags) in the
Event Trigger project.

I had the exact same problem and Dave Mark (who can be reached on
Compuserve) was extremely helpful.

There are other minor problems with several other projects as well -
I don't recall them off hand, but perhaps I will make and post a list.

Don Lee (DL10@cornell.edu)
Newsgroups: comp.sys.mac.programmer
From: mrhoten@Xenon.Stanford.EDU (Matthew Rhoten)
Subject: Re: Why does BinHex exist?
Organization: CS Department, Stanford University, California, USA
Date:  7 Jan 93 22:00:36 GMT

howard@netcom.com (Howard Berkey) writes:

>C.  Doesn't seem to do anything
>
>I claim C because I have had many mac files stored on a UNIX file
>system for long periods of time, in MacBinary II, with no ill effects.

>It just occured to me that it may be neccary for uucp or bulkmail
>[...]

Binhex, like uuencode, has a primary function of making files suitable
for passage through anal-retentive mailers that like none of: long
lines, binary characters, huge files.

Try mailing a MacBinary II file cross-country and I think you'll see
what I mean.

 -matt
-- 
Matthew Rhoten | mrhoten@cs.stanford.edu | m_rhoten@leland.stanford.edu
"When Adam and Eve first saw each other, that's when the blues started."
 -John Lee Hooker
From: jimc@tau-ceti.isc-br.com (Jim Cathey)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Sozobon C - a free C for the Mac, too?
Date: 5 Jan 93 21:20:07 GMT
Organization: ISC - Bunker Ramo, Spokane, WA

In article <1992Dec31.134136.24364@alw.nih.gov> fixer@faxcsl.dcrt.nih.gov writes:
>Remember, too, that at a purely practical level, arithmetic involving 16-bit
>values is faster than arithmetic using 32-bit values, so declaring things
>'short' whenever possible is also an efficient thing to do from an object-code
>standpoint.

Not, generally, if the int size is 32 bits, which is one of my big
peeves about 32-bit int environments.  You can always say 'long' and get
an efficient long math construct in a 16-bit int environment, but using
the converse _still_ gets you a long math construct, not a short one!  Most
32-bit int environment programmers are pretty sloppy about data sizing,
and whine when the 16-bit int compiler punishes them for their laxity. 

-- 
+----------------+
! II      CCCCCC !  Jim Cathey
! II  SSSSCC     !  ISC-Bunker Ramo
! II      CC     !  TAF-C8;  Spokane, WA  99220
! IISSSS  CC     !  UUCP: uunet!isc-br!jimc (jimc@isc-br.isc-br.com)
! II      CCCCCC !  (509) 927-5757
+----------------+
			One Design to rule them all; one Design to find them.
			One Design to bring them all and in the darkness bind
			them.  In the land of Mediocrity where the PC's lie.
Newsgroups: comp.sys.mac.programmer,comp.sys.atari.st.tech
From: healy@nosc.mil (Mike Healy)
Subject: Re: Sozobon (or other free C's): would this strategy work?
Organization: Naval Ocean Systems Center, San Diego
Distribution: comp
Date: Tue, 5 Jan 1993 17:22:19 GMT


I'm sure that the FSF's opposition of Apple's propensity to lawsuits
to stifle competition might also be a factor in there being no Mac
port of gcc :-) 

Mike

healy@nosc.mil
From: mikeh@kralizec.zeta.org.au (Michael Hore)
Newsgroups: comp.sys.mac.programmer
Subject: Re: FORTH for the Macintosh
Date: 8 Jan 1993 20:29:45 +1100
Organization: Kralizec Dialup Unix Sydney: +61-2-837-1183 V.42bis
NNTP-Posting-Host: kralizec.zeta.org.au


Peter Anderson writes:
>Is there anybody who could give me some details on FORTH for the Mac.  Views
>about particular products and details of suppliers would be much appreciated.
>

Yes, CSI is certainly still around, and still supporting MacForth.
I believe that's the only commercial Forth left for the Mac.

You might also like to have a look at Mops or Yerk.  They are both
offshoots of Neon, and are thus OOP, but based on a fairly standard
Forth model.  Mops compiles native code, and is very speedy.
They are public domain, but have extensive documentation.
They are available for ftp from oddjob.uchicago.edu.

Seeing you're in oz, you could also get Mops from me by disk if you
give me a snail-mail address.  (Yes, I'm the author.)  That will save
you a very long download and give you the latest version
of the manual, which I've been adding to voluminously lately.  I
give support via email.

--------------------------------------------------------
Mike Hore        Internet:    mikeh@kralizec.zeta.org.au
From: linnoise@bigboy (LN)
Newsgroups: comp.sys.mac.programmer
Subject: Help! Need LaserWriterIInx postscript cmds
Date: 8 Jan 93 01:03:53 GMT
Organization: Temple University

My LaserWriter IInx isn't recognizing postscript commands anymore.  Please
email me if you know how I can reset the printer to factory defaults.  I
think the OPTIONs number was accidently set to 3.  The test page comes up
fine in Diablo and Postscript mode but I can currently only print in the
Diablo daisywheel emulation mode.  Thanks in advance.


--
---linnoise@129.32.32.98  My opinions are strictly those of my own.
Newsgroups: comp.sys.mac.programmer
From: ttak@ellis.uchicago.edu (toki  takeuchi)
Subject: Easiest way to update Modification Date?  etco
Reply-To: ttak@midway.uchicago.edu
Organization: University of Chicago
Date: Wed, 13 Jan 1993 04:22:35 GMT

Aftering calling HSetFInfo, I want to change the modification date of
the file/folder.  Right now, I'm doing this using PBHSetFInfo.
I'd rather use a high-level routine.  Is it possible?
Is PBHSetFInfo the only way, without opening and closing the data fork?

Thanks (please respond directly if possible).

Kenji Takeuchi
From: kpw105@huxley.anu.edu.au (Ken Wessen)
Newsgroups: comp.sys.mac.programmer
Subject: A short question on MPW scripting
Followup-To: comp.sys.mac.programmer
Date: 4 Jan 1993 22:39:33 GMT
Organization: Theoretical Physics, Australian National University
Distribution: world
NNTP-Posting-Host: 150.203.15.19

Hello.
I am new to MPW scripting, and am having a problem doing something that
seems like it should be quite easy.  What I require is to find a completely
blank line both above and below the current insertion point, and select
everything in between.
I tried using
find \o[La-zA-Z0-9d\%]\J:J/o[La-zA-Z0-9d\%]/
where o=option 8, L=option L, J=option-j and d=option d,
but this didnt work.  Furthermore, the blank line definition is not
satisfactory and I dont really want to extend it to include [not list of
all possible characters].  Using a wild card [option L option x] gave
results I didn't really understand, but I thought it should have just
matched a line with nothing but a return.  Any help would be greatly
appreciated.

Thanks, 
Ken.

p.s. Is there a script or tool floating around somewhere that will word
wrap a selection of text?
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Curves in QuickDraw GX
Date: 4 Jan 93 11:26:10 GMT
Organization: Royal Institute of Technology, Stockholm, Sweden

In <1992Dec31.224923.15838@eng.umd.edu> russotto@eng.umd.edu (Matthew T. Russotto) writes:

>>Well, concerning a PowerPC port it makes sense, because asm is no-no
>>or 'if-you-really-need-it' option on this platform.

>Uhhh.... why?

Because you don't know how the compiler will schedule instructions
and use condition code sets. Note the s. Computers today are not
what they used to be; what we see now is a more and more complex
interaction between compiler, libraries and hardware; you really
need machines to keep track of getting it all right!

If you would want to write a context-free assembly portion, you
would have to surround it by several (5 on each side?) NOP
instructions; and then would degrade the performance of that
asm{} by quite a bit...

Cheers,

						/ h+

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

 -- I don't fear death, it's dying that scares me.
From: mkelly@mystix.cs.uoregon.edu (Michael A. Kelly)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Locating someone on AppleLink (from the Internet)
Date: 4 Jan 93 20:53:07 GMT
Article-I.D.: cs.1993Jan4.205307.667
Organization: High Risk Ventures

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?

I changed the subject line to draw more attention - most people might assume
you were asking the really stupid question "How do I locate someone on
AppleLink from within AppleLink?"

Anyways, I would like the answer to this also.  I suspect it isn't possible.

Later,

Mike.
-- 
_____________________________________________________________________________
Michael A. Kelly                                               Senior Partner
mkelly@cs.uoregon.edu                                      High Risk Ventures
_____________________________________________________________________________
Newsgroups: comp.sys.mac.programmer
Subject: Offscreen PixMaps: dumb question
From: jomar@otago.ac.nz (John Marshall)
Date: 12 Jan 93 11:33:45 +1300
Organization: University of Otago, Dunedin, New Zealand

Sorry to ask such a dumb question, but here goes...

I am writing a small picture viewer for yet another totally unknown local
file format (and for my own learning).  Anyhow, surprisingly enough, I want
to decode the file into an offscreen (24-bit) pixmap and render that into
the window whenever it needs updating.  Translated into Mac speak, it would
seem that I can just allocate an offscreen PixMap and use CopyBits to put it
in the window.

However, I've read IM IV (I can be System 7 only if I want) and been
horrified by the incomprehensible talk of Offscreen Graphics Worlds and
Offscreen CPorts and so on.

So any advice on whether I can just PixMap 'n' CopyBits or not, and maybe
on books to read would be appreciated.

Thanks,
John Marshall   (jomar@otago.ac.nz)
From: Tim Larkin <tsl1@cornell.edu>
Newsgroups: comp.sys.mac.programmer
Subject: Many items, one TERecord?
Date: 12 Jan 1993 16:17:20 GMT
Organization: Cornell University
Distribution: world
NNTP-Posting-Host: 128.253.27.134
X-UserAgent: Nuntius v1.1.1d7
X-XXDate: Tue, 12 Jan 93 16:24:29 GMT

IM says that if you have a window with many discrete, editable items
(e.g. 
a spreadsheet), you can use a single TERecord for them all. The Dialog 
manager does this for its editable items. IM mentions using TESetText to 
set the text for each item as it becomes editable. However, the TERec
must 
have to be changed in other ways. Certainly the Rects must be changed. 

Has anyone who has used this technique tell me which fields in the TERec 
need to be changed?


Tim Larkin
Federal Nutrition Laboratory
Tower Road
Ithaca, New York
tsl1@cornell.edu
607-255-7008
From: noah@apple.com (Noah Price)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Duplicate Object in Think C?
Date: 7 Jan 93 01:03:21 GMT
Followup-To: comp.sys.mac.programmer
Organization: (not the opinions of) Apple Computer, Inc.

In article <1993Jan6.084330.7697@netcom.com>, mspace@netcom.com (Brian
Hall) wrote:
> You would want to copy the dat itself in case you end up disposing the
> object.  If you have two copies of an object (that have a handle as
> instance data) then disposing the first object will leave a "dangling
> handle" in the second object - the handle will not be NULL, but it won't
> be pointing to anything you would want it to!

If you don't want two copies of the data, though, you could have one object
"own" the data.  For example, CArrayPane does something like this for its
array.  Only the "owner" disposes of the data.

Also, using ForgetObject and ForgetHandle helps, since they NULL the handle
rather than leaving it randomly dangling.  Then you can check for a NULL
handle before using it to make sure it's valid.

noah

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
noah@apple.com                                 Macintosh Hardware Design
...!{sun,decwrl}!apple!noah   (not the opinions of) Apple Computer, Inc.
Organization: Central Michigan University
Date: Wednesday, 6 Jan 1993 09:30:21 EST
From: Robert A. Chaffer <3IU4TOB@CMUVM.CSV.CMICH.EDU>
Newsgroups: comp.sys.mac.programmer
Subject: System zone is damaged (Think Pascal)

We have just started experimenting with the Think Pascal compiler. Frequently,
 but not always, when a program is compiled and run we get the following
dialog message (in dialog with the Pascal bug icon) "The system zone is
damaged. Proceed with caution." This might appear after every step if we
step through the program. It seems that, at other times, the program will
work without error. We have not been able to figure out what the system zone
is, or how to "proceed with caution." The programs being run are demo
programs that come with Think Pascal. The program is being run on a Mac Plus
w 2.5M, sys 6.07, on a Silverling partition of a 40M HD. Few inits
(Disinfectant and some of the Symantic package).
Any advice or help would be appreciated.
Newsgroups: comp.sys.mac.programmer
From: derosa@rtsg.mot.com (John DeRosa)
Subject: Phone Number for APDA
Organization: Motorola Inc., Cellular Infrastructure Group
Date: Thu, 7 Jan 1993 22:11:07 GMT

Does anyone have the phone number for the Apple
Programmers Development Association?  I want to
order some of their QuickTime tools.  Please email
soonest.

Thanks, John 

-- 
=  Enjoy!          John DeRosa, Motorola, Inc, ESMR Development  =
=  thanks          derosa@ssd.comm.mot.com                       =
=  a 10^6          N1111@applelink.apple.com                     =
From: sainaney@unixg.ubc.ca (Narayan R. Sainaney)
Newsgroups: comp.sys.mac.programmer
Subject: Re: protection == !piracy
Date: 8 Jan 1993 21:44:41 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
Distribution: world
NNTP-Posting-Host: unixg.ubc.ca

	RE: Do not hassle the customer (piracy)

	Well, firstly, the customer is only hasseled IF a pirate copy
of the program is seen in circulation that originated from that customer
(Trace serial number). All commercial programs I have come across (regardless
of the company) have a method to identify the purchacer. Now are you saying
that a software company, should it come across a pirate copy of it's program,
would NOT attempt to trace the customer and "hassel" him/her (Be it through   
legal channels or black listing the customer or something)??

	There is no doubt that any software company SHOULD take action
if a pirate copy of its program is found. If they didn't, then that
copyright/legal notice that comes with commercial software (And that they
paid a hefty sum to the lawyers for) would be brought to the level of
garbage.

	I however do agree...putting a list of names (or mug-shots) of
offenders in future releases of the software is not the best of ideas =).
But if a good idea was out there, we would not be wasting time discussing/
looking for one here...

	Finally, technical ristrictions to copying would go against the
primary role of computers (to enable the fast and free (sometimes) exchange
of information)...A software/legal option is the best. Actually, a legal
option is probably the best. Robbing a bank is illegal and the police
go all out to apprehend robbers. Few people rob banks (Comparitively =).
Software piracy is illegal. The police/software companies do not go all out
to apprehend violators. There are many software pirates with the result...
I don't mean to sound pessimestic but people do not always do the "moral"
thing...particularly when money is involved and when the chances of getting
caught are slim...(percentage wise)     

	And finally, I ask you...if a pirate copy exists, whose fault is it?
The guy who gives it or the guy who gets it? Well, when the guy get's it,
chances are it'll spread so fast that the entire network would look
like a binary tree of a 1000+ data database =)

sainaney@unixg.ubc.ca