HDTenEightyP/NetNews huggingface dataset:
From: akhiani@ricks.enet.dec.com (Homayoon Akhiani)
Subject: Quicktime programming info
Reply-To: akhiani@ricks.enet.dec.com (Homayoon Akhiani)
Organization: Digital Equipment Corporation
Date: Tue, 12 Jan 1993 23:27:35 GMT


I am looking for information regarding modifying a QT movie time line(or 
what ever they call it) 

Does anyone have a pointer to any source code example?

My problem basically is that I have a RasterOps 24STV, I can create QT movies
but the fps is not high enough. However, I can do single frame capture.
But I have too adjust the movie's time.


--
-------------------------------------------------------------------------------
Homayoon Akhiani                               "Turning Ideas into ... Reality"
Email: akhiani@ricks.enet.dec.com     "The words are mine, and not my employer"
-------------------------------------------------------------------------------
Newsgroups: comp.sys.mac.programmer,comp.sys.mac.oop.macapp3,comp.sys.mac.oop.misc
From: bowman@reed.edu (BoBolicious)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Sozobon C - a free C for the Mac, too?
Date: 4 Jan 93 20:20:40 GMT
Article-I.D.: reed.1993Jan4.202040.26524
Organization: Reed College, Portland, OR

In article <C0AKGC.IsJ@news.cso.uiuc.edu> cole@alexia.lis.uiuc.edu (Sandra Stewart-Cole) writes:
>The Mac int standard is 16-bit ints and 32-bit longs. If you need to declare an
>int and get 32 bits, Think C has a switch  for that, but it should not ever be
>needed on the Mac specificly. I'm not really sure why anyone would ever need 
>that unles one is porting in code from a system that always uses 32-bit ints, 
>since on the Mac you have a standard long of 32 bits.

Like, say, MPW C?

I *guess* you could talk about a "Mac int standard", but what's really going
on is that Pascal uses 16-bit ints.  Most C compilers these days use 32-bit
ints.  Personally, I think ints are stupid to use, because of this uncertainty
as to what is meant; far better to specifically use shorts & longs.

cheers,
bobo              In seeking the unattainable,
bowman@reed.edu            simplicity only gets in the way.
Eternal nothingness is fine if you happen to be dressed for it. - Woody
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: QuickDraw: Why Can't it Mirror Right?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Wed, 6 Jan 1993 14:34:10 GMT

In <1993Jan5.191918.12324@fsl.noaa.gov> urban@yoda.fsl.noaa.gov (Art Urban) writes:

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

Maybe because the pen has a physical size, and its centre is
not placed on the grid intersection? Try setting the pen size
(1,0) or (0,1) and see what happens.

Cheers,

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

   Cookie Jar: Vanilla Yoghurt with Crushed Oreos.
Newsgroups: comp.sys.mac.programmer
From: Kevin W. Ramer <ramer@nrc-iris.nrc.uab.edu>
Subject: MPW or perl script makedepend
Organization: Neurobiology Research Center
X-Useragent: Nuntius v1.1
Date: Wed, 6 Jan 1993 19:01:49 GMT

Friends,
Do any of you have an MPW or perl script that can generate
dependencies as does unix 'makedepend'.  I've got a MPW
script that makes takes a crack at it.  

However, I'd like it to be able to ensure that all clients
of my c++ classes are included in the dependencies.

Please respond to:
 
ramer@nrc-iris.nrc.uab.edu
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: different font in a listbox?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 5 Jan 1993 20:03:08 GMT

In <C0E41B.1GC.2@cs.cmu.edu> soetji+@G.GP.CS.CMU.EDU (Soetjianto) writes:

>Is it possible to change the font and its alignment of a listbox?

Well, on the Mac they're called List Manager Lists, not
ListBoxes, but Yes. All you have to do is to write your
own LDEF; that's a very simple task.

The resource ID of the LDEF should be passed to LNew.

Cheers,

							/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   This signature is kept shorter than 4 lines in the interests of UseNet
   S/N ratio.
