home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Information / Digests / Alt-Sources-Mac / digest-05-94 < prev    next >
Encoding:
Text File  |  1994-12-08  |  27.4 KB  |  730 lines  |  [TEXT/R*ch]

  1. alt.sources.mac digest #5-94                      4/29/94
  2.  
  3. Today's Contents:
  4.  
  5.   [!] administrivia
  6.  
  7.   [*] 00snippets.cpt.hqx
  8.   [*] arrowcdef.cpt.hqx
  9.   [*] cwdropshell.cpt.hqx
  10.   [*] dialectic.cpt.hqx
  11.   [*] finderprogbar1.1.cpt.hqx
  12.   [*] graf3dpas.cpt.hqx
  13.   [*] mount.cpt.hqx
  14.   [*] offscreentoys.cpt.hqx
  15.   [*] pasanimcurs.cpt.hqx
  16.   [*] pasfloats.cpt.hqx
  17.   [*] patchlib1.0d2.cpt.hqx
  18.   [*] photoplug.cpt.hqx
  19.   [*] profont.cpt.hqx
  20.   [*] program.cpt.hqx
  21.   [*] qdgxprint.cpt.hqx
  22.   [*] setcell.cpt.hqx
  23.   [*] shutdownfx1.4.cpt.hqx
  24.   [*] tcexceptions.cpt.hqx
  25.   [*] writethrough.cpt.hqx
  26.   
  27.   [#] aesendrec
  28.   [#] ascii2ebcdic
  29.   [#] calcarrows
  30.   [#] calllapmgr
  31.   [#] cicnshowinit
  32.   [#] devicedepth
  33.   [#] fastcopybits
  34.   [#] flashditem
  35.   [#] floatinghdrs
  36.   [#] highbit
  37.   [#] inbg
  38.   [#] itoroman
  39.   [#] missle
  40.   [#] mymacnames
  41.   [#] numofcolors
  42.   [#] numofcolors2
  43.   [#] opencd
  44.   [#] randomlongs
  45.   [#] resdecompress
  46.   [#] simpledrag
  47.   [#] startinit
  48.   [#] statusreg
  49.   [#] texteditbounds
  50.   [#] trackhalfrect
  51.   [#] traversedir
  52.   [#] unmountvol
  53.  
  54.   [!] Who's Who List
  55.   [!] Archive organization
  56.   
  57.   The alt.sources.mac archive is at ftpbio.bgsu.edu
  58. (129.1.252.66) in the /ftp/pub/alt.sources.mac directory.  
  59. Files listed with an [*] before them are in the main
  60. directory.  Files listed with an [#] in front of them
  61. are in the /ftp/pub/alt.sources.mac/00snippet directory.
  62. Scripts are stored in the /ftp/pub/alt.sources.mac/scripts
  63. directory.
  64.  
  65.   Also stored at the archive site are the FAQs for the
  66. Mac newsgroups in the /ftp/pub directory.  Postings to
  67. comp.sources.mac are archived in the /ftp/pub/comp.sources.mac
  68. directory.  The alt.sources.mac digests are archived in the
  69. /ftp/pub/digests directory.
  70.  
  71.   The alt.sources.mac newsgroup is for the distribution of
  72. sources only.
  73.  
  74. ************************************************************
  75.  
  76. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  77. Subject: Administrivia
  78.  
  79.   Welcome to the alt.sources.mac digest.  Currently, I am
  80. the moderator of the archive.  I thought I would post this
  81. message to show everyone what has been accumulating at the
  82. archive site.
  83.  
  84.   Your contributions are highly recommended and accepted.
  85. If you don't have access to the alt.sources.mac newsgroup,
  86. you can email your contribution to me (dnebing@andy.bgsu.edu)
  87. and I will add it to the archive, or you can upload it to
  88. the /ftp/pub/incoming directory at the archive site.
  89.  
  90.   A special item being added to the archive is the
  91. 00snippets.cpt.hqx file.  This file is an archive which contains
  92. all of the items in the 00snippets folder.  Since there were
  93. numerous people who would log into the archive and download
  94. everything I thought that it might make downloading easier
  95. and faster.
  96.  
  97.   Any other suggestions are welcome and encouraged.
  98.   
  99.   Dave Nebinger (dnebing@andy.bgsu.edu)
  100.   
  101. ************************************************************
  102.  
  103. From: dnebing@andy.bgsu.edu (Dave Nebinger)
  104. Subject: 00snippets.cpt.hqx
  105.  
  106. The file called 00snippets.cpt.hqx is an archive which contains
  107. all of the snippets in the 00snippets folder.  I decided to start
  108. this little thing because lots of people were logging in and
  109. downloading everything in the archive.  Now all that is necessary
  110. is to download the 00snippets.cpt.hqx to get all of the currently
  111. available snippets.
  112.  
  113. Dave Nebinger
  114.  
  115. [archived as: /ftp/pub/alt.sources.mac/00snippets.cpt.hqx]
  116. ============================================================
  117.  
  118. From: hay@cs.colorado.edu (David J. Hay)
  119. Subject: ArrowCDEF
  120.  
  121.   This is a CDEF I wrote for implementing an up-down arrow similar to those
  122. found in the color picker. It supports the ability to use any PICT resources
  123. to draw the arrow, so you can make the arrow look however you like.
  124.  
  125.   Included is a Think C 5.0.4 project for the CDEF and a program to test
  126. it. The test program includes a resource file with a B&W set of arrows
  127. and a color set of arrows.
  128.  
  129.   If you have any comments, questions, suggestions, or *gasp* bug reports,
  130. please let me know.
  131.  
  132. [archived as: /ftp/pub/alt.sources.mac/arrowcdef.cpt.hqx]
  133. ============================================================
  134.  
  135. From: gwatts@whcdfo.fnal.gov
  136. Subject: MW CW dropshell code resource fixer...
  137.  
  138. Hi,
  139.   More output from this weekend.  The source files here should be combined with
  140. dropshell source to make a simple drag/drop appl that will strip the standard
  141. code resource header off a MW code resource.
  142.  
  143. MW won't (yet -- I've seen note on c.s.m.p that MW will add this functionality)
  144. make a code resource with a custom header.  This guy will copy main down
  145. to the start of the resource.  Main must come RIGHT AFTER the header (this
  146. isn't a given -- glue code, like long division on a 68000 can easily get in
  147. the way).  The advantage of this is that offsets relative to a4 will remain
  148. valid.
  149.  
  150. It looks for "JMP" (2byte style) in the header and corrects the offsets for
  151. the ones it finds.  It stops copying the code when it sees the first RTS 
  152. instruction.
  153.  
  154. I wrote this to help me write print extensions -- your milage may varry!
  155.  
  156. This is a MW project.  If you want to compile drop shell in mw with ppc
  157. interfaces you'll have to make a couple of minor modifications to the
  158. apple events section of the code.
  159.  
  160.     Cheers,
  161.         Gordon.
  162.  
  163. [archived as: /ftp/pub/alt.sources.mac/cwdropshell.cpt.hqx]
  164. ============================================================
  165.  
  166. From: f8dy@netaxs.com (Mark Pilgrim)
  167. Subject: Dialectic 1.2 (text utility, THINK C) part 0 of 3
  168.  
  169. Dialectic 1.2 is a general text conversion utility to pass text through a
  170. "dialect" filter of your choice.  Version 1.2 adds a "convert clipboard"
  171. feature, four new dialects, an improved Chef dialect, massive technical
  172. improvements, and Balloon Help.  This version includes the following dialects:
  173. Chef, Fudd, WAREZ, Underwater, Middle English, Pig Latin, Morse Code, Op, and
  174. Rot-13.  Supports drag and drop of any number of text, RTF, or Teachtext
  175. "read-only" files of any length.  This archive contains complete C source code
  176. and related project files.  Application also available; check ftp sites or
  177. e-mail f8dy@netaxs.com.  Finger f8dy@netaxs.com for complete program list.
  178. Copyright (C) 1994, Mark Pilgrim.  Please read enclosed file "GNU General
  179. Public License" for licensing details.  Have a nice day.
  180.  
  181. [archived as: /ftp/pub/alt.sources.mac/dialectic.cpt.hqx]
  182. ============================================================
  183.  
  184. From: cklarson@relleno.engr.ucdavis.edu (Christopher Klaus Larson)
  185. Subject: finder-progress-bar-11.hqx
  186.  
  187. Enclosed below is a compressed, binhexed package containing THINK C 7.0
  188. source for a CDEF which mimics the progress bars used by Finder.
  189.  
  190. Enjoy.
  191.  
  192. --Chris
  193.  
  194. [archived as: /ftp/pub/alt.sources.mac/finderprogbar1.1.cpt.hqx]
  195. ============================================================
  196.  
  197. From: ingemar@lysator.liu.se (Ingemar Ragnemalm)
  198. Subject: Graf3d demos (Pascal)
  199.  
  200. Enclosed are two old demos (Boxes.p and BoxSphere.p) that I found on my
  201. old Turbo Pascal disks. They demonstrate the usage of the Graf3D
  202. library.
  203.  
  204. I modified them to run under Think Pascal, plus made a variation on
  205. each - a color "Boxes" and a version of BoxSphere that uses an
  206. offscreen grafport for flicker-free updates.
  207.  
  208. /Ingemar Ragnemalm
  209.  
  210. [archived as: /ftp/pub/alt.sources.mac/graf3dpas.cpt.hqx]
  211. ============================================================
  212.  
  213. From: Michael Trevor Cutter (mtc@mundil.cs.mu.OZ.AU)
  214. Subject: Appleshare Mounting Part [0/1] (Pascal & HC)
  215.  
  216. A while ago, on the MacDevelop mailing list, someone wrote:
  217. >    I was interested in allowing a user to login to an appleshare server
  218. >directly through my program.  Given the server name, zone name and user name (&
  219. > password, of course) is there any way to do this programmaticaly?
  220.  
  221. I stupidly posted my solutions to the list, without thinking. It had been a long
  222. year. I have since noticed that the code hasn't made it into alt.sources.mac
  223. or onto the archive for it, so here it is. Apologies to those on the list if
  224. you see it again, I hope this is an appropriate place to put it.
  225.  
  226. There are two ways of doing this. The System 7 only way is to use the 
  227. procedures in the File Manager section of IM VI (or NIM Files, I presume)
  228. which describe mounting volumes programmatically.
  229.  
  230. Otherwise, to make it work under System 6, you need Landon Dyer's Mount/Unmount 
  231. XCMDs (version 1.12 is on info-mac and umich and is included here) and call them
  232. as code resources. It isn't hard, and they don't make any call backs.
  233.  
  234. I have provided the code which I use. You should have no trouble adapting it
  235. to your own use. It is a concerted effort between various people, both in the
  236. technique of loading and calling an XCMD from code, (David Skinner), mounting
  237. volumes with the XCMD (Landon Dyer) and mounting volumes under System 7 (Mark D
  238. Larimer).
  239.  
  240. Feel free to modify and redistribute it. You can probably ignore the 
  241. copyright messages in my name, but my boss insisted. (They only apply to parts
  242. of the code anyway.)
  243.  
  244. Included files (as a Compactor Pro archive):
  245.  
  246. MCMountStuff.p       Code for mounting a volume under System 7.
  247. MCXCMDMountStuff.p   Code for mounting a volume using the XCMDs.
  248. Mount/Unmount XCMD   1.12 Hypercard stack with mounting XCMDS.
  249.  
  250. [archived as: /ftp/pub/alt.sources.mac/mount.cpt.hqx]
  251. ============================================================
  252.  
  253. From: Ingemar Ragnemalm (ingemar@lysator.liu.se)
  254. Subject: Offscreen Toys (Pascal)
  255.  
  256. Enclosed is Offscreen Toys, a small animation demo for Think Pascal.
  257. It produces sprite animation over a detailed background, reasonably
  258. flicker-free, in color or b/w. It should run on all Macs.
  259.  
  260. Includes:
  261. - glue code for using "cicn"s and "ppat"s on old, 68000-based Macs.
  262. - glue code for switching between GWorlds and offscreen bitmaps depending
  263. on whether GWorlds are available or not
  264. - comments in english :-)
  265.  
  266. In order to make it quickly downloaded and easy to understand, I've kept
  267. it small and simple. The source is 25k with comments, and the compiled
  268. binary under 10k!
  269.  
  270. I made this in order to complement SAT (Sprite Animation Toolkit) with
  271. a tutorial source example. Believe me, it's much easier to learn animation
  272. from this 25k demo than from a feature-bloated library. It's free, of course.
  273.  
  274. [archived as: /ftp/pub/alt.sources.mac/offscreentoys.cpt.hqx]
  275. ============================================================
  276.  
  277. From: drickey@irus.rri.uwo.ca (Daniel W. Rickey)
  278. Subject: Pascal animate cursor source code
  279.  
  280. Enclosed is the Think Pascal source code for animating the cursor. 
  281. This is more or less from one of the new inside macintosh manuals.
  282.  
  283. Daniel W. Rickey
  284.  
  285. [archived as: /ftp/pub/alt.sources.mac/pasanimcurs.cpt.hqx]
  286. ============================================================
  287.  
  288. From: pottier@corvette.ens.fr (Francois Pottier)
  289. Subject: Re: any _Pascal_ floating window code out there?
  290.  
  291. In article <CowB6I.Fvn@newsflash.concordia.ca>,
  292. Keith MacDonald <ikb_macd@ECE.Concordia.CA> wrote:
  293.  
  294. >I'm looking for some code to aid in making a floating window using Think
  295. >Pascal.  
  296.  
  297. I have written a Think Pascal library that does the job. It's available
  298. by ftp from sumex and umich, but I'll post it here anyway (I'm not sure
  299. they have the latest bug fix).
  300.  
  301. It's based on some C code written by Patrick C. Doane. (Patrick5@aol.com)
  302. The difference is that the original code was optimized for speed, whereas
  303. mine is more concerned about readability, and makes much more use of the
  304. available Toolbox calls.
  305.  
  306. I hope this helps
  307.  
  308. Francois.
  309. pottier@dmi.ens.fr
  310.  
  311. [archived as: /ftp/pub/alt.sources.mac/pasfloats.cpt.hqx]
  312. ============================================================
  313.  
  314. From: ari@world.std.com (Ari I Halberstadt)
  315. Subject: PatchLib-10d2.hqx (part 1 of 1)
  316.  
  317. Patch Library is used to manage patches to traps. Installing and removing
  318. patches is simpler than using the Toolbox routines NSetTrapAddress and
  319. NGetTrapAddress. In addition, macros are provided that setup and restore
  320. the environment for the patch routine. C source code is provided.
  321.  
  322. [archived as: /ftp/pub/alt.sources.mac/patchlib1.0d2.cpt.hqx]
  323. ============================================================
  324.  
  325. From: drickey@irus.rri.uwo.ca (Daniel W. Rickey)
  326. Subject: Pascal Photoshop Plug-In #1
  327.  
  328. Enclosed is the Think Pascal source code for an Adobe Photoshop
  329. Plug-In.
  330. Daniel W. Rickey
  331.  
  332. [archived as: /ftp/pub/alt.sources.mac/photoplug.cpt.hqx]
  333. ============================================================
  334.  
  335. From: Pete Gontier (gurgle@netcom.com)
  336. Subject: Re: WANTED: Good programming FONT!!
  337.  
  338. cmmiller@iastate.edu (Chad M. Miller) writes:
  339.  
  340. >One thing I have yet to find is a TrueType font which is monospaced and
  341. >has a diagonal line through the 0's (zero's).
  342.  
  343. But the best one I found is called "ProFont", shareware from way back in
  344. ancient history. Andrew Welch did it when he was just starting out. I
  345. had to convert it from an old FONT resource into a real suitcase. He has
  346. since released it as "a gift to the Mac programming community". Here it
  347. is.
  348.  
  349. Those of you reading this in alt.sources.mac, spare me the reminder that
  350. this isn't source code. I think it's close enough. Trust me, nobody is
  351. going to use this for desktop publishing.
  352.  
  353.   [admin: Yeah, this isn't source code, but it is quite useful.  Just
  354.    wish that someone could convert it to a truetype font... ;-) ]
  355.    
  356. [archived as: /ftp/pub/other/profont.cpt.hqx]
  357. ============================================================
  358.  
  359. From: woody@alumni.caltech.edu (William Edward Woody)
  360. Subject: Re: WANTED: Good programming FONT!!
  361.  
  362. Bill Williams <bwilliam@iat.holonet.net> wrote:
  363. >Ahem...
  364. >
  365. >Real programmers use proportional fonts not monospaced fonts, because good
  366. >programmers know that readability and high speed comprehesion are
  367. >paramount concerns. That is why all printed media is in proportional fonts
  368. >(Newspapers, books, magazines, etc.).
  369.  
  370. Oh, get real. "Ahem..." indeed.
  371.  
  372. This goes into my file along with all of those "Real programmers don't
  373. write software for WYSIWYG computers", "Real programmers prefer
  374. interrupt-driven multi-tasking environments to non-interrupt driven
  375. multi-tasking", and "Real programmers don't need comments to understand
  376. their code."
  377.  
  378. "Readability and high speed comprehension are paramount concerns."
  379.  
  380. Yes, and this is why real programmers use plenty of whitespace and
  381. comments explaining what's going on. When the typical piece of C-code
  382. I run across looks like this:
  383.  
  384.     for(i=0,j=0,p=GPtr;isspace(*p)&&(i==0||j==0);*p++=b[i++]){
  385.  
  386. (you get the idea; line noise), whether or not this little gem is in
  387. Monaco 9 or Palantino 12, it's still line-noise. Comprehension does
  388. not go up significantly.
  389.  
  390. For me, the font I like to use for my progamming is attached to this
  391. message. It was a font I created for my own use a couple of years ago,
  392. and it still serves me well.
  393.    
  394. [archived as: /ftp/pub/other/program.cpt.hqx]
  395. ============================================================
  396.  
  397. From: gwatts@whcdfo.fnal.gov
  398. Subject: Simple QDGX print extensions -- style writer log file...
  399.  
  400. Hi all,
  401.   Did you all have a good weekend?  I saw a couple of bands here in Chicago:
  402.  
  403. Loud Lucy: Hard alternative (good)
  404. Veruca Salt: alternative (good) -- I think that translates to "Wart Salt"
  405.                 in case any of you were wondering
  406. Texas Rubies: Vegatarian Country (fell in love with one of the singers)...
  407.  
  408. But, on a lighter note, when I my eyes weren't glazed over with an alcaholic
  409. haze (and my mind going: write your thesis!  write your thesis!) I played a
  410. little with my mac.
  411.  
  412. This posting contains code for a very very simple quickdraw gx print extension
  413. written with Metrowerks CW DR1 compiler.  The stylewriter II print driver no
  414. longer adds text to the log file (at least, not my beta 3) so I decided it
  415. would be a great place to start and see if it I could write a print extension
  416. in MW.
  417.  
  418. This is very stripped down -- all it writes are the "Number of pages" line,
  419. no job name, or time stamp.  That is left as an exercise for the reader :)
  420. This was an existance proof for me -- now that I know I can write it, I can
  421. get onto the print extension I've always wanted to write!
  422.  
  423. MW does not make custom resource headers, which are needed to write a
  424. print extension.  Sooooo, I've included a little app (source in a seperate
  425. posting) that strips out MW's resource header and replaces it with the main
  426. routine.  It isn't very robust.  See the seperate posting.
  427.  
  428. This code isn't bullet proof.  Testing was painful on my SE/30 with 5 megs of
  429. RAM... (thank god for VM).  GX, during printing, often wanted almost 5 megs of
  430. RAM all to itself!  Anyone got any spare 1 meg simms? :)  It was developed
  431. with the GX beta 3 from the develop CD.
  432.  
  433. There is more info in readme.txt, in this stuffit archive.
  434.  
  435. [archived as: /ftp/pub/alt.sources.mac/qdgxprint.cpt.hqx]
  436. ============================================================
  437.  
  438. From: greer@utdallas.edu (Dale M. Greer)
  439. Subject: SetCell.c - AppleEvents to Run Excel
  440.  
  441. Many thanks to those who responded to my pleas for information
  442. on how to use AppleEvents to drive Excel, especially to John
  443. Nagle who sent an AppleEvent in text form, from which I finally
  444. was able to figure out how to do it.
  445.  
  446. The following contains SetCell.c, SetCell.r and SetCell.make,
  447. to make a small application that puts some data and an
  448. equation into some cells in an Excel spreadsheet.  It was
  449. written with MPW C 3.3 on 31 March 1994 by Dale M. Greer.
  450. This file has a little fewer than 8K.
  451.  
  452. [archived as: /ftp/pub/alt.sources.mac/setcell.cpt.hqx]
  453. ============================================================
  454.  
  455. From: f8dy@netaxs.com (Mark Pilgrim)
  456. Subject: Shutdown FX 1.4 (INIT, THINK C) part 0 of 3
  457.  
  458. Shutdown FX 1.4 clears the screen with a cool graphic effect every time
  459. you restart or shut down your Mac.  Holding down the option key while
  460. restarting or shutting down brings up an options dialog.  Version 1.4
  461. adds 28 new effects, for a total of 44.  This archive contains complete
  462. C source code and related project files.  INIT also available; check ftp
  463. sites or e-mail f8dy@netaxs.com.  Finger f8dy@netaxs.com for complete
  464. program list.  Copyright (C) 1993-4, Mark Pilgrim.  Please read enclosed
  465. file "GNU General Public License" for licensing details.
  466.  
  467. [archived as: /ftp/pub/alt.sources.mac/shutdownfx1.4.cpt.hqx]
  468. ============================================================
  469.  
  470. From: gwatts@whcdfo.fnal.gov
  471. Subject: Think C exceptions in Threads
  472.  
  473. Hi,
  474.   A bunch of thread classes for Think C (compiled with 5.0).  It shows
  475. how to do execptions (Think C's TRY/CATCH stuff) with threads.  It uses
  476. a custuom switcher call back routine to save all the global variables and
  477. surrounds the thread procedure with a try/catch with a no_propagate in it.
  478.  
  479. I wrote this code some time ago for a network ping project.  It has been running
  480. on my mac for about two months now, so the code is fairly stable for me.
  481.  
  482. Someone asked about this -- I don't recall who -- but here it is.
  483.  
  484. Included is source for a test project I wrote to test out these classes.  It
  485. shows an example of how to use them.
  486.  
  487. This code was ripped out of another bigger project -- so It isn't going to
  488. compile right off the bat.  You'll have to slot it into your own stuff.
  489.  
  490. [archived as: /ftp/pub/alt.sources.mac/tcexceptions.cpt.hqx]
  491. ============================================================
  492.  
  493. From: Stuart Cheshire <cheshire@cs.stanford.edu>
  494. Subject: Macintosh Disk Cache fix -- 25 times speedup
  495.  
  496. Has anyone else noticed that at the end of extracting a binary in
  497. Nuntius the disk light comes on, stays on for a few seconds, and
  498. freezes the Mac for that duration? It gets unbearable if you have
  499. a large disk cache, but even with only a 256K cache it can freeze
  500. the Mac for up to 5 seconds.
  501.  
  502. The problem is that Nuntius (and other programs) write their data to
  503. disk in chunks (say 4K each) and the Mac caches the blocks in its
  504. disk cache. When the file is closed the data is finally written to disk,
  505. and this is what causes the big freeze up. It would be much better if
  506. the data were written continually to disk, instead of in one big burst
  507. at the end.
  508.  
  509. Yesterday morning I wrote a little INIT which sets the File Manager
  510. "don't cache" bit for disk writes of 1K or more.
  511.  
  512. [admin note: enclosed is the init, the code for the init, and the
  513.  code for the test program as well.]
  514.  
  515. [archived as: /ftp/pub/alt.sources.mac/writethrough.cpt.hqx]
  516.  
  517. ************************************************************
  518.  
  519. snippetname     Description
  520.   
  521. aesendrec       Send and receive custom AppleEvents
  522.   Deirdre Maloy (Deeny3@aol.com)
  523.   Sample C code for sending and receiving custom Apple
  524.   Events.
  525.   
  526. ascii2ebcdic    Convert ASCII to EBCDIC
  527.   Matt Mora (mxmora@unix.sri.com)
  528.   ZBasic code to convert ASCII characters to packed
  529.   EBCDIC format.
  530.   
  531. calcarrows      Drawing arrows at line ends
  532.   Sak Wathanasin (sw@network-analysis-ltd.co.uk)
  533.   MacApp code to calculate the arrows to draw at the
  534.   ends of line segments.
  535.   
  536. calllapmgr      Determining if AppleTalk is on
  537.   Matt Mora (mxmora@unix.sri.com)
  538.   C code to determine if AppleTalk is on or off.
  539.   
  540. cicnshowinit    ShowINIT using 'cicn' resources
  541.   Tom Bridgewater (tbridgwa@cymbal.calpoly.edu)
  542.   ShowINIT modified to use 'cicn' resources.
  543.   
  544. devicedepth     Determine device's bit depth
  545.   Kent Reuber (reuber@hydra.rose.brandeis.edu)
  546.   C macros for determining the bit depth of a device.
  547.   
  548. fastcopybits    Faster copy bits routine
  549.   Alex Metcalf (alex@metcalf.demon.co.uk)
  550.   Assembly language routine for a faster CopyBits.
  551.   
  552. flashditem      Flashing a dialog item
  553.   Troy Gaul (t-gaul@i-link.com)
  554.   Sample code for flashing a dialog item, in this
  555.   specific case a button.
  556.  
  557. floatinghdrs    Floating Window Lib headers
  558.   Ken Prehoda (kenp@nmrfam.wisc.edu)
  559.   Universal Headers extracts needed to compile the Floating
  560.   Windows library from Develop issue 15.
  561.   
  562. highbit         Finding the high bit in a long
  563.   Ed Walker (saseew@router.unx.sas.com)
  564.   C code for finding the setting of a high bit in a long.
  565.   
  566. inbg            Determine whether in the background or not
  567.   Michael Trevor Cutter (mtc@mundil.cs.mu.OZ.AU)
  568.   Pascal function to determine whether currently in the
  569.   background.
  570.   
  571. itoroman        Converting an integer to a roman numeral
  572.   Gary Kacmarcik (platypus@cirrus.som.cwru.edu)
  573.   C snippet for converting an integer to a roman number.
  574.   
  575. missle          Missle Command game code
  576.   Robert P Munafo (mrob@world.std.com)
  577.   Rob's pascal code for a missle commander game originally
  578.   written for the Lisa (circa 1984) and still works on
  579.   Power PC Macs today.
  580.   
  581. mymacnames      Access the Owner and Mac names
  582.   Peter N Lewis (peter.lewis@info.curtin.edu.au)
  583.   Pascal code for retrieving the owner and mac names.
  584.   
  585. numofcolors     Determine number of available colors
  586.   Paul Rademacher (paulr@cs.wvu.edu)
  587.   C function to determine the number of available colors.
  588.   Limited to returning the colors for the main screen, and
  589.   only handles up to 256 colors.
  590.   
  591. numofcolors2    Determine number of available colors
  592.   Robert S. Mah (rmah@panix.com)
  593.   C function to determine the number of available colors
  594.   on all monitors, handles more than 256 colors.
  595.   
  596. opencd          Opening Apple's CDROM
  597.   Matt Mora (mxmora@unix.sri.com)
  598.   C code to open Apple's CDROM drive.
  599.   
  600. randomlongs     Determining a random long
  601.   Jim Lloyd (afcjlloyd@aol.com)
  602.   C code to determine a random long number.
  603.   
  604. resdecompress   Adding decompression resource to ResEdit
  605.   Eddy J. Gurney (egurney@vcd.hp.com)
  606.   Instructions for adding Aladdin's resource compression
  607.   scheme to ResEdit, which enables the ability to examine
  608.   resources from Stuffit Expander and BBEdit.
  609.   
  610. simpledrag      Pascal Drag Manager sample
  611.   Matt Mora (mxmora@unix.sri.com)
  612.   Pascal port of Greg Robbin's Drag Manager sample
  613.   code.
  614.   
  615. startinit       C INIT code
  616.   Nico Marcuz (nico@vaws01.bau-verm.uni-karlsruhe.de)
  617.   C code for a simple INIT.
  618.   
  619. statusreg        Accessing the status register
  620.   Chris Wysocki (wysocki@netcom.com)
  621.   C glue to access the status register.
  622.   
  623. texteditbounds  Calculating the width of the largest line
  624.   Ari I Halberstadt (ari@world.std.com)
  625.   C source to calculate the width of the largest line in
  626.   either old textedit or styled textedit.
  627.   
  628. trackhalfrect   Track part of a rect for a control
  629.   Sean J. Crist (kurisuto@chopin.udel.edu)
  630.   C function for tracking part of a rect.  Intended to be
  631.   used in conjunction with a control.
  632.   
  633. traversedir     Traverse the directory structure
  634.   Eric Hegstrom (theeric@netcom.com)
  635.   C function for traversing the directory structure.
  636.   
  637. unmountvol      Unmounting a volume programmatically.
  638.   Michael Morehead (busnetwork@aol.com)
  639.   Pascal code (from a 4D external) for unmounting a volume.
  640.   
  641. ************************************************************
  642.  
  643. Who's Who in Digest #5...
  644.  
  645. The contributors to this digest are:
  646.   Tom Bridgewater (tbridgwa@cymbal.calpoly.edu)
  647.   Stuart Cheshire (cheshire@cs.stanford.edu)
  648.   Sean J. Crist (kurisuto@chopin.udel.edu)
  649.   Michael Trevor Cutter (mtc@mundil.cs.mu.OZ.AU)
  650.   Troy Gaul (t-gaul@i-link.com)
  651.   Pete Gontier (gurgle@netcom.com)
  652.   Dale M. Greer (greer@utdallas.edu)
  653.   Eddy J. Gurney (egurney@vcd.hp.com)
  654.   Ari I Halberstadt (ari@world.std.com)
  655.   David J. Hay (hay@cs.colorado.edu)
  656.   Eric Hegstrom (theeric@netcom.com)
  657.   Gary Kacmarcik (platypus@cirrus.som.cwru.edu)
  658.   Christopher Klaus Larson (cklarson@relleno.engr.ucdavis.edu)
  659.   Peter N Lewis (peter.lewis@info.curtin.edu.au)
  660.   Jim Lloyd (afcjlloyd@aol.com)
  661.   Robert S. Mah (rmah@panix.com)
  662.   Deirdre Maloy (Deeny3@aol.com)
  663.   Nico Marcuz (nico@vaws01.bau-verm.uni-karlsruhe.de)
  664.   Alex Metcalf (alex@metcalf.demon.co.uk)
  665.   Matt Mora (mxmora@unix.sri.com)
  666.   Michael Morehead (busnetwork@aol.com)
  667.   Robert P Munafo (mrob@world.std.com)
  668.   Mark Pilgrim (f8dy@netaxs.com)
  669.   Francois Pottier (pottier@corvette.ens.fr)
  670.   Ken Prehoda (kenp@nmrfam.wisc.edu)
  671.   Paul Rademacher (paulr@cs.wvu.edu)
  672.   Ingemar Ragnemalm (ingemar@lysator.liu.se)
  673.   Kent Reuber (reuber@hydra.rose.brandeis.edu)
  674.   Daniel W. Rickey (drickey@irus.rri.uwo.ca)
  675.   Ed Walker (saseew@router.unx.sas.com)
  676.   Sak Wathanasin (sw@network-analysis-ltd.co.uk)
  677.   Gordon Watts (gwatts@whcdfo.fnal.gov)
  678.   William Edward Woody (woody@alumni.caltech.edu)
  679.   Chris Wysocki (wysocki@netcom.com)
  680.  
  681. ************************************************************
  682.  
  683. The archive's organization is as follows:
  684.  
  685. /ftp/pub - root directory for the archive.  All available files
  686.   can be found in this directory.
  687.   
  688. /ftp/pub/alt.sources.mac - Contains all articles posted to the
  689.   alt.sources.mac newsgroup as well as some items posted to the
  690.   comp.sys.mac.programmer newsgroup.  Also, any files uploaded
  691.   to the incoming folder are put here.  All of the files are
  692.   compressed using CompactPro and BinHex.  The files also include
  693.   an information file with the extension .info which explain what
  694.   the archive contains.  The 00abstracts file contains abstracts
  695.   of the files in the directory.
  696.   
  697. /ftp/pub/alt.sources.mac/00snippets - Contains small pieces of
  698.   code in a textual form (no compression or BinHexing).  The
  699.   00index file contains a brief description of each snippet.
  700.   
  701. /ftp/pub/alt.sources.mac/scripts - Contains scripts for any
  702.   scripting system available for the Mac (i.e. AppleScript or
  703.   Frontier).
  704.   
  705. /ftp/pub/comp.sources.atari.st - Source posted to the
  706.   comp.sources.atari.st newsgroup.  If the items are compressed,
  707.   they are extracted and re-compressed using CompactPro and
  708.   BinHex.
  709.   
  710. /ftp/pub/comp.sources.mac - Source posted to the comp.sources.mac
  711.   newsgroup.
  712.   
  713. /ftp/pub/digests - Contains all of the digests posted for the
  714.   alt.sources.mac archive.
  715.   
  716. /ftp/pub/incoming - Directory for uploading contributions to the
  717.   archive.  All files which get added to the archive spend some
  718.   time in this directory, so if you are looking for something
  719.   which should be in the archive but isn't yet, check here.
  720.   
  721. /ftp/pub/mac-faqs - FAQs for some of the Mac groups.  Contains all
  722.   of the "charter" information for the alt.sources.mac newsgroup.
  723.   
  724. /ftp/pub/mac-faqs/faq-sillyness - Contains the 'code' posted for
  725.   distributing the alt.sources.mac FAQ in source-code form.
  726.   
  727. /ftp/pub/other - Other Mac stuff (i.e. 2 program fonts, etc.).
  728.  
  729. /ftp/pub/soundsrc - Source for working with special sound formats.
  730.