SHULMAN@sdr.slb.COM (Jeffrey Shulman) (05/18/88)
Date: Wed 18 May 88 08:52:27-EDT From: Jeff Shulman <SHULMAN@SDR> Subject: Delphi Mac Digest V4 #9 To: Delphi-List: ; Message-ID: <579963147.0.SHULMAN@SDR> Mail-System-Version: <VAX-MM(218)+TOPSLIB(129)@SDR> Delphi Mac Digest Tuesday, May 17, 1988 Volume 4 : Issue 9 Today's Topics: RE: INFO-MAC Digest V6 #37 re: Opening Working Directories re: Exciting questions on Macintosh SE ! Offscreen PixMaps & anmat.colors (2 messages) voice recognition? re: QuickDraw to PostScript ddj mac column fading ... (2 messages) For Mac II's only RE: Smalltalk Goodies RE: INFO-MAC Digest V6 #39 re: Problems with Printmonitor re: TextEdit Item in a dlog polygons, pictures & printing re: moving marquee selection Resource weirdness? "smart quotes" re: Fixing Your Own Power Supply re: Hard disks Re: The Scores Virus MacHack list mgr/modal dialog prob Resource Files (3 messages) re: Goin' Crazy on a Mac, or, How I Love Re: Flyback transformer source macs in business Re: keeping multiple machine environment re: MultiFinder switch bug with custom W (2 messages) Usenet Mac Digest, (Vol4:Iss61) re: Vers RE: INFO-MAC Digest V6 #49 re: Help with Modal dialogs Weird problem with INITs ---------------------------------------------------------------------- From: DSACHS Subject: RE: INFO-MAC Digest V6 #37 (Re: Msg 26365) Date: 23-APR 11:29 Network Digests > Mr. McQueen misses the point about public domain. Sorry. Public domain works are completely unrestricted. If you want to place restrictions on the use of a file you should include a copyright notice followed by a statment as to what IS allowed. (e.g. the autors grant permission for unrestriced non-commercial copying including posting to bulletin boards.) ------------------------------ From: DDUNHAM Subject: re: Opening Working Directories (Re: Msg 26374) Date: 23-APR 15:48 Network Digests > From: darin@Apple.COM (Darin Adler) > Subject: Re: Opening Working Directories > Once you have opened a file, the working directory no longer needs to be > open. HFS extracts the volume and directory information from the Um, if this is so, how does an application know where to save after it's read a document into memory? My DAs were having horrible problems (-35s) because Finder was closing the working directories the files had been opened on; the only way I could get around this was to keep the files open. (This also makes AppleShare compatibility slightly easier, depending on exactly what you mean by compatibility.) Are you saying that, instead of saving the working directory returned by Standard File, I should have looked up that WD's vRefNum and dirID? David Dunham "If it doesn't have Undo, it's not a Mac program." Maitreya Design ------------------------------ From: DDUNHAM Subject: re: Exciting questions on Macintosh SE ! (Re: Msg 26375) Date: 23-APR 15:48 Network Digests > From: newton@mtund.ATT.COM (Newton Lee) > Subject: Exciting questions on Macintosh SE !!! > I want my program to reside in memory all the time Mark the INIT resource non-purgeable and system. There's no way to stay in the application heap across launches; your permanent code could load a resource into the application heap and call that. If you patch the event traps, be _sure_ to pass on to pr evious patches. David Dunham "If voting could change the system, it would be illegal. If Maitreya Design not voting could change the system, it would be be illegal." ------------------------------ From: INTECO Subject: Offscreen PixMaps & anmat.colors Date: 25-APR 15:33 Programming Techniques I have the following problem: I am creating offscreen PixMaps with 4 to 16 colors which I want to transfer to a window which 32 colors with a mixture of 16 tolerant and 16 animating colors. The colors offscreen PixMaps should be equal to the 16 animating ones. Although the program runs well I do not get the correct colors while transfering the PixMap with CopyBits (the ForeGround and BackGround colors are black and white!). Any suggestion what I could do? At the present state I am copying the animating colors from my window into the ctTable of my PixMap which shows my colors slightly differing after the PixMaps appear in the window? Uwe ------------------------------ From: INTECO Subject: RE: Offscreen PixMaps & anmat.colors (Re: Msg 2400) Date: 27-APR 19:52 Programming Techniques Obviously CopyBits bypasses the PaletteMgr. That seems to be a serious problem (bug). -- Uwe ------------------------------ From: ROWLAND Subject: voice recognition? Date: 27-APR 08:59 Hardware & Peripherals Has anyone heard of a speech recognition device for the Mac (especially for the ADB) ? There used to be (still is?) a sort of generic board that you could buy to fit in various terminals which recognized about 100 or so words (speaker dependent) and would put out ascii strings for each recognized word into the keyboard stream. It seems a natural for the mac but I haven't heard of any. Mike ------------------------------ From: DDUNHAM Subject: re: QuickDraw to PostScript (Re: Msg 26384) Date: 27-APR 21:55 Network Digests > From: "Philip H. Dye" <pd1h+@andrew.cmu.edu> > Subject: QuickDraw to PostScript > What is the easiest way to convert a quickdraw file to postscript ? Apple's LaserWriter driver does a good job. (Press pretzel-F to make a file containing the PostScript output; pretzel-K if you need the appledict header.) David Dunham "The more laws there are, the more people are Maitreya Design inclined to break them" [ You don't need to hold down the command (pretzel) key. Just hold the F or K key down immediately after you click the OK button to the print dialog. - Jeff ] ------------------------------ From: STANKRUTE Subject: ddj mac column fading ... Date: 28-APR 02:32 Games and Entertainment Under a new editor-in-chief, Dr. Dobb's is cutting back on the number of monthly columns so as to increase the article count. The Mac column's the first to go. A couple more will see print, but no more after that. Thanks to all of you who've sent mail-mes sages-feedback during this brief, enjoyable gig. It's been fun being part of the DDJ scene. Thanks to Tyler and the rest of the gang for the opportunity to talk Mac with folks via monthly paper. stan krute ------------------------------ From: STANKRUTE Subject: RE: ddj mac column fading ... (Re: Msg 26422) Date: 1-MAY-19:29: Games and Entertainment I don't know about improve, but the article momentum keeps on a while. Thinking about MacTutor: the recent article on truly floating palette-like tear-off menus/windows was the best piece of Mac hackin' I've seen in print for a long time. I'd taken a few swipes at that problem myself, and had stopped when things got convoluted. The Melton/Ritter solutions are elegant. Not a trivial problem. Of course, it'll be interesting to see what Apple's Mac tech support folks come up with in their new examples-writing effort. Me, I'd like an encyclopedic cookbook that showed 2 or 3 examples of implementing each and every piece of the user interface docced out in Human Interface GuidelInes: The Apple Desktop Interfac Some good folks are goin' at it ... Stan dreamin' again? Krute ------------------------------ From: JOSEF Subject: For Mac II's only Date: 28-APR 18:32 Mousing Around Wanna have some fun at the Color Manager's expense? Use the Klutz DA to change the black and white entries to some other color. Pick something exciting, like say hot pink and chartreuse. Then start moving around windows and opening and closing other apps. Do it under MultiFinder. It's quite bizarre. Joe ------------------------------ From: DOCJOHNALEG Subject: RE: Smalltalk Goodies (Re: Msg 2383) Date: 30-APR 01:01 Tools for Developers The 0.4 version of Smalltalk80 from Apple is solid. It is full smalltalk 80 with its own shelletc. Smalltalk V is much more Mac like with a much simpilar class stucture. Can't say too much, as I am under non-disclosure but I think It is going to be a real solid alternative to ST 80. I hear Apple is reading a ST-80 that supports MacApp objects. Now that is exciting if it is fully integrated into a ST shell. John ------------------------------ From: DSACHS Subject: RE: INFO-MAC Digest V6 #39 (Re: Msg 26382) Date: 1-MAY-00:26: Network Digests >Date: Sun, 17 Apr 88 09:32 AST >From: Stan Armstrong <ARMSTRONG%STMARYS.BITNET@forsythe.stanford.edu> >Subject: Fixing Your Own Power Supply the same problem. It likely is only cold solder joints. MY dealer (Farnsworth Computer - Aurora IL) fixed the problem for $15.00 (1/2 hour labor, no parts). Find a friend who is handy with a soldering iron before you do anything costly. ------------------------------ From: DDUNHAM Subject: re: Problems with Printmonitor (Re: Msg 26417) Date: 1-MAY-02:38: Network Digests > From: chuq@plaid.Sun.COM (Chuq Von Rospach) > Subject: Problems with Printmonitor Reboot without MultiFinder (hold down the pretzel key) to catch PrintMonitor. David Dunham "If it has syntax, it isn't user-friendly." Maitreya Design ------------------------------ From: DDUNHAM Subject: re: TextEdit Item in a dlog (Re: Msg 26418) Date: 1-MAY-02:38: Network Digests > From: soe@ames.arpa (Brad Soe) > Subject: TextEdit Item in a dlog Uh, yes, you're way off. As per I-418, DialogSelect calls TEIdle for you. In fact, the dialog manager does everything for you -- creating (and disposing) the TE record. I believe GetDItem would give you its handle, if you needed to read info from it. David Dunham "The more laws there are, the more people are Maitreya Design inclined to break them" ------------------------------ From: METASOFTWARE Subject: polygons, pictures & printing Date: 1-MAY-09:50: Developers' Corner some problems have recently surfaced using the new system (4.2) and new laserwriter driver w/ spooler. it seems that sending pictures with polygons OCCASSIONALLY prints the wrong segments of a random polygon. the polygon looks right, even within the picture immediately prior to calling DrawPicture into the printer's grafport. at first there were duplicate last 2 points in the polygon which made it fail on all macs. removing the duplicate causes the problem to occur only on the mac +. has anyone had any difficulties recently with pictures, polygons and/or printing? thanks. -alan ------------------------------ From: DDUNHAM Subject: re: moving marquee selection (Re: Msg 26434) Date: 2-MAY-00:55: Network Digests > From: "Tony S. Dahbura" <DAHBURA%SUVM.BITNET@forsythe.stanford.edu> > Does anyone out there know how I can get a moving marquee selection box Not _everything_ is in the ROM. I think the usual method is to draw the box in a sequence of patterns. David Dunham "Whenever you see a sign 'No Exit,' it means Maitreya Design there is an exit." ------------------------------ From: DDUNHAM Subject: Resource weirdness? Date: 1-MAY-22:13: Inside Mac I've just noticed something odd. The resource 'DITL' 55 from Red Ryder 9.4 shows a length of 302 in RezDet, but 202 in ResEdit. When I DeRez it, it shows extra data, after the normal items. ResEdit shows only the items, even in the hex view. I don't know what to make of this. ------------------------------ From: DDUNHAM Subject: "smart quotes" Date: 2-MAY-21:20: Mousing Around As the inventor (so far as I know) of "smart quotes," I'd like to try to correct the misuse of the term which I've read several places recently. Curved quote marks and apostrophes are just that -- the characters used in typography. They are not smart in and of themselves. A smart quotes feature is smart because it lets you type normally, without having to remember the [Option] key combinations needed to get typographic quotes. The computer sees you type a quote and ent ers a right or left quote, depending on context. Context is critical -- systems which rely solely on the last character typed aren't truly smart, because they don't let you click an insertion point in, say, the word "its" and type an apostrophe. Smart quotes, alas, must be built in to all programs. I like my output to look as typographic as possible, so I want all programs to have smart quotes. If you are developing a program that could use them, please contact me for the algorithm, so we can standardize its behavior (and the means to override automatic curving when you need an inch mark). ------------------------------ From: MACWEEKBOS Subject: re: Fixing Your Own Power Supply (Re: Msg 26382) Date: 4-MAY-16:59: Network Digests To: Stan Armstrong <ARMSTRONG%STMARYS.BITNET@forsythe.stanford.edu> Subject: Fixing Your Own Power Supply One option I'm aware of that may be better than an Apple dealer is a company called ComputerQuick. They are in La Mirada, CA at 213-941-7951. They have become the wizards of power supplies in MacTutor magazine and I think they're usually a lot cheaper than Apple dealers for repairs of Mac Plus (512, etc.) power supplies. Ric Ford ------------------------------ From: MACWEEKBOS Subject: re: Hard disks (Re: Msg 26454) Date: 5-MAY-10:26: Network Digests To: JEAN BRUNET <R31631@UQAM> Subject: Hard disks Redux, from Microseeds Publishing, is a backup program that does what you seem to be asking for. It's $99, and the company's address is: Microseeds Plublishing, Inc., 4702 North Hesperides Ave., Tampa, Fla. 33614; (813) 878-2142. Ric Ford ------------------------------ From: MACWEEKBOS Subject: Re: The Scores Virus (Re: Msg 26454) Date: 5-MAY-10:31: Network Digests I'd like to echo Leo Geoffrion's appreciation of the work that John Norstad has contributed to our understanding of the Scores virus. This is, indeed, networking at its best. Thanks John. Ric Ford MacWEEK, Boston ------------------------------ From: MACWEEKBOS Subject: MacHack Date: 5-MAY-11:51: Network Digests Anyone have details on the upcoming MacHack in Ann Arbor in June?? Ric Ford ------------------------------ From: JDUES Subject: list mgr/modal dialog prob Date: 7-MAY-16:39: Programming A program I am writing requires use of various types of List Manager lists (one or two-dimensional, scrolling and non-scolling) within modal dialogs. I am having problems with updating and refreshing the lists. For example: if the dialog box with the list is up and a screen saver kicks such as PYRO kicks in, the list contents and framing rect are not restored when the screen saver goes away, although the rest of the dialog is OK. Clicking inside the list area restores it. Maybe I'm calling LUpdate in the wrong place? Should I handle everything having to do with the list within a ModalDialog FilterProc routine? Inside Mac is no being too helpful. If somebody could point me toward related literature or source code examples, preferably in LS Pascal, I'd sure appreciate it. Naively Yours-- John Duesenberry ------------------------------ From: KWILLEY Subject: Resource Files Date: 7-MAY-18:43: Programming Techniques I need to be able to open a resource file during an INIT and then leave the file open until the next reboot. I want all of the resources to be available at any time. Any ideas? ------------------------------ From: DDUNHAM Subject: RE: Resource Files (Re: Msg 2407) Date: 11-MAY 02:14 Programming Techniques Use Suitcase; customize it with ResEdit so it opens your file. (I have several non-font nor DA resources active this way; saves on customizing my System.) ------------------------------ From: DDUNHAM Subject: RE: Resource Files (Re: Msg 2412) Date: 12-MAY 03:34 Programming Techniques If you can't use Suitcase, you'll have to do what Suitcase does, which involves opening the files and sticking them after System in the resource file search path. ------------------------------ From: DDUNHAM Subject: re: Goin' Crazy on a Mac, or, How I Love (Re: Msg 26467) Date: 8-MAY-22:17: Network Digests > From: garry@batcomputer.tn.cornell.edu (Garry Wiegand) > Subject: Goin' Crazy on a Mac, or, How I Love MPW "GlobalData" Become a certified developer (it's free); you can then ask questions of Apple via email. It's rare to have 32K bytes of data that's not at least partially an array. And you can non-globalize your arrays very easily just by changing the definition from float rootBeer[1000]; to float rootBeer[]; and throwing a rootBeer = NewPtr((Size)1000 * sizeof(float)); as part of your initialization. This is a 2-line change, and the rest of your program will never know the difference. David Dunham "If it doesn't have Undo, it's not a Mac program." Maitreya Design ------------------------------ From: MACWEEKBOS Subject: Re: Flyback transformer source (Re: Msg 26466) Date: 10-MAY 12:35 Network Digests Re: Flyback transformer source Try: MCM Electronics, 858 East Congress Park Dr., Centerville, Ohio 45459-4072; (800) 543-4330, (800) 762-4315 (Ohio), (800) 858-1849 (Alaska and Hawaii), 513-434-0031, fax: 513-434-6959. I believe they sell Mac flyback transformers. Ric Ford ------------------------------ From: JIMH Subject: macs in business Date: 12-MAY 00:53 Creative Pursuits Ric and Rick ;-) I saw your latest column in macweek about business still fighting the mac invasion so to speak. An interesting sideline to that is the govt market. the airforce base where our company does most of its work has gone mac crazy! seems eve ryone on base is talking about how they are getting macs for their groups. a year or so ago if it didnt say zenith you had to go through such a paper hassel to get approval that most macs were purchased under the table by contractors. At the flight dynam ics lab here at a friends work group they were told to have zeniths and so they bought a couple of dozen of them and piled them unopened in the corner and continued to use the macs they had managed to get through a contractor. This kind of waste and rebel lion seems to be getting through to washington and it has got a lot easier to purchase non zenith equipment. Oh one last tidbit. Zenith fever got so hot last year that someone in our users group who is civil service wanted to buy typer writers (cheap typewriters) and was told that he would have to buy zenith wordprocessors!! best jim ------------------------------ From: MACWEEKBOS Subject: Re: keeping multiple machine environment (Re: Msg 26496) Date: 13-MAY 16:21 Network Digests Re: keeping multiple machine environments in synch I've found the Redux backup program (Microseeds publishing, (813) 878-2142) to be helpful in keeping my home and work systems in synch. It offers more flexible selection options than DiskFit, and I use a script that grabs all the files modified after last midnight. Of course, this doesn't solve all the problems you mentioned. I guess we really need some sort of program that would look at the current directory and a saved version of the directory from last time the program was run, and make a smart report about the changes. Ric Ford ------------------------------ From: DDUNHAM Subject: re: MultiFinder switch bug with custom W (Re: Msg 26495) Date: 13-MAY 21:35 Network Digests > From: herbw@midas.TEK.COM (Herb Weiner) > Subject: Re: MultiFinder switch bug with custom WDEFs > switch to the finder (for example) when a sfGetFile dialog is active You mean switch to the Finder and delete the folder that's showing in the SF dialog? Or rename the files it lists? You get the picture, I think. Standard File is in fact reentrant; Findswell 2.0 will make use of it that way. David Dunham "Whenever you see a sign 'No Exit,' it means Maitreya Design there is an exit." ------------------------------ From: DDUNHAM Subject: re: MultiFinder switch bug with custom W (Re: Msg 26495) Date: 13-MAY 21:36 Network Digests > From: goldman@Apple.COM (Phil Goldman) > Subject: Re: MultiFinder switch bug with custom WDEFs > StdFile (unless the latter is a preferred form of navigation) Have you seen Findswell? SF+Findswell _is_ a preferred form of navigation, because you don't usually have to navigate; just select from your favorite files. In any case, I like to keep my folders neatly closed; opening nested folders to 2click documents would make a horrible mess. David Dunham "If it doesn't have Undo, it's not a Mac program." Maitreya Design Disclaimer: I wrote Findswell. ------------------------------ From: LABELBECK Subject: Usenet Mac Digest, (Vol4:Iss61) re: Vers Date: 13-MAY 22:31 Network Digests Thomas Fruin writes reguarding VersaTerm 3.2's Remote file transfer feature. >This is also potentially very dangerous! I've just been reading the >specs, and it turns out _anybody_ can dial into your Mac, and download >just about everything on your (hard) disks. VersaTerm does NOT prompt >you for a password, and you can even use wildcards when downloading. >Since you can type any pathname, the remote volume is up for grabs. No, its not that easy. It is true that _anybody_ can dial into your Mac, if: 1) Your mac is on, running VersaTerm, 2) your modem is on, connected and set for auto answer, and 3) the baud rates match between the caller and the callee... Now, if the VersaTerm user has "Enable Remote Access" checked for that Phone entry (on both ends) the caller MUST ALSO know the exact name of the remotes' root directory. As the specs state, this acts as a form of password. The reason I elected to do it this way was two-fold. 1) It is very easy to keep people from dialing into your Mac... so if you don't want people in it's simple to keep them out. 2) A smart host program can be used to do nice things like backing-up selected file/folders unattended, say during the evening, automatically. If I had a complex password scheme this would be much more difficult. (The host still needs to know your root directory to work). I thought a lot about this (asked others as well), and think this is a good scheme. Personally, my Mac running VersaTerm is by default connected to a local Unix machine and is connected to a modem ONLY when modeming... I suspect this is pretty common. Lonnie Abelbeck Abelbeck Software ------------------------------ From: DSACHS Subject: RE: INFO-MAC Digest V6 #49 (Re: Msg 26506) Date: 14-MAY 14:58 Network Digests >Date: Wed, 11 May 88 17:11 CST >From: <OPTON@UHVAX1> >Subject: Double Helix II query 1) Copying all records that meet a specific criterion to another relation can be done by using the POSTING features of DH II. Create a posting that will create records in the target relation, and uses an abacus (if necessary) dto select the records to be posted. Put the necessary stuff into a selection and do a POST ALL (or post SELECTION) 2) Duplicating a relation ICON will duplicate the structure of the relation. ------------------------------ From: DDUNHAM Subject: re: Help with Modal dialogs (Re: Msg 26506) Date: 15-MAY 22:30 Network Digests > From: "Tony S. Dahbura" <DAHBURA%SUVM.BITNET@forsythe.stanford.edu> > Subject: Help with Modal dialogs You're reading the wrong volume; check the List Manager in IM-4. David Dunham "We've got the best government money can buy." Maitreya Design ------------------------------ From: PIPPIN Subject: Weird problem with INITs Date: 16-MAY 23:30 Developers' Corner I'm writing an INIT and have come across a very strange bug. My INIT runs before AppleShare and (due to the bug) AppleShare will not load. However, if I change the name of AppleShare to something else, say AppleSharf, it works perfectly. My INIT does not alter anything related to memory allocation and does not leave any tasks anywhere. As far as I can tell, it does not leave any trails. It does, however, utilize some File Manager calls. Any ideas as to why a trivial change in spelling will affect the operation of AppleShare? No other INITs exhibit this problem and it occurs when the only two INITs are mine and AppleShare. Thanks. Barry J. Semo ------------------------------ End of Delphi Mac Digest ************************ -------