Newsgroups: comp.sys.mac.programmer,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
From: obi@finnbogi.ocs.com (Obi Thomas)
Subject: Re: Stallman and friends (Wrong Group!!!!!)
Reply-To: obi@finnbogi.ocs.com
Organization: Online Computer Systems, Inc.
Date: Fri, 8 Jan 1993 07:23:53 GMT

In article <C0IACr.AM4@panix.com>, rmah@panix.com (Robert Mah) writes:
> I for one am glad that this discussion is here.

So am I. This thread is not the usual flamefest discussion -- I have
actually learned something about computer software patents, licensing law,
the FSF copyleft, and so on.
From: chris_russo@gateway.qm.apple.com (Christopher Russo)
Newsgroups: comp.sys.mac.programmer
Subject: Re: How to get color I want when drawing directly to screen
Date: 12 Jan 93 03:10:24 GMT
Organization: Apple

In article <1993Jan8.145036.21943@rtsg.mot.com> Michael Wolf,
wolfmc@rtsg.mot.com writes:
>I am attempting to develop an arcade type game.  So I take
over the whole
>screen.  I have my images in an offscreen port.
>
>When I draw directly from the offscreen port to the devices
screen
>(ie:  directly copying data from oofscreen port to devices
pixmap) the colors
>are not what I had wanted.  A copybits from the offscreen port
to my front
>most window gives me my image with correct colors.

Well the problem is that the clut on the device(screen) you're
drawing to
is different than your bit image offscreen.  So, what you have
to do is
set that devices color entries to the ones you want. Load in
the clut you
originally drew your sprites with, get the device of the screen
your
using with GetMaxDevice(), then use the routine
SetEntries(start, count,
&ctspecarray); <IM V or VI>  Now, when you blast those pixels
to your screen,
they'll appear to be the right colors. 

I suffered through most of the headaches for this problem a
while back.
Let me know if you need more, I could through together some
source.
-----Christopher Russo
----- I admire a clever .sig message.  Wish I had one. <sigh>
----- day 408.974.6070
Newsgroups: comp.sys.mac.programmer
From: johnston@me.udel.edu (Bill Johnston)
Subject: Re: protection == !piracy
Organization: University of Delaware
Date: Thu, 7 Jan 1993 01:29:16 GMT

In article <1993Jan6.202441.19979@cs.cornell.edu> dawson@cs.cornell.edu (Dawson Dean) writes:
>
>I know I really shouldn't get into this, but.....

You're right about that one ...

>   Look, we all know that software piracy is wrong. What I want
>to see is manufacturers try to put some more effort into
>protecting their software. NOTE: I'm NOT talking about disk based
>copy protection, but companies should implement things like unique
>key files which the app registers by broadcasting on the net. The

All I can say is that if you do it and it gets in my face in
the smallest way, I won't buy your product now or in the future, 
and I'll damn you to hell if I am ever asked to recommend it. 

An early beta of a product we both know about included just 
such a net-broadcasting feature, and it cost me two days work
before I figured out why I had to reboot A/UX every time I
"es'd" out of one of its crashes.  Evidentally it had "registered"
itself on my one-Mac, one-printer AppleTalk net and didn't 
have a way to clean up after itself unless the program was 
quit from properly.  That's an option I don't always have, 
regardless of whether it's my app or yours that sends me 
into MacsBug.

If you worry about people ripping you off, too bad.  My money
is going to spent on companies who are willing to trust me
at least as much as I trust them.  Especially when I send 
"Rock-Solid" v.1.0 money that performs as advertised and 
get back software that ...  you can figure out the rest.

