home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-12-08 | 36.5 KB | 1,018 lines | [TEXT/R*ch] |
- alt.sources.mac digest #7-94 7/8/94
-
- Today's Contents:
-
- [!] administrivia
-
- [*] 3dcdef.cpt.hqx
- [*] battleship.cpt.hqx
- [*] cdicon.cpt.hqx
- [*] contours.cpt.hqx
- [*] energybeaver.cpt.hqx
- [*] genericlist.cpt.hqx
- [*] grayimage.cpt.hqx
- [*] loglib.cpt.hqx
- [*] menuslide.cpt.hqx
- [*] moviescroll.cpt.hqx
- [*] mungeimage.cpt.hqx
- [*] newbounce.cpt.hqx
- [*] newdisplay.cpt.hqx
- [*] newinterval.cpt.hqx
- [*] newmorse.cpt.hqx
- [*] newrae.cpt.hqx
- [*] newssplash.cpt.hqx
- [*] newstringart.cpt.hqx
- [*] plotmgr.cpt.hqx
- [*] rotateppc.cpt.hqx
- [*] terminal.cpt.hqx
- [*] username.cpt.hqx
- [*] uucode.cpt.hqx
-
- [#] bcd2float
- [#] blit2scrn
- [#] blitdouble
- [#] crc32b
- [#] cdremoteid
- [#] coderes
- [#] coderes2
- [#] controlstrip.h
- [#] controlstrip.p
- [#] convertcomments
- [#] dialogpict
- [#] drawellipse
- [#] dticons
- [#] enumstr
- [#] eyedrop
- [#] fasteryet
- [#] fsreadline
- [#] fsprefresh
- [#] getdinfo
- [#] getwdinfo
- [#] gxperspective
- [#] makepictfile
- [#] mkfoldicon
- [#] modalscrollc
- [#] modalscrollp
- [#] noforcequit
- [#] openresfile
- [#] pbparse
- [#] prefsp
- [#] regname
- [#] rotpsig2
- [#] savepict
- [#] stkframes
- [#] upppatch
-
- [!] Who's Who List
- [!] Archive organization
-
- The alt.sources.mac archive is at ftpbio.bgsu.edu
- (129.1.252.66) in the /ftp/pub/alt.sources.mac directory.
- Files listed with an [*] before them are in the main
- directory. Files listed with an [#] in front of them
- are in the /ftp/pub/alt.sources.mac/00snippet directory.
- Scripts are stored in the /ftp/pub/alt.sources.mac/scripts
- directory.
-
- Also stored at the archive site are the FAQs for the
- Mac newsgroups in the /ftp/pub directory. Postings to
- comp.sources.mac are archived in the /ftp/pub/comp.sources.mac
- directory. The alt.sources.mac digests are archived in the
- /ftp/pub/digests directory.
-
- The alt.sources.mac newsgroup is for the distribution of
- sources only.
-
- ************************************************************
-
- From: dnebing@andy.bgsu.edu (Dave Nebinger)
- Subject: Administrivia
-
- Welcome to the alt.sources.mac digest. Currently, I am
- the moderator of the archive. I thought I would post this
- message to show everyone what has been accumulating at the
- archive site.
-
- Thanks to all of those people who responded to the survey
- that went out concerning the state of the alt.sources.mac
- archive. All of the comments were good, and that makes me
- a happy camper!
-
- In the survey, I stated that the number of files has been
- growing steadily and that the size of the directories was
- getting difficult to manage. So I asked for some suggestions
- to segment the archive into a reasonable format. The best
- suggestion I got was to format the archive in volumes like
- the rest of the source groups do. The suggestions to segment
- the packages into types (applications,utils,etc.) gets kinda
- messy when you are dealing with those borderline cases, so
- I decided against that suggestion. Instead, I chose to
- segment the archive into volumes.
-
- So, that's what I have done. The volumes are separated
- corresponding to the digests that have been posted previously.
- So, as this is Digest #7, all of the packages listed below
- are in the /ftp/pub/alt.sources.mac/vol-07 directory.
-
- Snippets are handled a little differently, however. The
- snippets have been segmented, but not according to the
- digest numbers. I have segmented the snippets into volumes
- representing six months each. As this is the (about) seventh
- month in the life of the alt.sources.mac newsgroup, the
- snippets listed below are in the
- /ftp/pub/alt.sources.mac/snippets-v02 directory.
-
- I hope that this new arrangement won't be too confusing
- or hard to get used to.
-
-
- Any other suggestions are welcome and encouraged.
-
- Dave Nebinger (dnebing@andy.bgsu.edu)
-
- ************************************************************
-
- From: zig@wc.novell.com (Zig Zichterman)
- Subject: Re: 3D Controls?
-
- Here's the CDEF again. Same CDEF, but changed readme. I had a
- typo in my email address in the original readme.
-
- --Zig Zichterman
- ziggr@aol.com
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/3dcdef.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: Battleship2.1.c
-
- Battleship 2.1
- by Matthew Kavalauskas
-
- This is the source code for Battleship 2.1 for the Macintosh. It
- is done using THINK C version 5.0. If you make any
- improvements/changes, he would love to see them.
-
- He's at kaval@aol.com
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/battleship.cpt.hqx]
- ===============================================================
-
- From: peter@ncrpda.curtin.edu.au (Peter N Lewis)
- Subject: asm - CDIconKiller 1.0.0
-
- CDIconKiller 1.0.0 Copyright 1994 Quinn & Peter N Lewis
-
- Install this INIT to suppress custom icons on CD-ROM drives.
- This tends to speed up your CD-ROMs by a factor of about
- a zillion.
-
- Caveats
- Only works for Apple's CD-ROM driver.
- Works under System 6 :-)
-
- Warning: This program was written in 4 hours.
-
- Quinn <quinn@cs.uwa.edu.au>
- Peter N Lewis <peter.lewis@info.curtin.edu.au>
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/cdicon.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: Contours 1.0b (P)
-
- I had a request for this one, since I mentioned it, so I thought I'd put
- it here so anyone could snag it.
-
- It's supposed to draw 2D contours according to a raster file. But it
- came with no raster files, and I haven't waded through the manual to see
- how it's supposed to work.
-
- It's Pascal source, but came with no project. Get the .rsrc file out of
- the built ap. (new programers: Select the ap.(in the Finder), hit
- Comman-D, change copy's type to 'rsrc' and creator to 'RSED', open with
- ResEdit, dump 'CODE' and other non-project resources, quit ResEdit, save
- changes, rename to match project name.)
-
- Note: There are Contour applications in the Statistics1.cpt.hqx and
- Statistics4.cpt.hqx files at ftp mrcnext.cso.uiuc.edu /pub/mac, although
- no source. Maybe one is a later version of this (1988) one?
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/contours.cpt.hqx]
- ===============================================================
-
- From: tzs@u.washington.edu (Tim Smith)
- Subject: How to tell Energy Saver to turn the monitor on or off
-
- A few months ago, I spent a while disassembling Apple's Energy Saver
- control panel to figure out how it worked. I needed to know this
- because I wanted to make it work for me under A/UX. That effort was
- a success, allowing me to create an extension, Energy Beaver, that
- loads before Energy Saver under A/UX, and diddles a few things so
- that Energy Saver will be happy.
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/energybeaver.cpt.hqx]
- ===============================================================
-
- From: kppomaki@jeeves.uwaterloo.ca (Keith Pomakis)
- Subject: Generic List Library for C -- documentation
-
- Generic List Library
-
- by Keith Pomakis
- kppomaki@jeeves.uwaterloo.ca
-
- Spring, 1994
-
-
- **** Documentation ****
-
- PURPOSE AND HISTORY
-
- The basic data structures of lists, stacks and queues are fundamental to
- programming at almost every level. However, because of the nature of the C
- programming language, it is difficult to program a set of generic list
- functions without sacrificing simplicity. Therefore, C programmers often
- find themselves programming specialized list functions over and over again.
- This is not only a large waste of effort, but can also be the source of many
- errors since each individual implementation is often tested only
- haphazardly.
-
- After countless assignments and projects (both academic and personal) in
- which I found myself constantly rewriting the same list manipulation
- functions in slightly different contexts, I figured it was about time to
- take the effort and program an efficient, flexible, and easy-to-use library
- of generic list functions. And that is exactly what I did!
-
- It is my hope that, in distributing this library, others will be able to use
- what I've put together to increase their own programming productivity.
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/genericlist.cpt.hqx]
- ===============================================================
-
- [Moderator's note: Kiselyov posted thes to comp.sources.misc,
- but he states that it also compiles for the mac, so I included
- it in the archive.]
-
- From: oleg@ponder.csci.unt.edu (Kiselyov Oleg)
- Subject: v43i051: grayimage - C++ classlib for generic processing of grayscale images, Part01/05
-
- Submitted-by: oleg@ponder.csci.unt.edu (Kiselyov Oleg)
- Posting-number: Volume 43, Issue 51
- Archive-name: grayimage/part01
- Environment: C++, G++ 2.2.2+, Symantec 6.0.1+, Sun, HP, Mac, Sequent
-
- grayimage_classlib is a C++ class library to do a generic
- processing of grayscale images. It is one part of my image
- compression code I've been messing with for almost 3 years. This part
- is general enough to be of some interest to folks at large (I
- hope). It lets you do a variety of different operations on images,
- rectangular areas, etc: say, add two images, compute their "scalar
- product", modify pixel values over the entire image or some
- rectangular area of it in a _variety_ of ways, equalize the image
- histogram, stuff like that. One function, shift_clip_add(), does
- actually the filtration (convolution). Morphological filtration is
- implemented as well. I tried to make the code as optimal as I could
- think of (without getting into assembly -:). The package can
- read/write XWD, Group G TIFF and PGM file formats; actually, the
- package understands which file format it's asked to read and selects
- the appropriate method automatically. I demonstrated pieces at Data
- Compression Conferences, and some people suggested me submit it into
- the public domain.
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/grayimage.cpt.hqx]
- ===============================================================
-
- From: dnebing@andy.bgsu.edu (Dave Nebinger)
- Subject: Log file routines
-
- Here's a nice little, tiny, documented chunk of code for handling
- the creation and use of log files in your project. It works great
- for those hard to debug items like bg-apps, inits, etc.
-
- There are actually two different items here. The first is a bugfix
- for the LogLib library that came out earlier. The second item is
- new. It is a component which implements the logging functions.
-
- For those of you that don't know what a component is, here's a quick
- and dirty explanation. Components are tiny extensions which the
- Component Manager takes care of. All you, as a programmer, have to
- do is open the component and by using the value returned by the
- Component Manager you can use the library just like it was part of
- your application, yet the code doesn't exist in your app. The
- Component Manager is part of QuickTime, AppleScript, and (supposedly)
- System 7.1 and up.
-
- The code for the component and a test application showing how to use
- the component is included. Also included are compiled versions of
- both so you can see how the component works (drop the component in
- the extension folder and restart before using the application).
-
- The component is a full component which handles all of the Component
- Manager functions. It also will draw it's own icon at startup time
- (Wow, cool! ;)
-
- As part of the test application, there is also files called
- "Libsprintf.c/h" which are a standalone sprintf code (no ANSI/ANSI-small
- libs necessary!). Read the beginning of the file for more info.
-
- The code was written/compiled using Think C 7.0.3 with both the old headers
- and the new universal headers. I took advantage of the fact that in
- "Mac #includes.c" for the universal headers there is a constant defined as
- NEW_HEADERS_AVAILABLE. If you are using the universal headers with a
- different compiler that doesn't define this constant, just add the following
- line somewhere: #define NEW_HEADERS_AVAILABLE 1. If you don't have
- the universal headers, you don't have anything to worry about.
-
- This is all copyrighted to me (Dave Nebinger). Feel free to email me with
- your questions and comments. Also drop me a line if you plan to use
- the routines (I am just curious ;-)
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/loglib.cpt.hqx]
- ===============================================================
-
- From: hughf@cs.anu.edu.au (Hugh Fisher)
- Subject: Sliding the menu bar
-
- This is a little program I wrote to demonstrate a user interface idea, namely
- sliding the menu bar when switching applications.
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/menuslide.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: MovieScroll (C)
-
- I little thing I tossed together in response to requests on c.s.m.p. for
- source that scrolls text like a movie credits thing.
-
- This does it, and does it nicely, but it's over a white TE background.
- If anyone wants to modify and repost, with a fade-out/fade-in, and scroll
- colored, styled text over a black background - before I do - please do.
-
- In the meantime, this does the scroll. I pasted in the styled text from
- a word processor (into the 'styl' res.). I tried it in 1bit mode and it
- was okay. I haven't tried it on any other machine that my LC. Doesn't
- really "call" any color routines, though, so it should work on any mac.
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/moviescroll.cpt.hqx]
- ===============================================================
-
- From: peter@ncrpda.curtin.edu.au (Peter N Lewis)
- Subject: pascal - MungeImage 1.1.0
-
- MungeImage 1.1.0 © 1994 Quinn & Peter N Lewis
-
- This mounts DiskCopy images as disk icons.
- It's free, do whatever you want with it.
-
- To use image(s), drop them onto MungeImage.
-
- To get rid of them, throw them in the trash.
-
- Changes since 1.0.1:
-
- + Changed so MungeImage application quits immediately.
- Therefore works with the Installer.
- No foreground/background problems.
- + Mounts disks by default read-only
- + Option key to mount disks read/write.
- Read/write disks are written back to the image file.
- + Fixed several bugs
-
- Warning: Version 1.0 was written in eight hours. And v1.1 in 4.
-
- Quinn <quinn@cs.uwa.edu.au>
- Peter N Lewis <peter.lewis@info.curtin.edu.au>
-
- Do we get a gold star, Pete? [Mod Note: Pete said "Yep".]
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/mungeimage.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: NewBounce-c
-
- This is a revival of the old Steve hawley source for Bounce - a
- screensaver much like Dave mark's FlyingLine. It just goes about it a
- little differently.
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/newbounce.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: NewDisplay-c
-
- No! That's not "nude is play!" NewDisplay is an update of Greg Corson's
- old 1985 "TTY" like 'TEXT' file displayer application. I hadn't gotten
- it to werk right before, but when I did I saw that it was useful. And
- the source has teaching value for how to do such a thing: a "console"
- type display without the ANSI console.
-
- The original application, and thus the source, crashed with a full
- freeze. The only original included here is the Aztec C source. I was
- able to fix the source with a few pastes from MiniEdit - plus all the
- character case corrections!
-
- I forgot to check to see if it still needed ANSI library. I think the
- only ANSI call was to strcpy, which is now removed.
-
- I also changed the .c file name AFTER I quit Think C, so you'll have to
- handle that.
-
- Enjoy!
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/newdisplay.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: NewInterval-c
-
- Another old C source "brought back from the dead" by Kenneth A. Long, at
- itty bitty bytes(tm)!
-
- Original by Brad Needham, 25 May 1987.
-
- Interval is a music student's program which plays synthesized tones
- while using music notation in a set of radio buttons and a graphic
- display. I assume for familiarization with notation and tones. :)
-
- The original application runs on System 6, on my LC, but I get an
- error 25 in System 7 with 32 bit on and an error -192 with it off.
-
- The new one runs, but is buggy. When you select "Student provides
- notes" (a checkbox in a menu) it may crash.
-
- I set it to have the computer do everything, and set it to play
- harmonics, with "accidentals" (whatever they are) and it does the
- most. But it gets its info from a table in the source, so there
- is only enough variety to keep me amuzed for a short time. The fun
- part was getting it running. That being done - although not
- debugged - I'm on to other things.
-
- But, as with most C source, there are things to be learned from it
- and useful routines someone may want to use in their code.
-
- I also added some color icons.
-
- Enjoy!
-
- kenlong@netcom.com
- kenlong@aol.com
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/newinterval.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: NewMorse-c
-
- A revival of Brad Needham's 1987 C source for "Morse" - a morse code trainer.
-
- This thing is slightly buggy, but not too bad. That leaves something for
- YOU to revive about it.
-
- The original application errored and exited on my LC. The new one seems
- to run fine except when "sending" morse, when you hit the shift key there
- is no differentiation on the interval of tone, so you cannot really send
- separate letters easily. You can do 'E' (.) and 'S' (...) and such, but
- not an actual word. Also, sometimes a Shift hit sticks, as far as the
- program is concerned, so it generates a continuous tone.
-
- One cool thing is it converts the Shift-down durations into a bitmap and
- draws the tone (as a growing bar), so other "draw by sound" programs
- could be developed from it.
-
- Anyway, this one mostly works as is. And HEY! It's C source!
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/newmorse.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: NewRae-c
-
- Another old C source, brought back from the dead, by Kenneth A. Long, at
- itty bitty bytes(tm)!
-
- Rae was an old Steve Hawley source, from 1986.
-
- What it does is put up a window, with a black fill, but a white line
- inset from the sides and bottom. Then, 16x16 "happy faces" (Steve was
- into those) begin to fall, one at a time, from the top. When they hit
- the bottom, they bounce. The bounce decays, as though by friction, until
- the "marble" stops. Then another one appears. They just keep stacking
- up as long as you don't click the mouse.
-
- NewRae has a hot-wired window added. The original worked, but after
- Button () there were black areas all over the screen.
-
- Next giration? Color - ala "Blasto" - and clacking marble sounds.
- (pending interest and time, of course)
-
- Enjoy!
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/newrae.cpt.hqx]
- ===============================================================
-
- [Moderator's note: The archive also contains the two files that
- Ken posted after the first submission. The files in the archive
- are not updated, that's left as an exercise for the user ;-) ]
-
- From: kenlong@netcom.com (Ken Long)
- Subject: NewsSplash-c
-
- A public domain demo of a "news flash" text splash screen,
- courtesy of Kenneth A. Long (kenlong@netcom.com).
- An itty bitty bytes(tm) production, for the benefit of anyone
- who wants use it.
-
- What it does is put up a wide, short window, some 1pt. text appears in the
- center and scales up to 12pt. It hangs for 3 seconds, then contiues to
- zoom "forward" until it goes off the edges. Then the window closes. If
- you want to see it again, it's the About Item in the Apple menu.
-
- This is basically just "Bullseye" with some things dumped and one routine
- added, and a resource file to back the addition.
-
- The routine was from the old Pascal source - File v1.1, by Cary Clark, 13
- May 1985, which I ported to C. The program was a simple text file
- opening/saving program. The about box was the only cool thing about the
- whole program.
-
- It's not the cleanest port in the world, but HEY! It works!
-
- I put a 3 tick delay in the scaling loop, to make the text arrival a
- little more viewable. The other 180 tick delay was originally 300 ticks.
-
- Enjoy!
-
- kenlong@netcom.com
- kenlong@aol.com
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/newssplash.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: NewStringArt-c
-
- Another old C source, "brought back from the dead,"
- by Kenneth A. Long, at itty bitty bytes.
-
- Original source in Megamax C v.2 by Ron Hitchens, 13 September 1985.
-
- There are two programs here. One builds the 'stringnums.c' file,
- by recursivly tapping from 12 available functions to create values,
- and writing them in the file. This program is more or less a
- table compiler. Interesting in and of itself. The more interesting
- of the two.
-
- The other program is the StringArt project. It draws random sets
- of lines, based on the table it accesses. Kinda slow. Maybe
- there's a delay call I didn't spot. Lots slower than many
- screenSaver type programs, including FlyingLine.
-
- The StringArt thing is nothing special. Everybody, their brother,
- their sister and maybe even their Grandma may have put out some sort
- of screen saver. (I like Polygondrian :)
-
- Enjoy!
-
- kenlong@netcom.com
- kenlong@aol.com
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/newstringart.cpt.hqx]
- ===============================================================
-
- [admin: The project file that Alex posted has been included into the
- plotmanager.cpt.hqx file. Dave]
-
- From: kenlong@netcom.com (Ken Long)
- Subject: PlotManager (P)
-
- This is a Think Pascal 4.0 project. I removed the project file, itself,
- because it was 237k and, therefore, must have contained objects. Since I
- do not have Think Pascal, that was the only way I had to reduce the file
- size.
-
- If someone gets this, and compiles it, please post a built application so
- us C guys can see how this is. I have a port started, but it's so huge
- it would be good to try the ap. to see if it's going to be worth it.
-
- The following in the ReadMeFirst doc from the source set.
-
- -Ken-
- -------------------------------------------------------------------------
-
- From: alex@track.cslab.tuwien.ac.at (Alex Riegler)
- Subject: PlotManager.proj
-
- This is the (empty) project file for the PlotManager.
- Thanks to Ken for posting the source files!
-
- - Alex
-
- -------------------------------------------------------------------------
- PlotManager 2.53b
-
- The Archaeological Plotting Program by William Ferris
-
- Western Heritage Services 563 5th Avenue North Saskatoon,
- Saskatchewan Canada, S7K 2R1 A little over a year ago I bought
- my first Mac, and with it my first Pascal Language, Think Pascal
- 3.0. What I wanted to do was design a plotting program for
- archaeological data, especially data generated by a cataloging
- program called MacADEM (written by Terry Gibson also of Western
- Heritage).
-
- In Western Canada MacADEM was become a standard method for
- handling archaeological data, Terry felt that the program needed
- some better display and analysis tools, knew I was looking around
- for a project and with some discussion PlotManager was born.
- This program was an in-house application but has undergone some
- rigourous discussion (most of which will be in the next version).
-
- I offer this up as a partial payback for all the source code that
- I've downloaded. Such source code provides invaluable
- information on how and why to do things, it is often the best way
- to learn and understand. This program is perhaps the most finely
- crafted product but it all works (more or less it is a little
- weak on error checking). I've included the entire Think Pascal
- project and resources along with some sample data files to show
- how data is formated. This version 2.53b was the original B/W
- version, it runs on all Mac's, System 6 and 7. It is currently a
- Think Pascal 4.0 project. I am currently updating this program
- to include new routines and a better Mac interface, also I am
- working on a color version.
-
- I must acknowledge that one unit was taken from an article from
- MacTutor Vol 7, No.9 September 1991 called 'Meter Windows' by
- Walt Davis. I modified this unit slightly to accomdate my program
- but it remains essentially the same.
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/plotmgr.cpt.hqx]
- ===============================================================
-
- From: Craig Kloeden <craig@raru.adelaide.edu.au>
- Subject: RotatePPC 0.1d1
-
- RotatePPC 0.1d1
- ===============
-
- This is a Power Macintosh only program that reads a set of
- 3-dimensional points and lines and plots them in a window.
- The image can then be rotated with the mouse in real time.
-
- The provided source code demonstates a basic PPC C program
- that can handle the required apple events, set up and use
- an offscreen GWorld, get a file using StandardFile and
- read that file with standard C routines.
-
- The resource file contains code that will put up an alert
- on non-PPC machines and quit.
-
- The project file is for the Metrowerks PPC C DR/3 compiler.
-
- Notes
- -----
-
- A Power Macintosh 6100 can handle 500 input lines reasonably
- comfortably.
-
- The executable is compiled for a maximum of 2500 input lines.
-
- This program and the source are free and I take no responsibility
- if it kills your machine or drives you mad.
-
- E-mail me if you find a use for it or come up with a killer
- set of points/lines. I am also interested in other methods for
- rotating 3d points (esp the trackball rotation).
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/rotateppc.cpt.hqx]
- ===============================================================
-
- From: kenlong@netcom.com (Ken Long)
- Subject: Terminal 2.2 (C)
-
- This is Erny Tontlinger's Terminal 2.2 and Think C 5 source package. He
- wanted a terminal program he could live with so he wrote this one and then
- made it free to the rest of us - source and all! Has a 90k doc. I
- haven't tried the program, other than just seeing if it ran on MY Mac,
- which it does.
-
- Any of you seeking terminal, serial, transfer protocol, even BBS source,
- there's a little (or a lot) of it in this.
-
- -Ken-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/terminal.cpt.hqx]
- ===============================================================
-
- From: ari@world.std.com (Ari I Halberstadt)
- Subject: UserName-101.hqx
-
- UserName is a little program that lets you set the name of the machine
- it is run on (back in prehistory, this was the name seen in the
- Chooser desk accessory). You can run UserName either as an INIT
- (extension), or, if you prefer, as an application. When UserName runs,
- it displays a dialog, into which the user can enter his or her name.
- The dialog includes a timer, and will be automatically closed when the
- timer reaches zero. This means that even if you run UserName as an
- INIT, it will not prevent the system from booting up if no one is
- around to enter a name. The dialog also includes a help button, which
- enlarges the dialog and drops down a scrollable TextEdit field with
- help information.
-
- Full THINK Pascal (v2.0) source code for UserName is included. The
- code shows how to make a program that can be run either as an INIT or
- as an application, how to show a dialog from an INIT, how to modify
- the dialog, and how to show a scrollable text edit field in an INIT.
- It also includes my own Pascal version of the ShowINIT code,
- translated from the assembly language source code.
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/username.cpt.hqx]
- ===============================================================
-
- From: oster@netcom.com (David Phillip Oster)
- Subject: Re: Q:How do I UU-encode/decode ???
-
- Here are uuencode.c, uuenmain.c, uudecode.c, uudemain.c. These, in pairs
- make two small THINK C standalone programs for uuencoding and decoding files.
-
-
- [archived as: /ftp/pub/alt.sources.mac/vol-07/uucode.cpt.hqx]
-
-
- ************************************************************
-
- snippetname Description
-
- bcd2float Convert a BCD number to a float
- Robert S. Mah (rmah@panix.com)
- Convert a BCD number (such as the 0x0711 for the
- system version) to a floating point number (7.11).
-
- blit2scrn Fast blitting to the screen
- Jon (misc173@csc.canterbury.ac.nz)
- Assembler routine for quickly moving things to the
- screen.
-
- blitdouble Pixel doubling drawing code
- Jon (misc173@csc.canterbury.ac.nz)
- Assembler routine which draws to the screen using
- the pixel doubling technique.
-
- crc32b 32 bit CRC algorithm
- Craig Bruce (csbruce@ccnga.uwaterloo.ca)
- Craig's implementation of a 32 bit CRC algorithm in
- C.
-
- cdremoteid Identifing a CD like CD Remote
- Matt Mora (mxmora@unix.sri.com)
- More of Matt's code to work with CD's. This snippet
- shows how to identify a CD the way that CD Remote
- does.
-
- coderes Load and call a CODE resource
- Mark Hanrek (hanrek@cts.com)
- Example C code to load and call a code resource from
- an application.
-
- coderes2 Calling a CODE resource with callbacks
- Kevin R. Boyce (Kevin.R.Boyce@gsfc.nasa.gov)
- Shows how to add callbacks to Mark Hanrek's code.
-
- controlstrip.h Header file for the Control Strip
- Robert S. Mah (rmah@panix.com)
- Rob's C header file for creating modules for Apple's
- Control Strip for PowerBooks (and/or desktop Macs with
- Rob's patch...).
-
- controlstrip.p Pascal interface for the Control Strip
- Christopher Owen (owenc@minerva.cis.yale.edu)
- Chris ported Rob's ControlStrip.h file to pascal.
-
- convertcomments Convert C++ comments to C comments
- Kjetil Torgrim Homme (kjetilho@ifi.uio.no)
- C program to convert comments from C++ to C.
-
- dialogpict Drawing PICTs in a dialog.
- EJ Campbell (EJ_Campbell@onenet.com)
- C routines to load and draw a PICT in a dialog.
-
- drawellipse Draw an ellipse
- Matt Mora (mxmora@unix.sri.com)
- C Code to draw an ellipse.
-
- dticons Getting icons from the desktop database
- Jim Luthor (jumplong@aol.com)
- Code to access the desktop database to retrieve
- icons.
-
- enumstr Automated generation of enums and STR#s
- Jay Krell (jmk3@crux4.cit.cornell.edu)
- Program to help create enums and a STR# resource.
-
- eyedrop Code to implement an Eyedrop tool
- Mark Hanrek (hanrek@cts.com)
- C code to implement the eyedrop tool (get the color
- of a certain point in the window).
-
- fasteryet Faster way to set a point in QuickDraw
- Matt Mora (mxmora@unix.sri.com)
- Matt revisits his previous post for quickly drawing
- a point (using SetRect and PaintRect) with a faster
- version.
-
- fsreadline Reading lines individually
- Jim Luthor (jumplong@aol.com)
- C routine to read individual lines (separated by
- return characters) using PBReadSync.
-
- fsprefresh Have the finder refresh a file
- Bob Bradley (bb@lightside.com)
- C function to tell the finder to refresh a file given
- a fsspec.
-
- getdinfo Getting drive information
- Jim Luthor (jumplong@aol.com)
- High level functions which call the lower level
- File Manager function PBGetCatInfo.
-
- getwdinfo Getting info for the current working dir
- Jim Luthor (jumplong@aol.com)
- High level functions which call the lower level
- File Manager function PBGetWDInfo.
-
- gxperspective Perspective transformations for QDGX
- Ken Turkowski (turk@apple.com)
- C code for doing perspective transformations for
- QuickDraw GX.
-
- makepictfile Writing PICTs to a file
- Carl B. Constantine (cconstan@epdiv1.env.gov.bc.ca)
- C routine to write a PICT to a file like MacDraw.
-
- mkfoldicon Creating a folder with a custom icon
- Brad Hilton (msmail.hiltonb@tsod.lmig.com)
- C code to create a folder with a custom icon.
-
- modalscrollc Scrollbars in Modal dialogs
- anonymous
- C routine for implementing scroll bars in modal
- dialogs.
-
- modalscrollp Scrollbars in Modal dialogs
- Alex Kac (akac@delphi.com)
- Pascal routine for implementing scroll bars in modal
- dialogs.
- noforcequit Patch that removes 'Force Quit' option
- Spencer Low (spencerl@crl.com)
- Assembler routine which shows how to patch SysErr so
- that the user cannot 'Force Quit' the application.
-
- openresfile "Safe" method for opening resource files
- Mark Pilgrim (f8dy@netaxs.com)
- Mark shows a "safe" method for closing a res file, as
- well as describing why this method is needed.
-
- pbparse Using PB[H]Read to parse a file
- Jim Jarrett (jarrett@pixel.kodak.com)
- C code to open and parse a file using PBRead/PBHRead.
-
- prefsp Prefs file creation in Pascal
- Roygena R Weber (rweber@helium.Gas.UUG.Arizona.EDU)
- Pascal code to read/write prefs files.
-
- regname IM:Networking NBP code C port
- Jim Luthor (jumplong@aol.com)
- Jim's C implementation for the NBP code in IM:Networking
- that he originally wrote in Pascal.
-
- rotpsig2 3D isometric projection of solids
- Ken Long (kenlong@netcom.com)
- Bug-fixed version of rotpsig.c. Rotates 3D objects.
-
- savepict Saving a PICT file to disk
- Bretton Wade (bwade@graphics.cornell.edu)
- C function for saving a PICT file to disk.
-
- stkframes Macros for creating stack frames in MPW
- Lawrence D'Oliveiro (ldo@waikato.ac.nz)
- Lawrence's MPW macros for creating and disposing of stack
- frames.
-
- upppatch Patching a trap using UniversalProcPtrs
- Kevin Bell (kbell@cs.utexas.edu)
- Keven shows how to patch a trap using UniversalProcPtrs
- with a patch to ExitToShell.
-
- ************************************************************
-
- Who's Who in Digest #6...
-
- The contributors to this digest are:
-
- Kevin Bell (kbell@cs.utexas.edu)
- Kevin R. Boyce (Kevin.R.Boyce@gsfc.nasa.gov)
- Bob Bradley (bb@lightside.com)
- Craig Bruce (csbruce@ccnga.uwaterloo.ca)
- EJ Campbell (EJ_Campbell@onenet.com)
- Carl Constantine (cconstan@epdiv1.env.gov.bc.ca)
- Hugh Fisher (hughf@cs.anu.edu.au)
- Ari Halberstadt (ari@world.std.com)
- Mark Hanrek (hanrek@cts.com)
- Brad Hilton (msmail.hiltonb@tsod.lmig.com)
- Kjetil Torgrim Homme (kjetilho@ifi.uio.no)
- Jim Jarrett (jarrett@pixel.kodak.com)
- Jon (misc173@csc.canterbury.ac.nz)
- Alex Kac (akac@delphi.com)
- Craig Kloeden (craig@raru.adelaide.edu.au)
- Jay Krell (jmk3@crux4.cit.cornell.edu)
- Peter Lewis (peter@ncrpda.curtin.edu.au)
- Ken Long (kenlong@netcom.com)
- Spencer Low (spencerl@crl.com)
- Jim Luthor (jumplong@aol.com)
- Robert Mah (rmah@panix.com)
- Matt Mora (mxmora@unix.sri.com)
- Dave Nebinger (dnebing@andy.bgsu.edu)
- Kiselyov Oleg (oleg@ponder.csci.unt.edu)
- Lawrence D'Oliveiro (ldo@waikato.ac.nz)
- David Oster (oster@netcom.com)
- Christopher Owen (owenc@minerva.cis.yale.edu)
- Mark Pilgrim (f8dy@netaxs.com)
- Keith Pomakis (kppomaki@jeeves.uwaterloo.ca)
- Alex Riegler (alex@track.cslab.tuwien.ac.at)
- Tim Smith (tzs@u.washington.edu)
- Ken Turkowski (turk@apple.com)
- Bretton Wade (bwade@graphics.cornell.edu)
- Roygena R Weber (rweber@helium.Gas.UUG.Arizona.EDU)
- Zig Zichterman (zig@wc.novell.com)
-
- ************************************************************
-
- The archive's organization is as follows:
-
- /ftp/pub - root directory for the archive. All available files
- can be found in this directory.
-
- /ftp/pub/alt.sources.mac/vol-XX - Contains all articles posted to
- the alt.sources.mac newsgroup as well as some items posted to
- the comp.sys.mac.programmer newsgroup. Also, any files uploaded
- to the incoming folder are put here. All of the files are
- compressed using CompactPro and BinHex. The files also include
- an information file with the extension .info which explain what
- the archive contains. The 00abstracts file contains abstracts
- of the files in the directory.
-
- /ftp/pub/alt.sources.mac/snippets-vXX - Contains small pieces of
- code in a textual form (no compression or BinHexing). The
- 00index file contains a brief description of each snippet.
-
- /ftp/pub/alt.sources.mac/scripts - Contains scripts for any
- scripting system available for the Mac (i.e. AppleScript or
- Frontier).
-
- /ftp/pub/comp.sources.atari.st - Source posted to the
- comp.sources.atari.st newsgroup. If the items are compressed,
- they are extracted and re-compressed using CompactPro and
- BinHex.
-
- /ftp/pub/comp.sources.mac - Source posted to the comp.sources.mac
- newsgroup.
-
- /ftp/pub/digests - Contains all of the digests posted for the
- alt.sources.mac archive.
-
- /ftp/pub/incoming - Directory for uploading contributions to the
- archive. All files which get added to the archive spend some
- time in this directory, so if you are looking for something
- which should be in the archive but isn't yet, check here.
-
- /ftp/pub/mac-faqs - FAQs for some of the Mac groups. Contains all
- of the "charter" information for the alt.sources.mac newsgroup.
-
- /ftp/pub/mac-faqs/faq-sillyness - Contains the 'code' posted for
- distributing the alt.sources.mac FAQ in source-code form.
-
- /ftp/pub/other - Other Mac stuff (i.e. 2 program fonts, etc.).
-
- /ftp/pub/other/apprentice - Updates for files contained on the
- Apprentice CD.
-
- /ftp/pub/soundsrc - Source for working with special sound formats.
-