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

  1. alt.sources.mac digest #8-94                      8/19/94
  2.  
  3. Today's Contents:
  4.  
  5.   [!] administrivia
  6.  
  7.   [*] 3dbutsrc1.1.cpt.hqx
  8.   [*] 3dsphere.cpt.hqx
  9.   [*] aiffdsp.cpt.hqx
  10.   [*] animcurpas.cpt.hqx
  11.   [*] appewindows.cpt.hqx
  12.   [*] bendimage.cpt.hqx
  13.   [*] cdefp.cpt.hqx
  14.   [*] clutfade.cpt.hqx
  15.   [*] controlpan.cpt.hqx
  16.   [*] cvoice.cpt.hqx
  17.   [*] errordude.cpt.hqx
  18.   [*] fastzm1.02.cpt.hqx
  19.   [*] jgnehelper.cpt.hqx
  20.   [*] loglut.cpt.hqx
  21.   [*] lomem.cpt.hqx
  22.   [*] looseyourmarbles.cpt.hqx
  23.   [*] m68kdis.cpt.hqx
  24.   [*] mungeimage1.2.cpt.hqx
  25.   [*] newcalendar.cpt.hqx
  26.   [*] newhelp.cpt.hqx
  27.   [*] newidle.cpt.hqx
  28.   [*] newxbitmap.cpt.hqx
  29.   [*] ootgw.pas.cpt.hqx
  30.   [*] p4mac.cpt.hqx
  31.   [*] pcalendar.cpt.hqx
  32.   [*] plotman2.53.cpt.hqx
  33.   [*] resfork.cpt.hqx
  34.   [*] resmap.cpt.hqx
  35.   [*] ringtree.cpt.hqx
  36.   [*] sampledsnd.cpt.hqx
  37.   [*] shutdownfx2.01.cpt.hqx
  38.   [*] splatmaster.cpt.hqx
  39.   [*] squarewave.cpt.hqx
  40.   [*] ssp1.2.cpt.hqx
  41.   [*] stdcrc.cpt.hqx
  42.   [*] thinkcquickkeys.cpt.hqx
  43.   [*] thinkcdcmds.cpt.hqx
  44.   [*] trieexample.cpt.hqx
  45.   [*] truchettiles.cpt.hqx
  46.   [*] xmodemtab.cpt.hqx
  47.   
  48.   [#] anetspatch
  49.   [#] antialiasedtxt
  50.   [#] buildcomplist
  51.   [#] canonical
  52.   [#] contrackproc
  53.   [#] controlstrip.h
  54.   [#] cpugestalt
  55.   [#] createcontrol
  56.   [#] custdragroutine
  57.   [#] defaultdir
  58.   [#] dloghandler
  59.   [#] dragphfs
  60.   [#] drawicon
  61.   [#] drivers
  62.   [#] ejectcd
  63.   [#] files
  64.   [#] fltinasm
  65.   [#] fsgetcur6.7
  66.   [#] fsgetcurappspec
  67.   [#] fspdirs
  68.   [#] getaliasfile
  69.   [#] getatinfo
  70.   [#] handleinfo
  71.   [#] handleodocs
  72.   [#] hasfolderlock
  73.   [#] hfsdispatch
  74.   [#] hfsdispatch2
  75.   [#] hideapps
  76.   [#] hidefile
  77.   [#] hideself
  78.   [#] iconmenutitle
  79.   [#] initapppatch
  80.   [#] lettercount
  81.   [#] loadcoderes
  82.   [#] manipulators
  83.   [#] mbarheight
  84.   [#] menumgrstuff
  85.   [#] microsecs
  86.   [#] mycopypixels
  87.   [#] mymovefsspec
  88.   [#] myreadline
  89.   [#] n2intc5
  90.   [#] ostypetopstr
  91.   [#] palettestuff
  92.   [#] patchdesk
  93.   [#] patchtrap
  94.   [#] pictcdef
  95.   [#] pixmap2pict
  96.   [#] qtcopybits
  97.   [#] rectcopy
  98.   [#] res.h
  99.   [#] safewne
  100.   [#] saytime
  101.   [#] setcustpalette
  102.   [#] setmouse
  103.   [#] setpaintwhite
  104.   [#] sndrecord
  105.   [#] socklisten
  106.   [#] soundsnippets
  107.   [#] str2extended
  108.   [#] synchro.c
  109.   [#] syseventpatch
  110.   [#] tab_patch.c
  111.   [#] tcpstream
  112.   [#] ufix2x
  113.   [#] updatedesk
  114.   [#] volejectable
  115.  
  116.   [!] Who's Who List
  117.   [!] Archive organization
  118.   
  119.   The alt.sources.mac archive is at ftpbio.bgsu.edu
  120. (129.1.252.66) in the /ftp/pub/alt.sources.mac directory.  
  121. Files listed with an [*] before them are in the vol-08
  122. directory.  Files listed with an [#] in front of them
  123. are in the /ftp/pub/alt.sources.mac/snippets-v02 directory.
  124. Scripts are stored in the /ftp/pub/alt.sources.mac/scripts
  125. directory.
  126.  
  127.   Also stored at the archive site are the FAQs for the
  128. Mac newsgroups in the /ftp/pub/macfaqs directory.  Postings to
  129. comp.sources.mac are archived in the /ftp/pub/comp.sources.mac
  130. directory.  The alt.sources.mac digests are archived in the
  131. /ftp/pub/digests directory.
  132.  
  133.   The alt.sources.mac newsgroup is for the distribution of
  134. sources only.
  135.  
  136. ************************************************************
  137.  
  138. From: dnebing@bgsuvax.bgsu.edu (Dave Nebinger)
  139. Subject: Administrivia
  140.  
  141.   The only thing I have to add this month is my response to
  142. a thread that was started on the comp.sources.mac.programmer
  143. newsgroup.  Basically there was interest amongst the posters
  144. to append information to public source code.  The information
  145. included, but was not limited to, peer reviews, updates,
  146. enhancements, etc.
  147.  
  148.   I've decided to implement this as another service to the
  149. Mac programming community.  If you have anything that you would
  150. like appended to one of the files in the archive, email it
  151. to me at the address below and I will see that it gets taken
  152. care of.
  153.  
  154.   Dave Nebinger (dnebing@bgsuvax.bgsu.edu)
  155.   
  156. ************************************************************
  157.  
  158. From: zig@WC.Novell.COM (Zig Zichterman)
  159. To: dnebing@andy.bgsu.edu
  160. Subject: 3D Buttons Source 1.0b3
  161.  
  162. Howdy!
  163.  
  164. Attached is version 1.0b3 of my 3D Buttons CDEF.
  165. I never released 1.0b2 to the general public.
  166.  
  167. 1.0b3 has a few minor improvements.
  168. *  bug fix--explicitly set pen size to 1,1. Now draws
  169.             correctly for default buttons when the pen
  170.             is still 3,3 from drawing the default frame.
  171. * flash stomp--use offscreen GWorlds for buttons with
  172.            titles, so that the title won't flash every
  173.            time you click it. This was really annoying
  174.            for checkboxes and radio buttons.
  175. * demo dialog now movable--mostly so I could test the
  176.            CDEF on multiple monitors.
  177.  
  178. Thanks for all the interest.
  179.  
  180. --Zig Zichterman
  181. zig@aol.com
  182.  
  183. [archived as: /ftp/pub/alt.sources.mac/vol-08/3dbutsrc1.1.cpt.hqx]
  184. ===============================================================
  185.  
  186. From: kenlong@netcom.com (Ken Long)
  187. Subject: 3D-Sphere-p
  188.  
  189. This is a source I got off AOL, by Jamie Morgan, for you Pascal guys.  No 
  190. built ap. so my think (see?) is that it's like icosehedron6, or some such.
  191.  
  192. Have fun!
  193.  
  194. -Ken-
  195.  
  196. [archived as: /ftp/pub/alt.sources.mac/vol-08/3dsphere.cpt.hqx]
  197. ===============================================================
  198.  
  199. From: Ben Denckla (bdenckla@husc.harvard.edu)
  200. Subject: AIFF-based DSP C Framework
  201.  
  202. This archive contains a Think C library which provides a framework in 
  203. which user-written C functions which process the data in AIFF files may 
  204. be run.  The library contains main() and deals with all aspects of AIFF 
  205. file handling, allowing the user to concentrate on his/her processing 
  206. algorithm by writing only a small "plug-in" processing module with very 
  207. short development time.  The library uses a block-processing strategy in 
  208. order to reduce the function-call overhead when the user-written 
  209. processing function is called.  The block-processing approach is also 
  210. necessary because the large size of many AIFF files makes them impossible 
  211. to load entirely into memory.
  212.  
  213. The framework exists in source form in the folder "framework source" and 
  214. in object code form as "framework.lib".  The source uses a few Think C 
  215. extensions to C, but I suspect that it could be ported to other compilers 
  216. or even other platforms without great difficulty as long as the 
  217. assumptions about the size of data types listed in "aiff.h" hold true.  
  218. If you want to link from the sources, the linkage required is specified 
  219. at the beginning of the file "aiff.c".  Linkage for the library is the 
  220. same except for the fact that aiff.c and interface.c need not be linked 
  221. since they are what the library contains.
  222.  
  223. Ben Denckla
  224. bdenckla@husc.harvard.edu
  225. July 9, 1994
  226.  
  227. [archived as: /ftp/pub/alt.sources.mac/vol-08/aiffdsp.cpt.hqx]
  228. ===============================================================
  229.  
  230. From: drickey@irus.rri.uwo.ca (Daniel W. Rickey)
  231. Subject: animate cursor pascal
  232.  
  233. Enclosed is the source code from Inside Mac:Processes for animating the
  234. cursor using interrupts.  This same routine was posted a few months ago
  235. and has not changed since.
  236.  
  237. Daniel W. Rickey
  238. drickey@.irus.rri.uwo.ca
  239.  
  240. [archived as: /ftp/pub/alt.sources.mac/vol-08/animcurpas.cpt.hqx]
  241. ===============================================================
  242.  
  243. From: Matt Slot <fprefect@engin.umich.edu>
  244. Subject: AppeWin - Global Floaters for FBA's
  245.  
  246. If you have seen the new Speech Manager, then you know that a background
  247. only application can put a window onto the screen (contrary to popular
  248. belief). The new Text Services Manager in System 7.1 offers documented
  249. hooks for creating, disposing, and handling floating windows. These
  250. windows are layer independent (they are floating above all programs
  251. and windows), and work without patching traps (well, a quick jGNEFilter,
  252. but no traps).
  253.  
  254. This program demonstrates a shell application that puts a TSM window
  255. onto the screen, and intercepts update, click, and key events. Filling
  256. in the handler functions is the easiest way to put up your own floater.
  257. Wrapper functions restore global context, current resource file, GrafPort, 
  258. and heap zone, to make standard handling routines much easier to write.
  259.  
  260. Of course the program is background only, so it is typically launched
  261. from the Extensions Folder at startup. I like the close box on floater
  262. windows, because its an easy way to quit the program without relying
  263. on a quit Apple Event. I have added support for hiding all windows
  264. with Cmd-Escape, and to respond to screen savers and programs that
  265. take over the screen (hide the menu bar).
  266.  
  267. Matt Slot
  268. fprefect@engin.umich.edu
  269.  
  270. [archived as: /ftp/pub/alt.sources.mac/vol-08/appewindows.cpt.hqx]
  271. ===============================================================
  272.  
  273. From: kenlong@netcom.com (Ken Long)
  274. Subject: BendImageFast-c
  275.  
  276. A little thing a friend of mine on AOL wrote over the weekend - 
  277. macneils@aol.com.
  278.  
  279. I added my own Think C header and source folder custom icons.
  280.  
  281. Puts up a window and scrolls a 'PICT' up, then down, etc., in it, but the 
  282. picture also undulates from side to side (like a snake) to a sine wave.
  283.  
  284. Think C 5 project.
  285.  
  286. -Ken-
  287.  
  288. [archived as: /ftp/pub/alt.sources.mac/vol-08/bendimage.cpt.hqx]
  289. ===============================================================
  290.  
  291. From: peter.lewis@info.curtin.edu.au (Peter N Lewis)
  292. Subject: Re: Looking for Pascal CDEF and WDEF code
  293.  
  294. In article <31gq7q$40@usenet.INS.CWRU.Edu>, jude@prozac.student.cwru.edu
  295. (Jude Giampaolo) wrote:
  296.  
  297. >I'm looking for some example sample code in Pascal for WDEFs
  298. >and CDEFs. Any suggestions as to where to look?
  299.  
  300. Here's a simple CDEF to do those twiddle triangle controls, plus a
  301. framework for testing CDEFs.  The example CDEF has 16 states, being a
  302. triangle pointing in 8 directions, both filled and solid.
  303.  
  304. Enjoy,
  305.    Peter.
  306.  
  307. [archived as: /ftp/pub/alt.sources.mac/vol-08/cdefp.cpt.hqx]
  308. ===============================================================
  309.  
  310. From: kenlong@netcom.com (Ken Long)
  311. Subject: clut_fade1.1
  312.  
  313. This is an update, by Mark Womack, of the clutFader I posted 
  314. last year, which was written by Jonas Englund.
  315.  
  316. This one has buttons to fade main monitor, fade all but main
  317. monitor, or fade both. 
  318.  
  319. Enjoy!
  320.  
  321. -Ken-
  322.  
  323. kenlong@netcom.com
  324. kenlong@aol.com
  325.  
  326. [archived as: /ftp/pub/alt.sources.mac/vol-08/clutfade.cpt.hqx]
  327. ===============================================================
  328.  
  329. From: kenlong@netcom.com (Ken Long)
  330. Subject: ControlPanel-0.9.4
  331.  
  332. I thought I posted this on a.s.m.?  Guess not - couldn't find it on bio, 
  333. sumex or merit.  So, here it is! (To the amazement of those present.)
  334.  
  335. Written by Ken Worley, this is Think C 5 and 6 projects for three 
  336. things:  A control panel shell, an init shell and a patch.  The first two 
  337. show their icons at startup.  The control panel (example included) won't 
  338. open its window unless it's loaded.  But it's nicely done for a shell.
  339.  
  340. -Ken-
  341.  
  342. [archived as: /ftp/pub/alt.sources.mac/vol-08/controlpan.cpt.hqx]
  343. ===============================================================
  344.  
  345. From: Jaeger@fquest.com (Brian Stern)
  346. Newsgroups: alt.sources.mac
  347.  
  348. The following is a compressed version of a CVoice class.  This class
  349. implements a speech manager voice and can be used to speak text strings if
  350. the speech manager is installed.  The class is designed to work with TCL
  351. 1.1.3, but derives from CObject so is not overly dependent on TCL.
  352.  
  353. Enjoy,
  354.  
  355. Brian  Stern  :-{)}
  356. Jaeger@fquest.com
  357.  
  358. [archived as: /ftp/pub/alt.sources.mac/vol-08/cvoice.cpt.hqx]
  359. ===============================================================
  360.  
  361. From: gwatts@whcdfq.fnal.gov
  362. Subject: REPOST: ErrorDude 1.0d2
  363.  
  364. This project was inspired by another project that was inspired by another 
  365. project! I decided I was really sick of looking at error numbers like 
  366. -1708, etc. and having to run to a DA to look 'em up.  Yetch.  Computers 
  367. are good at this sort of thing.
  368.  
  369. Here is ErrorDude.  A little component that attempts to do this lookup 
  370. automatically.  The component has one key routine, ErrorDudeErrorText, 
  371. which will attempt to find the text for a particular OSErr passed to it.  
  372. It looks in a ERRS resource associated with the application (if present) 
  373. or in its own error text database located in the system preferences 
  374. folder. 
  375.  
  376. --
  377. Gordon Watts gwatts@fnal.fnal.gov
  378.  
  379. [archived as: /ftp/pub/alt.sources.mac/vol-08/errordude.cpt.hqx]
  380. ===============================================================
  381.  
  382. From: paulj@hacktic.nl (Paul Jongsma)
  383. Subject: zmtx/zmrx, zmodem implementation build from scratch
  384.  
  385.  This archive contains a implementation of Zmodem which is not based on
  386.  existing sources but is developed from scratch. Consult the readme and
  387.  release.notes for more information. Current supported OSses: SunOs 4.1 and
  388.  Unite!
  389.  
  390.  Version 1.02 includes crash-recovery and correct date/time handling on
  391.  received files.
  392.  
  393. [archived as: /ftp/pub/alt.sources.mac/vol-08/fastzm1.02.cpt.hqx]
  394. ===============================================================
  395.  
  396. Subject: jGNE Helper -- event filter example
  397. From: Pete Gontier <gurgle@netcom.com>
  398.  
  399. This is "jGNE Helper", a monthly posting to alt.sources.mac. It attempts
  400. to provide an example for INIT programmers interested in filtering
  401. events before they are handed to applications calling GetNextEvent
  402. (which is called by WaitNextEvent).
  403.  
  404. The jGNE filter is the Apple-sanctioned method for filtering events.
  405. (The enclosed code, however, is not Apple-sanctioned.) It is possible to
  406. patch event traps. It is sometimes even advisable. But since the jGNE
  407. filter is the sanctioned method, one ought to attempt to use it before
  408. patching traps.
  409.  
  410. This code sample has a specific conflict with older versions of PopChar.
  411. Newer versions of PopChar have a fix which makes them compatible with
  412. this code. Users of older versions of PopChar should probably upgrade to
  413. the current version anyway -- this is a very old conflict. The conflict
  414. manifests itself by rendering a good portion of the screen "impervious"
  415. to clicks unless the option key is held down.
  416.  
  417. The enclosed code is for THINK C 5 and 6. A THINK C 6 project is
  418. included. Note the settings in the Set Project Type dialog.
  419.  
  420. For further info on the jGNE filter, consult your DSC Technical Notes.
  421. This code is provided without warranty of any kind; use at your own
  422. risk. You get what you pay for, except every great once-in-a-while on
  423. Usenet.
  424.  
  425. [archived as: /ftp/pub/alt.sources.mac/vol-08/jgnehelper.cpt.hqx]
  426. ===============================================================
  427.  
  428. From: mayer@idefix.seas.upenn.edu (Mike Mayer)
  429. Subject: Fast Log Alg
  430.  
  431.   This is a small set of files for implementing a log look-up
  432.   table.  It speeds up the computation of logarithms by 35%.
  433.   Included is:
  434.   
  435.     LogLUT.c - calcs the log by using the look-up table
  436.     Log.LUT  - contains the look-up table
  437.     GenLUT.c - code for generating the look-up table.
  438.  
  439. mike
  440. ---------------------------------------------------------------------
  441. Michael A. Mayer                         mayer@idefix.seas.upenn.edu
  442. Chemical Engineering Department          MaMayer@aol.com
  443. University of Pennsylvania               
  444. 220 S. 33rd St.  Room 311A               Tel: 215 898 0054
  445. Philadelphia, PA 19104                   FAX: 215 573 2093
  446.  
  447. [archived as: /ftp/pub/alt.sources.mac/vol-08/loglut.cpt.hqx]
  448. ===============================================================
  449.  
  450. From: blob@apple.com (Brian Bechtel)
  451. Subject: ETO 15, LowMem fix
  452.  
  453. I've posted this message to alt.sources.mac because I believe the
  454. changes it mentions are important to other developers.  The message
  455. below originally appeared on the ETO discussion under the Developer
  456. Support icon on AppleLink.
  457.  
  458. --Brian Bechtel     blob@apple.com     "My opinion, not Apple's"
  459.  
  460. Enclosure: LowMemFixes.hqx (a CompactPro .sea file)
  461.  
  462. A problem was found in the 2.0a1 (ETO 15, MPW Prerelease) CIncludes
  463. low-mem accessors.  The functions were defined using 68K C calling
  464. conventions.  Unfortunately, MPW, THINK, and Metrowerks all have
  465. different 68K C calling conventions.  Thus, the interfaces don't work
  466. in all cases.
  467.  
  468. Enclosed is an update to LowMem.h and Memory.h which fixes the
  469. problem.
  470.  
  471. If you find any other bugs with 2.0a1 interfaces, use the Bug Reporter
  472. [from ftp.apple.com] and send the results to APPLE.BUGS. [from the
  473. Internet, use apple.bugs@applelink.apple.com]
  474.  
  475.  
  476. -Nick Kledzik 
  477. Macintosh Interfaces Engineer 
  478. Apple Computer, Inc.
  479.  
  480. [archived as: /ftp/pub/alt.sources.mac/vol-08/lomem.cpt.hqx]
  481. ===============================================================
  482.  
  483. From: f8dy@netaxs.com (Mark Pilgrim)
  484. Subject: Lose Your Marbles! 1.0 (THINK C 7) part 0 of 5
  485.  
  486. Lose Your Marbles! 1.0 is an infuriating board game in which you must
  487. fill a board (as small as 5 x 5, as large as 8 x 8) with marbles such that
  488. so row, column, or diagonal contains two of the same marble.  Not as easy
  489. as it sounds...
  490.  
  491. This archive contains the complete THINK C 7 project and resource files.
  492. Application also available; check ftp sites or e-mail f8dy@netaxs.com.
  493. Finger f8dy@netaxs.com for complete program list.  Copyright (C) 1994,
  494. Mark Pilgrim.  Please read enclosed file "GNU General Public License" for
  495. licensing details.
  496.  
  497. [archived as: /ftp/pub/alt.sources.mac/vol-08/looseyourmarbles.cpt.hqx]
  498. ===============================================================
  499.  
  500. From: Chris (pefv700@utpe.pe.utexas.edu)
  501. Subject: m68kdis - disassemble Motorola 68000 family object code
  502.  
  503. m68kdis is a disassembler for the Motorola 68000 family of cpu chips.
  504. The disassembler attempts to discern between the instruction and data
  505. portions of an object code file.
  506.  
  507. Just use make to build m68kdis.
  508.  
  509. m68kdis is currently untested on any code that uses F-line instructions
  510. (and will refuse to believe they are instructions unless you use -f).
  511. Hopefully, other things work :-)
  512.  
  513. There's a file for A-line instructions for the Macintosh.  It
  514. undoubtedly does *not* have all of the ones your code uses.  Use
  515. -d2 to try to find them.  Some code that I have uses some that I
  516. don't know the actual names of.  mac.089 (where all of the listings
  517. start match /^a[089]/) is the file to edit to add new instructions.
  518. After editing, do a ``make mac''.
  519.  
  520. Chris
  521. pefv700@utpe.pe.utexas.edu
  522.  
  523. [archived as: /ftp/pub/alt.sources.mac/vol-08/m68kdis.cpt.hqx]
  524. ===============================================================
  525.  
  526. From: quinn@uniwa.uwa.edu.au (Quinn "The Eskimo!")
  527. Subject: Pascal - MungeImage 1.2.0
  528.  
  529. Welcome to the world of MungeImage 1.2.0, with new improved
  530. and hopefully bug-free features including DART image mounting.
  531. (Yay!!!!  Thanks go to Ken McLeod for organising to get Apple
  532. to release a library that decompresses DART files!!!)
  533.  
  534. MungeImage 1.2.0 mounts DiskCopy and DART images on the desktop
  535. as virtual floppy disks.  Useful but not exciting.
  536.  
  537. Fully AppleScriptable! (:
  538.  
  539. Improvements over 1.1.0 include...
  540.  
  541. o DART support
  542. o AppleScriptable read-write option
  543. o disk images compressed to conserve memory
  544. o spins cursor to indicate image load delay
  545.  
  546. Share and Enjoy.
  547.  
  548. Quinn "The Eskimo!" <quinn@cs.uwa.edu.au>
  549. Peter N Lewis <peter.lewis@info.curtin.edu.au>
  550.  
  551. [archived as: /ftp/pub/alt.sources.mac/vol-08/mungeimage1.2.cpt.hqx]
  552. ===============================================================
  553.  
  554. From: kenlong@netcom.com (Ken Long)
  555. Subject: NewCalendar-c
  556.  
  557. Not TOO new - only 1994.  This is a file I found on AOL that only put up 
  558. 9 months of the calendar.  So I made it do 12 and, when I did, I had to 
  559. rearrange the layout.  While I was at it, I put some frames and lines in 
  560. to spruce it up (that's an airplane builder's term).
  561.  
  562. So, it puts up a window, displays all months of 1994 and exits on 
  563. mouseDown.  What could be simpler - right?
  564.  
  565. This is just a plain calendar demo, in case someone wondered how to do 
  566. one and couldn't find source for such.
  567.  
  568. The program will not update itself for 1995, so that will be YOUR thing:  
  569. To make it do that.  Please repost when you get that part to work.
  570.  
  571. -Ken-
  572.  
  573. [archived as: /ftp/pub/alt.sources.mac/vol-08/newcalendar.cpt.hqx]
  574. ===============================================================
  575.  
  576. From: kenlong@netcom.com (Ken Long)
  577. Subject: NewHelp-p
  578.  
  579. Updated to run in Think Pascal 4.0.2, on 7 August 1994,
  580. by Kenneth A. Long, as another old P source gets brought back
  581. from the dead at itty bitty bytes(tm).
  582.  
  583. But it's not too old!  And required almost no corrections.  But it's an 
  584. nicely done help system which you can add to your programs.  Uses styled 
  585. text, with a click index.
  586.  
  587. Author: R. Fronabarger.
  588.  
  589. [archived as: /ftp/pub/alt.sources.mac/vol-08/newhelp.cpt.hqx]
  590. ===============================================================
  591.  
  592. From: kenlong@netcom.com (Ken Long)
  593. Subject: NewIdle-c
  594.  
  595. This contains four Think C projects.  Two are DA's and two are applications.
  596. There was no author credits, but judging from where I found the DA 
  597. source (in the CUMUG stuff), it was probably Steve Hawley.
  598.  
  599. The two DA sources ran like I found them - nothing new there.  The ap's 
  600. are just the action routines hooked up to Bullseye, modified slightly.
  601.  
  602. One is the famous Moire screensaver DA, and the other is similar which 
  603. does polygons only.
  604.  
  605. Hot keys modify the action.
  606.  
  607. Nothing special about these, but HEY!  It's C source!
  608.  
  609. Enjoy!
  610.  
  611. -Ken-
  612.  
  613. [archived as: /ftp/pub/alt.sources.mac/vol-08/newidle.cpt.hqx]
  614. ===============================================================
  615.  
  616. From: kenlong@netcom.com (Ken Long)
  617. Subject: NewXBitMap-c
  618.  
  619. File:  NewXBitMap-c.sit.hqx
  620. -----------------------------------------------------------------
  621. Another (not to old) C source brought back from the dead,
  622. by Kenneth A. Long at itty bitty bytes(tm)!
  623. -----------------------------------------------------------------
  624. Originally written by  Earle R. Horton  Friday, March 10, 1989.
  625.  
  626. I found this on an Internet site that has old sumex-aim files.
  627. I fixed two compiler complaints with "(char *)" and built the
  628. ..rsrc file with resTools 3.0 and a little nudging.  Must have
  629. been an OLD version of Rez that made the .r file!
  630.  
  631. The most of the action menus were disabled, so a little ResEditing
  632. fixed that.
  633.  
  634. Enjoy!
  635.  
  636. kenlong@netcom.com
  637. kenlong@aol.com
  638.  
  639. -----------------------------------------------------------------
  640.  
  641.      This is the C source to my 'PICT' to X Bitmap converter
  642. program. The source is not real pretty, and there appears to be a
  643. dearth of comments, but it does what it intended to do.  This code
  644. generates an application which can read X Bitmap files and convert
  645. them to 'PICT', or vice versa.
  646.  
  647.      The source can be compiled with either Aztec C 3.6c or MPW C
  648. 2.0.2.  It is meant to be compiled with "-D_INLINE" when using
  649. Aztec C, which means that InLine ToolBox calls are used in
  650. preference to glue, whenever possible.  I produced the binary I
  651. posted with Aztec C, the MPW Shell, and Rez.  If you don't have
  652. Rez, I recommend copying the resources out of the posted binary. 
  653. I also produced a binary using the MPW compiler, and it seemed to
  654. work OK.  Dunno about any newer compiler versions.
  655.  
  656.     Program to convert X11 Bitmap files to Macintosh 'PICT' files, 
  657. and vice versa.  Also useful as a viewer.
  658.  
  659.     This source code is hereby placed into the public domain.
  660.  
  661.     Earle R. Horton  Friday, March 10, 1989
  662.  
  663. [archived as: /ftp/pub/alt.sources.mac/vol-08/newxbitmap.cpt.hqx]
  664. ===============================================================
  665.  
  666. From: ingemar@lysator.liu.se (Ingemar Ragnemalm)
  667. Subject: Out Of This GWorld for Think Pascal
  668.  
  669. This is the DTS demo Out Of This GWorld - which does NOT demonstrate
  670. GWorlds but rather palette animation - in Think Pascal version.
  671.  
  672. [archived as: /ftp/pub/alt.sources.mac/vol-08/ootgw.pas.cpt.hqx]
  673. ===============================================================
  674.  
  675. From: ingemar@lysator.liu.se (Ingemar Ragnemalm)
  676. Subject: P4/Mac 1.0, Pascal interpreter with source code
  677.  
  678. I found the P4 Pascal interpreter on an ftp site recently, and made a quick
  679. port to the Mac. It only implements the minimal so-called standard Pascal
  680. (of the 70's), text only, and it is interpreting (slow), so it is *not*
  681. for Mac application programming, but perhaps for homework during beginner
  682. Pascal classes? Or perhaps it can be integrated in some bigger package that
  683. needs a simple built-in programming language? I don't know; it's free anyway.
  684.  
  685. Full Think Pascal sources included, as well as the original sources.
  686.  
  687. [archived as: /ftp/pub/alt.sources.mac/vol-08/p4mac.cpt.hqx]
  688. ===============================================================
  689.  
  690. From: ingemar@lysator.liu.se (Ingemar Ragnemalm)
  691. Subject: PCalendar (Pascal)
  692.  
  693. Ken Long posted NewCalendar recently. Here is a version for Think Pascal.
  694. It works for any year between 1904 and 2040, and it saves the result in
  695. the clipboard.
  696.  
  697. /Ingemar Ragnemalm
  698.  
  699. [archived as: /ftp/pub/alt.sources.mac/vol-08/pcalendar.cpt.hqx]
  700. ===============================================================
  701.  
  702. From: kenlong@netcom.com (Ken Long)
  703. Subject: PlotManager2.53b plus
  704.  
  705. It seems my previous post of PlotManager was incomplete.  Yes, I removed 
  706. the project file because it contained objects and I had no Pascal 
  707. compiler.  but NOW I have Think Pascal 4.0.2!  So, in reviewing the 
  708. PlotManager file I see that I may have left out a ReadMe file and a 
  709. folder containing sample text files.
  710.  
  711. PlotManager is no fun without examples, just like programming is no fun 
  712. without source examples.
  713.  
  714. So, here is the complete PlotManager 2.53, checked to make sure it runs, 
  715. objects removed.  Please remove any of the previous post copies you may 
  716. have posted somewhere.
  717.  
  718. -ken-
  719.  
  720. [archived as: /ftp/pub/alt.sources.mac/vol-08/plotman2.53.cpt.hqx]
  721. ===============================================================
  722.  
  723. From: kenlong@netcom.com (Ken Long)
  724. Subject: ResForkUtilities.p
  725.  
  726. Updated to a Think Pascal 4.0.2 file and passed on to the internet by 
  727. Kenneth A. Long (it's only a snippet, but it will compile.)
  728.  
  729. ****************************************************
  730.  
  731. ResForkUtilities.p
  732.  
  733. Written by: Keith R. Dunleavy (kdunleav@student.med.harvard.edu)
  734.  
  735. Code history: Written for use with Symantec THINK Pascal 4.0
  736. (Object Oriented) First created as Version 1.0 on 4/17/92 Icon
  737. plotting code added on 5/11/92
  738.  
  739. A conglomeration of Resource Fork utilities.
  740.  
  741. ACKNOWLEDGEMENTS:
  742.  * Code used for the plotting of icons was translated from Patrick
  743. C. Beard's C coded "ShowIconFamily" source (modified by: James W.
  744. Walker).
  745.  
  746.  * Code used for the obtainment of application version information
  747. was inspired by Apple's Developer Technical Support Notes #189 
  748. "Version Territory"
  749.  
  750. COMMENTS:
  751. There are certainly ways to code these methods more efficiently.
  752. For instance, the seperate methods for PlotSmall and PlotLarge
  753. icons could be  combined with some parameter passed in to make the
  754. necessary calcs which are different between the two resource
  755. formats. Nevertheless... these methods were written with the intent
  756. of helping out those who, like I was, are grapling with the tasks
  757. of mapping "things" to PixMaps. For a while I could find nobody who
  758. had concrete code for doing a color mapping to the screen.
  759. Eventually I got some good tips though.  So... I included the
  760. fruits of these tips, and some other resource handlers for your
  761. enjoyment. I hope that they're helpfull. This is certainly 
  762. EducationWare and is no big deal. If you do write a program that
  763. uses these methods 8.7 gazillion times... please just mention it.
  764.  
  765. CORRECTIONS:
  766.  
  767. Things can always be coded better. People usually make mistakes. So
  768. please, if you have any suggestions, corrections, questions, or
  769. even some helpful resource handler methods of your own... don't
  770. hesitate to drop me some EMail at the above address.
  771.  
  772. [archived as: /ftp/pub/alt.sources.mac/vol-08/resfork.cpt.hqx]
  773. ===============================================================
  774.  
  775. To: "Mr. Neb"<dnebing@andy.bgsu.edu>
  776. From: rich@i-link.com (Richard R. Harms)
  777. Subject: Re: Wanted: Res Fork Parser (code or info)
  778.  
  779. You're the first person I'm sending this too - I can't give out all the
  780. code for this, but I'll send you the resource stuff, and the headers for
  781. the other bits of it... that should be enough to give some idea on how to
  782. make it work. It does use memory managment stuff I'm not including - you
  783. should be able to make the stuff work through malloc... Its all part of a
  784. portable library I'm using for some cross platform communications stuff I'm
  785. working on... *ponder* Hmmm... maybe I should just release the whole thing.
  786. :)   It also uses a copy of MetroWerks' list classes - I have a version
  787. I've got to build using gcc... if you have MetroWerks, I don't see any
  788. problem sending that too (let me know please).
  789.  
  790. [archived as: /ftp/pub/alt.sources.mac/vol-08/resmap.cpt.hqx]
  791. ===============================================================
  792.  
  793. From: kenlong@netcom.com (Ken Long)
  794. Subject: RingTree demo (P)
  795.  
  796. Got it off AOL.  Draws a window with a "bullseye" like Ingemar's 
  797. OffSreenToys, but B/W, then starts at center and draws a representation 
  798. of a hierarchy with 5 pixel circles an 1, 1 lines.
  799.  
  800. I included the original in addition to my rendition.  Mine gets its 
  801. window from a res. and has a button exit repeat loop, so you won't have 
  802. to fire it up every time you want to see a different random example.
  803.  
  804. Built ap. demo an no extra cost.
  805.  
  806. Enjoy!
  807.  
  808. -Ken-
  809.  
  810. [archived as: /ftp/pub/alt.sources.mac/vol-08/ringtree.cpt.hqx]
  811. ===============================================================
  812.  
  813. From: "Andrew C. Plotkin" <ap1i+@andrew.cmu.edu>
  814. Subject: sampled-sound example code
  815.  
  816. This is a very simple demo of the sampled-sound synthesizer.
  817. It allocates four channels, loads a sampled sound into each,
  818. and then plays a four-voice song using freqDurationCmds.
  819.  
  820. The note sequences and the sound analysis algorithm was
  821. ported from SoundApp, which is available as demo code on
  822. the develop bookmark CDs and other places.
  823.  
  824. C code, including a Think C 5.0.4 project file.
  825. Use and distribute freely.
  826. Treat this as a code snippet; no guarantees whatsoever.
  827.  
  828. Andrew Plotkin
  829.  
  830. [archived as: /ftp/pub/alt.sources.mac/vol-08/sampledsnd.cpt.hqx]
  831. ===============================================================
  832.  
  833. From: f8dy@netaxs.com (Mark Pilgrim)
  834. Subject: Shutdown FX 2.0.1 (THINK C 7) part 0 of 9
  835.  
  836. Shutdown FX 2.0.1 is a fun little software package which will fade your
  837. screen to black on restart and/or shutdown with one of over 50 graphic
  838. effects.  This package includes complete THINK C 7 source code, project
  839. files, and resource files for all components of the Shutdown FX package:
  840. system extension, startup application, control application, Gestalt
  841. function, shutdown procedure, Notification Manager response procedure,
  842. and all 59 fade modules.  (Relax, I didn't include 59 project files.)
  843.  
  844. Since fades are stored as external modules (each in its own file), other
  845. programmers can easily create their own fades and add to their collection.
  846. See the Shutdown FX control application help section ("tech talk" page)
  847. for more details, or read about it yourself in TEXT 613 in sfx.<pi>.rsrc.
  848.  
  849. This version hopefully fixes all the problems in version 2.0 beta.
  850.  
  851. The compiled, ready-to-use files are available; check ftp sites or e-mail
  852. f8dy@netaxs.com.  Finger f8dy@netaxs.com for complete program list.
  853. Copyright (C) 1993-4, Mark Pilgrim.  Please read enclosed file "GNU General
  854. Public License" for licensing details.
  855.  
  856. [archived as: /ftp/pub/alt.sources.mac/vol-08/shutdownfx2.01.cpt.hqx]
  857. ===============================================================
  858.  
  859. From: kenlong@netcom.com (Ken Long)
  860. Subject: SplatMaster-P
  861.  
  862. This is Jon Benton's "SplatMaster" for Think Pascal 4.0.2.
  863. A "splat" is a starburst lookin' thing like you see on grocery
  864. products, with writing saying "New" or "Improved" etc.
  865. I didn't see this in my "net surfing," so I thought I'd toss it 
  866. in here (a.s.m.) for y'all to enjoy.
  867.  
  868. This was the source I got my C routine for VerticalDrawString
  869. from.
  870.  
  871. -Ken-
  872.  
  873. kenlong@netcom.com
  874. kenlong@aol.com
  875.  
  876. [archived as: /ftp/pub/alt.sources.mac/vol-08/splatmaster.cpt.hqx]
  877. ===============================================================
  878.  
  879. From: kenlong@netcom.com (Ken Long)
  880. Subject: SquareWave-c
  881.  
  882. This is a Think C demo project and application I made from a .c file I 
  883. got of the net that was obviously written in Aztec C (all lower case).
  884.  
  885. I had fun getting it running and I'm posting it back on the net in 
  886. running condition so that new Mac C programmers can benefit from it 
  887. without the frustration that comes with downloading something that 
  888. doesn't work added to the lack of expertise to get it to work.
  889.  
  890. I'm no expert, but I learn by fixing old programs or making snippets into 
  891. demo projects.  I program for fun and profit - so far it's been LOTS of fun!
  892.  
  893. Squre Wave puts up a window with vertical lines a pixel wide, a pixel 
  894. apart and a pixel or two shorter than the one on each ones left.  These 
  895. represent square wave sound frequencies.  A menu item lets you play them 
  896. from left to right.  Another menu item lets you change the lenght of 
  897. these lines - and thereby their frequencies - by mouse location.  No 
  898. click.  When you have them like you want them, click the mouse and it 
  899. will play.
  900.  
  901. Another menu item lets you play the tones AS you change them.  It's the 
  902. closest source to "Hendrix" that I've seen yet.
  903.  
  904. Enjoy!
  905.  
  906. -Ken-
  907.  
  908. [archived as: /ftp/pub/alt.sources.mac/vol-08/squarewave.cpt.hqx]
  909. ===============================================================
  910.  
  911. From: f8dy@netaxs.com (Mark Pilgrim)
  912. Subject: Startup Screen Picker 1.2 (THINK C 7) part 0 of 2
  913.  
  914. Startup Screen Picker 1.2 is a system extension (and startup application)
  915. which will pick a random startup screen to be displayed during system startup.
  916.  
  917. This archive contains complete THINK C 7 source for the INIT and the
  918. startup application, including all necessary resource and project files. 
  919. The compiled, ready-to-use programs are also available; check ftp sites or
  920. e-mail f8dy@netaxs.com.  Finger f8dy@netaxs.com for a complete program
  921. list.  Startup Screen Picker 1.2 is copyright 1993-4, Mark Pilgrim. 
  922. Please read enclosed file "GNU General Public License" for licensing details.
  923.  
  924. [archived as: /ftp/pub/alt.sources.mac/vol-08/ssp1.2.cpt.hqx]
  925. ===============================================================
  926.  
  927. From: sholmes@netrix.com (Stephen R Holmes)
  928. Subject: standard CRC table generator (Think C)
  929.  
  930. Ken Long's recent post prompted me to dust-off the enclosed
  931. throwaway application:  it generates the CRC tables for the
  932. four most common CRC mechanisms (CCITT and CRC-16, in their
  933. 'normal' and 'bit-reversed' flavors), then allows you to enter
  934. hex strings (as ASCII chars) and computes their CRCs using
  935. each defined method.  You can easily add 'new' methods via
  936. a one-line table change in the source, specifying an alternative
  937. generator polynomial and initial 'seed'.  Ported from a UN*X
  938. quick-n-dirty utility, so no nifty Mac interface :)
  939.  
  940. /srh
  941. --
  942.  
  943. [archived as: /ftp/pub/alt.sources.mac/vol-08/stdcrc.cpt.hqx]
  944. ===============================================================
  945.  
  946. From: kenlong@netcom.com (Ken Long)
  947. Subject: TC-QKeys set
  948.  
  949. This is the QuickKeys set I use.  If anyone would like to improve or 
  950. expand it, then repost, please do.
  951.  
  952. I actually use a bigger set than this, but I didn't want to get into a 
  953. lengthy explanation of some of the sequences until I get it finalized.
  954.  
  955. The one sequence on here is for handling character case.  This is very 
  956. handy in Pascal to C.  You'll need to make the Think C "Search" menu item 
  957. "Replace All" have a Command equivalent of the asterisk on the numeric 
  958. keypad section of your board.  Use Commander or ResEdit for this.  This 
  959. is needed for the included sequence.
  960.  
  961. To use the sequence, find a word you want to change the case of.  Like 
  962. "ITEMHIT" to "itemHit" and change it, then select it.  Now simply hit 
  963. Control (keypad zero).  It will Copy, open the Find dialog, paste in what
  964. it copied, tab to the Change To field, paste it in there too, hit return, 
  965. replace all, and hit return to make the replace count dialog go away.  A 
  966. "one-shot deal."
  967.  
  968. The rest are all text inserters for repetitious C items.  The cool thing 
  969. about these QK text items is that they will paste into the Find or Change 
  970. To fields of the Find dialog, whereas a CMaster Clipboard item won't (at 
  971. least I haven't found a way yet).
  972.  
  973. QuickKeys text is a little incompatible with a text editor for big 
  974. things, like the InitMacintosh one.  I tried putting a tab before each 
  975. line, but the "smart indent" got stupid with it.  So you'll have to tab 
  976. it yourself.
  977.  
  978. But for the words, etc., it's great!
  979.  
  980. -Ken-
  981.  
  982. [archived as: /ftp/pub/alt.sources.mac/vol-08/thinkcquickkeys.cpt.hqx]
  983. ===============================================================
  984.  
  985. From: Patrick Staldelmann (Patrick.Stadelmann@etudiants.unine.ch)
  986. Subject: Think C DCMD shell
  987.  
  988. This package will allow you to write dcmds (debugger commands)
  989. in Think C. It contains the glue code necessary to link the
  990. "dcmd.o" library, and Think Put, a collection of routines to
  991. create formatted output in dcmds.
  992.  
  993. To use this package, you need the "dcmd.o" library and the
  994. "dcmd.h" header from Apple Computer, Inc. These files are
  995. available along with MacsBug from ftp.apple.com in the
  996. dts/mac/tools/macsbug/ directory.
  997.  
  998. This package is freeware and may be distributed freely.
  999.  
  1000. Patrick
  1001.  
  1002. [archived as: /ftp/pub/alt.sources.mac/vol-08/thinkcdcmds.cpt.hqx]
  1003. ===============================================================
  1004.  
  1005. From: kenlong@netcom.com (Ken Long)
  1006. Subject: TrieExample3-p
  1007.  
  1008. Another AOL snipe.  This one is a console job - if that's any 
  1009. consolation.  Posted as I got it.
  1010.  
  1011. It's supposed to be some sort of dictionary reTRIEval thing.  Read up  on 
  1012. it in the docs.
  1013.  
  1014. -Ken-
  1015.  
  1016. [archived as: /ftp/pub/alt.sources.mac/vol-08/trieexample.cpt.hqx]
  1017. ===============================================================
  1018.  
  1019. From: kenlong@netcom.com (Ken Long)
  1020. Subject: TruchetTiles-P
  1021.  
  1022. Another Jon Benton source in Think Pascal 4.0.2.
  1023.  
  1024. Makes "Truchet Tiles" - a random, maze-like pattern in square 
  1025. or round.
  1026.  
  1027. -Ken-
  1028.  
  1029. [archived as: /ftp/pub/alt.sources.mac/vol-08/truchettiles.cpt.hqx]
  1030. ===============================================================
  1031.  
  1032. From: kenlong@netcom.com (Ken Long)
  1033. Subject: XModemTableGen-c
  1034.  
  1035. This was a .c file I found while seaching FTP sites, which did not 
  1036. compile and run on Think C without some minor corrections.  Now it works 
  1037. fine and I included a project and a built ap.
  1038.  
  1039. The original file was called XMDMTABGEN.C and was touted as a table 
  1040. generator for X-Modem CRC, output as assembly.  Well, I don't mess with 
  1041. much serial i/o stuff, or much having to do with it, so I have no idea if 
  1042. this thing has any use - the author must have thought so, so it probably 
  1043. did at the time.
  1044.  
  1045. But, the value in it I saw was that of a table generator.  This makes the 
  1046. second one I posted (the other was in NewStringArt-c).  I have a 
  1047. fascination with compilers, interpreters, linkers, diassemblers, 
  1048. translators and that sort of thing, though limited knowledge in those 
  1049. fields.  So I think this program has potential additional uses for 
  1050. modified functionality and output.
  1051.  
  1052. If nothing else, it's more running C source.
  1053.  
  1054. Enjoy!
  1055.  
  1056. -ken-
  1057.  
  1058. [archived as: /ftp/pub/alt.sources.mac/vol-08/xmodemtab.cpt.hqx]
  1059.  
  1060. ************************************************************
  1061.  
  1062. snippetname     Description
  1063.   
  1064. snippetname     Description
  1065.   
  1066. anetspatch      An ExitToShell patch
  1067.   Jim Browne (jbrowne@zaphod.ncsa.uiuc.edu)
  1068.   C code for an exit to shell patch.
  1069.   
  1070. antialiasedtxt  Anti-aliased text using OffScreen GWorlds
  1071.   Scott Bronson (urge@mcl.ucsb.edu)
  1072.   C code to draw anti-aliased strings.
  1073.   
  1074. buildcomplist   Builds a list of installed components
  1075.   Paul M. Hoffman (paul.hoffman@umich.edu)
  1076.   Function which shows how to build a list of installed
  1077.   components.
  1078.   
  1079. canonical       Canonical number conversion
  1080.   Pete Resnick (resnick@uiuc.edu)
  1081.   Pete describes in great detail how to do canonical number
  1082.   conversion.
  1083.   
  1084. contrackproc    Defining control track procedures for PPC
  1085.   Brad Hochberg (bhochber@us.oracle.com)
  1086.   Brad shows how to define a control tracking procedure
  1087.   using the Universal Headers.
  1088.   
  1089. controlstrip.h  Apple's official ControlStrip header file
  1090.   Martin Minow (minow@apple.com)
  1091.   Martin posted the official ControlStrip header file.
  1092.   
  1093. cpugestalt      Gestalt codes for PPC CPU's
  1094.   Marshall Clow (mclow@san_marcos.csusm.edu)
  1095.   Gestalt codes for all of the current Mac CPU's.
  1096.   
  1097. createcontrol   Creating controls in ResEdit
  1098.   Jeff Rogers (jcr@mbunix.mitre.org)
  1099.   Documents the creation of controls, DLOGs, etc., in
  1100.   ResEdit.
  1101.   
  1102. custdragroutine Custom draging routine
  1103.   Michel Pollet (michel@mimetics.fr)
  1104.   Demonstrates how to call DragGrayRgn.
  1105.   
  1106. defaultdir      The default directory for an app
  1107.   Brian Hamlin (bhamlin@netcom.com)
  1108.   C code to get the application's VRefNum and DirID.
  1109.   
  1110. dloghandler     Dialog utility routines
  1111.   Todd Wilson (tdwilson@freenet.columbus.oh.us)
  1112.   Useful dialog routines to frame default items, change
  1113.   fonts, and patch [Get]NewControl.
  1114.   
  1115. dragphfs        Promise HFS and the Drag Manager
  1116.   Leonard Rosenthol (leonardr@netcom.com)
  1117.   Leonard shows how to implement the 'flavors' of
  1118.   Promise HFS with the Drag Manager.
  1119.   
  1120. drawicon        Drawing the Finder's icon for a file
  1121.   Jeff Beeghly (jbeeghly@u.washington.edu)
  1122.   Fetches a file's icon from the Finder & displays it.
  1123.   
  1124. drivers         Checking availability of device drivers
  1125.   Pete Gontier (gurgle@dnai.com)
  1126.   C code to check for the availability of a RAM disk.
  1127.   
  1128. ejectcd         Ejecting a CD
  1129.   Glenn R. Howes (grhowes@students.wisc.edu)
  1130.   C code to eject a CD.
  1131.   
  1132. files           Easy file access functions
  1133.   Roland Kwee (rkwee@ee.pdx.edu)
  1134.   Roland shares some functions to make file handing
  1135.   easier.
  1136.   
  1137. fltinasm        Floating pt numbers in assembly language
  1138.   Juri Munkki (jmunkki@beta.hut.fi)
  1139.   Juri demonstrates how to do floating pt arith in Assembly
  1140.   language.
  1141.   
  1142. fsgetcur6.7     Get the app's DirID in sys 6/7
  1143.   Ken Hancock (kenh@world.std.com)
  1144.   Getting the app's DirID that works for systems 6 & 7.
  1145.   
  1146. fsgetcurappspec Get the app's FSSpec
  1147.   Pete Gontier (gurgle@dnai.com)
  1148.   Getting the app's FSSpec.
  1149.   
  1150. fspdirs         Directory FSp Functions
  1151.   Jim Luthor (jumplong@aol.com)
  1152.   Jim shows how to access directories with FSSpecs.
  1153.   
  1154. getaliasfile    Getting an alias file using StandardFile
  1155.   Matt Mora (mxmora@unix.sri.com)
  1156.   Matt shows how to get an alias file using StandardFile
  1157.   (avoiding the Finder's automatic alias resolving feature).
  1158.   
  1159. getatinfo       Calling PGetAppleTalkInfo
  1160.   Jim Luthor (jumplong@aol.com)
  1161.   Jim shows how to properly call PGetAppleTalkInfo.
  1162.   
  1163. handleinfo      Handle utilities
  1164.   Jon Wätte (h+@nada.kth.se)
  1165.   Jon shares some of his Handle utilities
  1166.   (AddDataToHandle, etc.).
  1167.   
  1168. handleodocs     Handling modifier keys with odoc events.
  1169.   Peter N Lewis (peter.lewis@info.curtin.edu.au)
  1170.   Pete shows how to handle modifier keys when receiving
  1171.   the 'odoc' AppleEvent.
  1172.   
  1173. hasfolderlock   Locking folders
  1174.   Jim Luthor (jumplong@aol.com)
  1175.   Determining whether a volume supports locking a folder.
  1176.   
  1177. hfsdispatch     Patching HFSDispatch
  1178.   Vicente Giles (v_giles@ccuma.sci.uma.es)
  1179.   How to patch HFSDispatch to make a file look bigger
  1180.   than it actually is (this code fails if FileSharing
  1181.   is on...).
  1182.   
  1183. hfsdispatch2    Patching HFSDispatch
  1184.   Vicente Giles (v_giles@ccuma.sci.uma.es)
  1185.   How to patch HFSDispatch to make a file look bigger
  1186.   than it actually is.
  1187.  
  1188. hideapps        Hiding applications
  1189.   Ross Brown (ross@bnr.ca)
  1190.   Calling SystemMenu to hide all applications.
  1191.   
  1192. hidefile        Making a file invisible
  1193.   Anders Wahlin (Anders.Wahlin@hum.gu.se)
  1194.   C routine to make a file (from an FSSpec)
  1195.   invisible.
  1196.   
  1197. hideself        Hiding the application
  1198.   Spencer Low (spencerl@crl.com)
  1199.   Describes how to hide the application.
  1200.   
  1201. iconmenutitle   Using an icon as a menu title
  1202.   Ross Brown (ross@bnr.ca)
  1203.   How to use an icon for a menu title.
  1204.   
  1205. initapppatch    Patching InitApplication
  1206.   Lawrence D'Oliveiro (ldo@waikato.ac.nz)
  1207.   Shows how to patch InitApplication properly.
  1208.   
  1209. lettercount     Counting letter usage & percent
  1210.   Karl Hahn (hahn@newshost.lds.loral.com)
  1211.   ANSI code for determining letter frequency (crypto
  1212.   folks use this).
  1213.   
  1214. loadcoderes     Loading code resources
  1215.   Spencer Low (spencerl@crl.com)
  1216.   Loading and calling code resources.
  1217.   
  1218. manipulators    Manipulators in CodeWarrior C++
  1219.   MW Ron (mwron@aol.com)
  1220.   C++ stream code which uses manipulators.
  1221.   
  1222. mbarheight      Changing the menu bar height
  1223.   Ben Martz (benmartz@grex.cyberspace.org)
  1224.   Accessing the lomem globals using the LM routines.
  1225.   
  1226. menumgrstuff    Special system menu info
  1227.   Robert Berger (rwb+@cs.cmu.edu)
  1228.   Info concerning the keyboard, process, and help
  1229.   menus.
  1230.   
  1231. microsecs       Timing by microseconds
  1232.   Martin Minow (minow@apple.com)
  1233.   C code showing how to use the MicroSeconds trap,
  1234.   as well as some utility routines.
  1235.   
  1236. mycopypixels    A 'CopyBits' clone using doubles
  1237.   Matt Mora (mxmora@unix.sri.com)
  1238.   Matt's code for implementing copybits using floats.
  1239.   
  1240. mymovefsspec    Moving files/folders
  1241.   John Jensen (jjensen@kaiwan.com)
  1242.   C function to move a file/folder from one FSSpec to
  1243.   another.
  1244.   
  1245. myreadline      Reading text files line by line
  1246.   Peter Lewis (peter.lewis@info.curtin.edu.au)
  1247.   Peter's pascal code to read one line at a time from
  1248.   a text file.
  1249.   
  1250. n2intc5         Compiling NW in TC5
  1251.   Ken Long (kenlong@netcom.com)
  1252.   Changes for the NewsWatcher 2.0d17 for compiling
  1253.   with Think C 5.0.4.
  1254.   
  1255. ostypetopstr    Converting OSTypes to pascal strings
  1256.   Robert Mah (rmah@panix.com)
  1257.   Rob demonstrates one of the many ways to convert
  1258.   OSType variables to pascal strings.
  1259.   
  1260. palettestuff    Creating custom palettes
  1261.   Andrew Southwick (andrew@csgrad.cs.vt.edu)
  1262.   Describes how to create a custom palette.
  1263.   
  1264. patchdesk       How to change the desktop pattern
  1265.   Jens Alfke (jens_alfke@powertalk.apple.com)
  1266.   Jens describes how to patch the system to change the
  1267.   desktop pattern.
  1268.   
  1269. patchtrap       Patch for GetResource
  1270.   Ben Martz (benmartz@grex.cyberspace.org)
  1271.   C code for patching GetResource.
  1272.   
  1273. pictcdef        Displaying a picture in a dialog
  1274.   Jim Walker (walkerj@math.scarolina.edu)
  1275.   C code for a CDEF which displays a picture.  This is
  1276.   primarily for showing picts in dialogs.
  1277.   
  1278. pixmap2pict     Converting a PixMap to a PICT
  1279.   Juri Munkki (jmunkki@beta.hut.fi)
  1280.   C code for converting a PixMap to a PICT resource.
  1281.   
  1282. qtcopybits      Calling QuickTime's CopyBits routine
  1283.   Lawrence D'Oliveiro (ldo@waikato.ac.nz)
  1284.   Lawrence shows how to call QuickTime's built-in
  1285.   CopyBits routine.
  1286.   
  1287. rectcopy        Copying grapics without using CopyBits
  1288.   Alex Metcalf (alex@metcalf.demon.co.uk)
  1289.   Alex's custom blitting code.
  1290.   
  1291. res.h           Text-based resource creation.
  1292.   Roland Kwee (rkwee@ee.pdx.edu)
  1293.   Demonstrates how to create resources using Rez (or
  1294.   the Rez Translator for Think C).
  1295.   
  1296. safewne         Safely calling WaitNextEvent
  1297.   J. Scott Howlett (howlett@netcom.com)
  1298.   Demonstrates how to call WaitNextEvent while at the
  1299.   same time limiting the amount of time that other apps
  1300.   get.
  1301.   
  1302. saytime         Code to sound out the time
  1303.   Charles Hemstreet (hemstree@cs.colostate.edu)
  1304.   C code to say the time of the day.
  1305.   
  1306. setcustpalette  Setting a custom palette
  1307.   Eric Rose (erose@nomos.com)
  1308.   C function to replace the system palette with
  1309.   a custom palette.
  1310.   
  1311. setmouse        Setting the mouse location
  1312.   Gregory Jorgensen (radixinc@aol.com)
  1313.   C code to change the mouse location.
  1314.   
  1315. setpaintwhite   Setting the PaintWhite global
  1316.   David Hua (dhua@hmc.edu)
  1317.   Pascal code to set the PaintWhite global variable.
  1318.   
  1319. sndrecord       Recording sounds
  1320.   Darren Giles (mars@netcom.com)
  1321.   C code to record sounds from the microphone.
  1322.   
  1323. socklisten      AppleTalk socket listener
  1324.   Damon Lange (dflang01@starbase.spd.louisville.edu)
  1325.   C code for an AppleTalk socket listener.
  1326.   
  1327. soundsnippets   Snippets for the Sound Manager
  1328.   Michael Moore (moorem@efn.org)
  1329.   Snippets for playing specific tones.
  1330.   
  1331. str2extended    Converting strings to extended vars
  1332.   Pete Resnick (resnick@uiuc.edu)
  1333.   Pete describes how to convert strings to extended
  1334.   variables and vice versa.
  1335.   
  1336. synchro.c       Async sound playing
  1337.   Ken Long (kenlong@netcom.com)
  1338.   Ken's code to play sounds asynchronously.
  1339.   
  1340. syseventpatch   Patching SysEvent
  1341.   Rick Warfield (Rick_Warfield@bcsmac.org)
  1342.   Jim Walker (walkerj@math.scarolina.edu)
  1343.   C code to patch SysEvent.
  1344.   
  1345. tab_patch.c     Adding tab support to TextEdit
  1346.   Raphael Costales (rcostale@nmsu.edu)
  1347.   Code to patch TextEdit to support tabs.
  1348.   
  1349. tcpstream       Opening TCP streams
  1350.   David Oster (oster@netcom.com)
  1351.   Code for initializing & opening a TCP stream.
  1352.   
  1353. ufix2x          Converting UnsignedFixed to extended
  1354.   Lawrence D'Oliveiro (ldo@waikato.ac.nz)
  1355.   Lawrence describes how to convert UnsignedFixed
  1356.   variables to extended vars.
  1357.   
  1358. updatedesk      Forcing a desktop update
  1359.   Joerg Friedrich (joerg@joergy.bds.sub.org)
  1360.   C code to force the Finder to update the desktop.
  1361.   
  1362. volejectable    Determining if a volume is ejectable
  1363.   Joe Zobkiw (zobkiw@datawatch.com) and 
  1364.   Rene G.A. Ros (rgaros@bio.vu.nl)
  1365.   C code to determine if a volume is ejectable.
  1366.   
  1367. ************************************************************
  1368.  
  1369. Who's Who in Digest #8...
  1370.  
  1371. The contributors to this digest are:
  1372.  
  1373.   Jens Alfke (jens_alfke@powertalk.apple.com)
  1374.   Brian Bechtel (blob@apple.com)
  1375.   Jeff Beeghly (jbeeghly@u.washington.edu)
  1376.   Robert Berger (rwb+@cs.cmu.edu)
  1377.   Scott Bronson (urge@mcl.ucsb.edu)
  1378.   Ross Brown (ross@bnr.ca)
  1379.   Jim Browne (jbrowne@zaphod.ncsa.uiuc.edu)
  1380.   Chris (pefv700@utpe.pe.utexas.edu)
  1381.   Marshall Clow (mclow@san_marcos.csusm.edu)
  1382.   Raphael Costales (rcostale@nmsu.edu)
  1383.   Ben Denckla (bdenckla@husc.harvard.edu)
  1384.   Joerg Friedrich (joerg@joergy.bds.sub.org)
  1385.   Darren Giles (mars@netcom.com)
  1386.   Vicente Giles (v_giles@ccuma.sci.uma.es)
  1387.   Pete Gontier (gurgle@netcom.com)
  1388.   Karl Hahn (hahn@newshost.lds.loral.com)
  1389.   Brian Hamlin (bhamlin@netcom.com)
  1390.   Ken Hancock (kenh@world.std.com)
  1391.   Richard R. Harms (rich@i-link.com)
  1392.   Charles Hemstreet (hemstree@cs.colostate.edu)
  1393.   Brad Hochberg (bhochber@us.oracle.com)
  1394.   Paul M. Hoffman (paul.hoffman@umich.edu)
  1395.   Stephen R Holmes (sholmes@netrix.com)
  1396.   Glenn R. Howes (grhowes@students.wisc.edu)
  1397.   J. Scott Howlett (howlett@netcom.com)
  1398.   David Hua (dhua@hmc.edu)
  1399.   John Jensen (jjensen@kaiwan.com)
  1400.   Paul Jongsma (paulj@hacktic.nl)
  1401.   Gregory Jorgensen (radixinc@aol.com)
  1402.   Roland Kwee (rkwee@ee.pdx.edu)
  1403.   Damon Lange (dflang01@starbase.spd.louisville.edu)
  1404.   Peter N Lewis (peter.lewis@info.curtin.edu.au)
  1405.   Ken Long (kenlong@netcom.com)
  1406.   Spencer Low (spencerl@crl.com)
  1407.   Jim Luthor (jumplong@aol.com)
  1408.   Robert Mah (rmah@panix.com)
  1409.   Ben Martz (benmartz@grex.cyberspace.org)
  1410.   Mike Mayer (mayer@idefix.seas.upenn.edu)
  1411.   Alex Metcalf (alex@metcalf.demon.co.uk)
  1412.   Martin Minow (minow@apple.com)
  1413.   Michael Moore (moorem@efn.org)
  1414.   Matt Mora (mxmora@unix.sri.com)
  1415.   Juri Munkki (jmunkki@beta.hut.fi)
  1416.   MW Ron (mwron@aol.com)
  1417.   Lawrence D'Oliveiro (ldo@waikato.ac.nz)
  1418.   David Oster (oster@netcom.com)
  1419.   Mark Pilgrim (f8dy@netaxs.com)
  1420.   Andrew C. Plotkin (ap1i+@andrew.cmu.edu)
  1421.   Michel Pollet (michel@mimetics.fr)
  1422.   Quinn "The Eskimo!" (quinn@uniwa.uwa.edu.au)
  1423.   Ingemar Ragnemalm (ingemar@lysator.liu.se)
  1424.   Pete Resnick (resnick@uiuc.edu)
  1425.   Daniel W. Rickey (drickey@irus.rri.uwo.ca)
  1426.   Jeff Rogers (jcr@mbunix.mitre.org)
  1427.   Eric Rose (erose@nomos.com)
  1428.   Leonard Rosenthol (leonardr@netcom.com)
  1429.   Matt Slot (fprefect@engin.umich.edu)
  1430.   Andrew Southwick (andrew@csgrad.cs.vt.edu)
  1431.   Patrick Staldelmann (Patrick.Stadelmann@etudiants.unine.ch)
  1432.   Brian Stern (Jaeger@fquest.com)
  1433.   Anders Wahlin (Anders.Wahlin@hum.gu.se)
  1434.   Jim Walker (walkerj@math.scarolina.edu)
  1435.   Rick Warfield (Rick_Warfield@bcsmac.org)
  1436.   Jon Wätte (h+@nada.kth.se)
  1437.   Gordon Watts (gwatts@whcdfq.fnal.gov)
  1438.   Todd Wilson (tdwilson@freenet.columbus.oh.us)
  1439.   Zig Zichterman (zig@WC.Novell.com)
  1440.   Joe Zobkiw (zobkiw@datawatch.com)
  1441.  
  1442. ************************************************************
  1443.  
  1444. The archive's organization is as follows:
  1445.  
  1446. /ftp/pub - root directory for the archive.  All available files
  1447.   can be found in this directory.
  1448.   
  1449. /ftp/pub/alt.sources.mac/vol-XX - Contains all articles posted to the
  1450.   alt.sources.mac newsgroup as well as some items posted to the
  1451.   comp.sys.mac.programmer newsgroup.  Also, any files uploaded
  1452.   to the incoming folder are put here.  All of the files are
  1453.   compressed using CompactPro and BinHex.  The files also include
  1454.   an information file with the extension .info which explain what
  1455.   the archive contains.  The 00abstracts file contains abstracts
  1456.   of the files in the directory.
  1457.   
  1458. /ftp/pub/alt.sources.mac/snippets-vXX - Contains small pieces of
  1459.   code in a textual form (no compression or BinHexing).  The
  1460.   00index file contains a brief description of each snippet.
  1461.   
  1462. /ftp/pub/alt.sources.mac/scripts - Contains scripts for any
  1463.   scripting system available for the Mac (i.e. AppleScript or
  1464.   Frontier).
  1465.   
  1466. /ftp/pub/comp.sources.atari.st - Source posted to the
  1467.   comp.sources.atari.st newsgroup.  If the items are compressed,
  1468.   they are extracted and re-compressed using CompactPro and
  1469.   BinHex.
  1470.   
  1471. /ftp/pub/comp.sources.mac - Source posted to the comp.sources.mac
  1472.   newsgroup.
  1473.   
  1474. /ftp/pub/digests - Contains all of the digests posted for the
  1475.   alt.sources.mac archive.
  1476.   
  1477. /ftp/pub/incoming - Directory for uploading contributions to the
  1478.   archive.  All files which get added to the archive spend some
  1479.   time in this directory, so if you are looking for something
  1480.   which should be in the archive but isn't yet, check here.
  1481.   
  1482. /ftp/pub/mac-faqs - FAQs for some of the Mac groups.  Contains all
  1483.   of the "charter" information for the alt.sources.mac newsgroup.
  1484.   
  1485. /ftp/pub/mac-faqs/faq-sillyness - Contains the 'code' posted for
  1486.   distributing the alt.sources.mac FAQ in source-code form.
  1487.   
  1488. /ftp/pub/other - Other Mac stuff (i.e. 2 program fonts, etc.).
  1489.  
  1490. /ftp/pub/other/apprentice - Updates for files contained on the
  1491.   Apprentice CD.
  1492.   
  1493. /ftp/pub/soundsrc - Source for working with special sound formats.
  1494.