I'm not knocking the software revision process - I don't 
see a reasonable alternative.  What I am saying is that 
in the "trust" part of the equation cuts both ways.
I've been pretty patient with the commercial software 
companies that I've dealt with, and the last thing I'm 
in the mood for is a company that is going to decide that 
now it can't trust my word when I agree to its license.
-- 
-- Bill Johnston (johnston@me.udel.edu)
-- 38 Chambers Street; Newark, DE 19711; (302)368-1949
From: chuck@gte.com (Chuck Hoffman)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Where can I get MacsBug  ?
Date: 8 Jan 93 13:42:23 GMT
Followup-To: comp.sys.mac.programmer
Organization: GTE Laboratories

In article <C0I1Hu.8Kt@cs.bham.ac.uk>, jsd@cs.bham.ac.uk (Jetinder Singh)
wrote:
> 
> I'm looking for the MacsBug debugger to use on my  Quadra 700, where I'm
> using Think C 5.04. Preferably in  the United Kingdom. Does anyone know
> of where I get it and the manuals ?
> 

You can get the MacsBug program from a variety of sources, including the
developer's CD, and archive sites.  If you want the manual, though, you
need to order from Apple Programmers and Developers Association (APDA). 
The current version is 6.2.2.  Here's the info from the November 1992 APDA
catalog (okay, "catalogue" in the U.K.!):

Manual and diskette, Product number R0064LL/C, $34.95
Manual only, Product number R0063LL/A, $22.95
Diskette only, Product number R0065LL/C, $15.00

Telephone numbers (U.S. country code for all):
U.S.  800-282-2732
Canada  800-637-0029
Other international  716-871-6555
FAX  716-871-6511

Chuck Hoffman
chuck@gte.com
GTE Laboratories, Waltham, Massachusetts, USA
(617) 466-2131
=====================================
I'm not sure why we're here, but I am sure that while we're here we're
supposed to help each other.
=====================================
Newsgroups: comp.sys.mac.programmer
From: wondertr@fraser.sfu.ca (wondertree learning center)
Subject: Re: Think Ref 2.0
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Fri, 8 Jan 1993 17:26:31 GMT

The upgrade to to Think Ref sounds great... my big question is
does 2.0 allow one to copy the sample code out of the program... 1.0 didn't???

This would be a great help to us novices

TED

Newsgroups: comp.sys.mac.programmer
From: larrym@mtxinu.COM (Larry Meyer)
Subject: Re: List Manager help wanted
Organization: mt Xinu, Berkeley, CA
Date: Fri, 8 Jan 93 23:38:33 GMT

In article <D2150096.mur2al@sproul.sproul.com> Sproul@sproul.sproul.com (Mark Sproul) writes:
>
>In article <1993Jan4.061905.14455@midway.uchicago.edu> (comp.sys.mac.programmer), hd12@ellis.uchicago.edu writes:
>One hint, I just discovered this morning that if the text is longer
>than the entire width of the window, [ListMgr] will condense the type to
>make it fit.
>

Wow, and I though I was just doing something stupid. I encountered
this condensing "feature" recently, and I haven't been able to the 
goddamn thing off. (No using a monospace font does not work).
As far as I can tell, this condensing only occurs when
you use Lists in a Modal Dialog (leading me to suspect that this
is some hack introduced to aid in displaying long file names
in the StdFileDlog, or something like that).

The reason I want it off is that I'm displaying columnar data in a
List, and when ListMgr condenses it, it throws off alignment with
column headers (Yeah, I know I can put the data into individual
cells, but its not worth the effort in this situation).

Does anyone out there know how to turn off this "feature"?
-- 
/----------------------------------------------------
Larry Meyer Mac/Unix Programmer @ Xinet, Berkeley CA
larrym@xinet.com (ask me about max<->unix stuff)
-----------------------------------------------------/
From: bowman@reed.edu (BoBolicious)
Newsgroups: comp.sys.mac.programmer
Subject: Re: Why does BinHex exist?
Date: 7 Jan 93 21:58:43 GMT
Organization: Reed College, Portland, OR

In article <1993Jan7.210159.26183@netcom.com> howard@netcom.com (Howard Berkey) writes:
>Periodically people post asking what BinHex is, or where to get it,
>etc... What I want to know is, Why is it really necessary?  It:
>
>A.  Makes the files larger than a binary format

True.

>B.  Is annoying to have to convert

False.  Stuffit Converter makes it very easy.

>C.  Doesn't seem to do anything

False.

>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.
>This has proven true on various Suns, 2 RS-6000's, and 2 HP-9000's.
>It may be that some machines will damage mac files if they aren't
>binhexed, and thus it would be neccecary in that case.  It just
>occured to me that it may be neccary for uucp or bulkmail, but I'm not
>sure.  Can someone enlighten me on this subject?  I know I'm missing
>something. 

Mail on the internet, at least in the u.s., can only handle 7-bit bytes.
Binhex converts 8 bit bytes to 7 bit bytes.  Thus it makes the files slightly
larger...in principle, 1/8 bigger.

chores,
bobo              In seeking the unattainable,
bowman@reed.edu            simplicity only gets in the way.
"On Monday, numbers floated everywhere, and the world was full of 
approximations."  -- Spencer Heinz, _The Oregonian_, 1/5/93
Newsgroups: comp.sys.mac.programmer
From: fixer@faxcsl.dcrt.nih.gov (Chris Clinging Desperately Tate)
Subject: Re: SFGetFile's directory after an Open Event
Reply-To: fixer@faxcsl.dcrt.nih.gov
Organization: Computer Systems Laboratory, DCRT, NIH
Date: Tue, 5 Jan 1993 15:36:40 GMT

Personally, I prefer to have the Standard File directory set when I open a
file; imagine the following (common, at least in my experience) scenario:

   Drag a file to ResEdit
   In ResEdit, copy a few resources to the clipboard
   Again in ResEdit, select "File/New"

ResEdit hasn't changed the "default" directory, so the Standard File box pops
up pointing to ResEdit's application folder, which I personally find pretty
useless.

I'd imagine that when opening a document, altering it, and choosing "Save
As...", it's more common to place the new document based on where the original
was, not on where the application resides.  It'd be possible to maintain a
record of each open document resides, and monkey with the SF globals to point
to the appropriate folders depending on which doc is being "Save As..."'d, but
that seems a bit too intrusive....

It seems this is a tricky question.  For example (just to play devil's advocate
a bit), should the app redirect the SF globals at every 'odoc', or just for
documents that were double-clicked to launch the app?  If you change it at
every 'odoc,' you interfere with people who want to open multiple documents in
succession, but save them all to the same place.  If you just change it at
startup, you take care of that problem, but inconvenience people who want to
save modified documents in the same locations as the originals!

Messy.

------------------------------------------------------------------------------
Christopher Tate             | Return of the CryptoSig (tm):
Management Systems Designers |    LR KMBVALMH ZKM HD CNDMH, LV CLYY.  LR
                             |    MDVALMH AKT HDMU CNDMH, BDX'QU DQUNYDDEUJ
fixer@faxcsl.dcrt.nih.gov    |    TDIUVALMH.
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Re: Why the Piracy? Here's why...
Organization: University of Delaware
Date: Tue, 5 Jan 1993 05:54:00 GMT

In article <noah-040193095748@noah.apple.com> noah@apple.com (Noah Price) writes:
>In article <1992Dec18.124705.11418@tdb.uu.se>, bredell@tdb.uu.se (Mats
>Bredell) wrote:
>> Hm ... I can remember the good old days when I was still a student. We used to
>> pirate a lot of software. Of course, no one of us could afford buying MS Word
>> or Excel or something like that, so I don't think the software companies lost
>> any money on this.

>Yah, people use that argument for shoplifting as well... I picked up MS
>Word at the educational price of about $99 when I was in school.  Just a
>little more than the price of two textbooks, and useful for a heck of a lot
>more classes!

There's a crucial difference between piracy and shoplifting.  With
shoplifting, you are stealing an item which cost money to produce by
itself.  With piracy, the software developer had the costs of developing
the product, but you're not actually stealing a unit which cost money to
be produced by itself.

If you don't make this distinction, you would have to claim that making a
copy of an application which your friend bought is morally identical to
walking into a store and stealing a shrink-wrapped software package off the
shelf.  The former act doesn't actually *cost* the developer, distributor,
and retailer anything; with the latter, there are all kinds of packaging,
printing, and retail costs which the companies actually lose.  (A similar
distinction could be made between sneaking into a movie theater vs.
stealing popcorn: both are wrong, but they are different kinds of acts.)

I am not condoning piracy. I strongly feel that piracy is wrong (as
someone who's working on saleable software, I have an interest in
discouraging piracy).  Software manufacturers have a right to be
recompensed when people use the products which the manufacturers paid to
develop.  But accepting the immorality of piracy does not make piracy and
shoplifting morally equivalent.

--Kurisuto
From: Sproul@sproul.sproul.com (Mark Sproul)
Newsgroups: comp.sys.mac.programmer
Subject: Re: List Manager help wanted
Date: 5 Jan 93 16:48:10 GMT
Reply-To: Sproul@sproul.sproul.com (Mark Sproul)
Organization: Sproul Consulting
X-Mailer: uAccess - Macintosh Release: 1.6v1


In article <1993Jan4.061905.14455@midway.uchicago.edu> (comp.sys.mac.programmer), hd12@ellis.uchicago.edu writes:
> I like to creat a list containing file names, size, date etc. Each entry
> should be in a single cell. After I put file name in the cell using
> LSetCell, I have to add size, date etc. in the same cell. Although I can
> use LAddToCell to do that but that will make the size field not aligned
> vertically. Anyone know an elegent way to handle this? Thank you very much.
> 
> BTW. I am using Think C 5.0.3, have lots of trouble with C and Pascal strings.
> Suppose I have:    Str255 mystring;
> Use: mystring="\p Something "; doesn't work. How could I assign a string to the
> variable mystring?
> 

To do what you want, first BEFORE creating the list, set the font
for that list to Monoco.  This will set it to a mono-space font. 
Any other monospace font will work as well.

next, with the file name do the following

	Str255	fName;	//* i assume you have a Pascal file name
	char	lineBuf[128];



	PtoCstr(fName);
	sprintf(lineBuf, "%-32s", fName);	//* this will put the file
name left justfied in the string, padded with spaces, change the number
as you need.

	dataLen	= strlen(lineBuf);
	LSetCell(lineBuf,dataLen, ....etc

When you do your LAddToCell(), do it in similar manner.

One hint, I just discovered this morning that if the text is longer
than the entire width of the window, it will condense the type to
make it fit.

On your other question, as far as I know, Think C does not support,
	 mystring="\p Something ";

use
	strcpy(mystring, " Something ");
	CtoPstr(mystring);

or
	sprintf(mystring, "\p Something ");

be sure to 
	#include <string.h>
	#include <stdio.h>
and Link ANSI

-----------------------------------------------------
Mark Sproul - KB2ICI - New Jersey
sproul@sproul.com
Newsgroups: comp.sys.mac.programmer
From: kurisuto@chopin.udel.edu (Sean J. Crist)
Subject: Re: different font in a listbox?
Organization: University of Delaware
Date: Tue, 5 Jan 1993 23:59:55 GMT

In article <1993Jan5.200308.14400@kth.se> d88-jwa@dront.nada.kth.se (Jon Wtte) writes:
>In <C0E41B.1GC.2@cs.cmu.edu> soetji+@G.GP.CS.CMU.EDU (Soetjianto) writes:

>>Is it possible to change the font and its alignment of a listbox?

>Well, on the Mac they're called List Manager Lists, not
>ListBoxes, but Yes. All you have to do is to write your
>own LDEF; that's a very simple task.

I'm pretty sure that the standard LDEF uses the font of the list's
grafPort at the time you called LNew.  It isn't necessary to write a whole
LDEF just to change the font of the standard one.

--Kurisuto
Newsgroups: comp.sys.mac.programmer
From: nagle@netcom.com (John Nagle)
Subject: Re: Why Control Segmentation?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Sun, 10 Jan 1993 18:48:22 GMT

       If you put all the code in one big resource, Disinfectant will run
out of memory when it scans the file.

					John Nagle
From: dowdy@apple.com (Tom Dowdy)
Newsgroups: comp.sys.mac.programmer
Subject: Re: 'Threads' package question
Date: 7 Jan 93 01:54:24 GMT
Followup-To: comp.sys.mac.programmer
Organization: Apple Computer, Inc.

In article <1993Jan2.202522.1@fnalo.fnal.gov>, gwatts@fnalo.fnal.gov wrote:
> In article <1993Jan2.184916.18378@cc.umontreal.ca>, casgrain@ERE.UMontreal.CA (Casgrain Philippe) writes:
> > I would like to know what _is_ exactly the 'Threads' INIT (extension).
> > I believe it allows multi-threading programming.  Is this related to multi-
> > tasking?  Is there any sample code that I can look at to program (Pascal,
> > preferably)?  Is there any documentation available? (I have access to ETO).
> 
> Check out develop issue 6 and 7 -- they have the articles describing the
> threads package.  You can get them off the develop cd, or in the apple ftp
> site, under dts/doc/develop.  It has some sample code there as well as the
> text of the article.

I should point out that if you don't know what threads are for - or
why you might want to use lightweight tasks within your application -
you may not be ready to use them.

Threads require some thought to use properly (ie, in a way which is
actually adding value to your application), and in many cases you can
quite simply structure your application so as to not need to use them
at all.  Almost all cases where they "need" to be used are when you
are relying on some body of code over which you have no control, and
which is not giving up time in a nice way.

So, in summary, don't use them just for the sake of using them - use
them because you really are sure they are needed.

 Tom Dowdy                 Internet:  dowdy@apple.COM
 Apple Computer MS:81KS    UUCP:      {sun,voder,amdahl,decwrl}!apple!dowdy
 20525 Mariani Ave         AppleLink: DOWDY1
 Cupertino, CA 95014       
 "The 'Ooh-Ah' Bird is so called because it lays square eggs."
Newsgroups: comp.sys.mac.programmer
From: d88-jwa@dront.nada.kth.se (Jon Wtte)
Subject: Re: foreground/background colors
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Fri, 8 Jan 1993 23:50:18 GMT

In <1993Jan08.171841.26689@eng.umd.edu> jlohn@eng.umd.edu (Jason D. Lohn) writes:

>As an experienced X-windows user, I really like being able to change
>the fg and bg colors of my windows.  Now I find myself using a mac
>w/system 7 nearly all the time, and I'd like to have the same
>capability.  I've tried to find a program (pd/commercial) that can do


Well, it's not easy.

You could try patching RGBForeColor & RGBBackColor, and substitute
the right values if the program passes white or black. You would
probably also have to deal with PMForeColor, and if you're unlucky,
ppats as well.

Oh, and probably patch SetPort too, and maybe OpenCPort, to do the
right thing when a port comes into focus, and when it's created
(i.e. check the fore/back colors, and substitute them if they are
black/white)

However, something tells me it ain't that easy. You have highlight
mode to consider for example...

Cheers,

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

   Nothing crashes like a Macintosh.
                     -- Guy Kawasaki
From: lhuynh@Bonnie.ICS.UCI.EDU (Thomas Huynh)
Subject: A record manager for the MAC
Newsgroups: comp.sys.mac.programmer
Date: 11 Jan 93 23:04:37 GMT

Hi,

We've been writing an application for Windows and we are ready
to port the application over to the Mac.  In the Windows version,
we are using NetWare Btrieve as our database engine.  It is pretty
much a record manager using B-tree to sort and search records.
I am wondering if there is a comparable package for the
Mac.  If so, please let me know.  It is best that the package provides
its own networking mechanism for storing and retrieving records.

Thanks.

--
Thomas Au
University of Cal, Irvine