From: pottier@clipper.ens.fr (Francois Pottier) Subject: csmp-digest-v3-015 Date: Sat, 16 Apr 94 15:19:50 MET DST C.S.M.P. Digest Sat, 16 Apr 94 Volume 3 : Issue 15 Today's Topics: Accepting aliased folders-disks via Drag Manager? Anybody know the FULL definition of a Region? But is it a DA? How do you direct CD-ROM drive using system commands? How do you get a copyright? Print Manager question. Sending AppleEvents from AppleScript? Trouble with 'WIND's and window staggering When-Where WWDC '94 ? Where is DropShell? double click? The Comp.Sys.Mac.Programmer Digest is moderated by Francois Pottier (pottier@clipper.ens.fr). The digest is a collection of article threads from the internet newsgroup comp.sys.mac.programmer. It is designed for people who read c.s.m.p. semi- regularly and want an archive of the discussions. If you don't know what a newsgroup is, you probably don't have access to it. Ask your systems administrator(s) for details. If you don't have access to news, you may still be able to post messages to the group by using a mail server like anon.penet.fi (mail help@anon.penet.fi for more information). Each issue of the digest contains one or more sets of articles (called threads), with each set corresponding to a 'discussion' of a particular subject. The articles are not edited; all articles included in this digest are in their original posted form (as received by our news server at nef.ens.fr). Article threads are not added to the digest until the last article added to the thread is at least two weeks old (this is to ensure that the thread is dead before adding it to the digest). Article threads that consist of only one message are generally not included in the digest. The digest is officially distributed by two means, by email and ftp. If you want to receive the digest by mail, send email to listserv@ens.fr with no subject and one of the following commands as body: help Sends you a summary of commands subscribe csmp-digest Your Name Adds you to the mailing list signoff csmp-digest Removes you from the list Once you have subscribed, you will automatically receive each new issue as it is created. The official ftp info is //ftp.dartmouth.edu/pub/csmp-digest. Questions related to the ftp site should be directed to scott.silver@dartmouth.edu. Currently no previous volumes of the CSMP digest are available there. Also, the digests are available to WAIS users as comp.sys.mac.programmer.src. ------------------------------------------------------- >From giles@med.cornell.edu (Aaron Giles) Subject: Accepting aliased folders-disks via Drag Manager? Date: Wed, 30 Mar 1994 17:13:42 -0500 Organization: Cornell University Medical College I've been fiddling with the Drag Manager, and have come across a situation where I would like to allow the user to drag a folder and/or a disk icon from the Finder into a window. Currently, I just accept the HFS flavor, and check for file types of 'fold' or 'disk', which seems to work just great for everything except aliases. Now I want to be able to accept aliases to folders and disks as well, but now checking the file type is not so easy a thing to do, since the Finder basically has a different file type for each type of folder and disk. So, my question is this: Is there any way to reliably determine whether a drag candidate is a folder, without resolving any aliases (user interaction during a drag would be a Bad Thing)? Thanks! Aaron -- Aaron Giles Power Macintosh & Newton developer Cornell University Medical College giles@med.cornell.edu +++++++++++++++++++++++++++ >From leonardr@netcom.com (Leonard Rosenthol) Date: Thu, 31 Mar 1994 20:57:39 GMT Organization: Aladdin Systems, Inc. In article , giles@med.cornell.edu (Aaron Giles) wrote: > Now I want to be able to accept aliases to folders and disks as well, but > now checking the file type is not so easy a thing to do, since the Finder > basically has a different file type for each type of folder and disk. So, > my question is this: Is there any way to reliably determine whether a drag > candidate is a folder, without resolving any aliases (user interaction > during a drag would be a Bad Thing)? > You can do a "quiet resolve" using MatchAlias as describe in a Tech Note by Greg Robbins. Should be some good sample code as well... Leonard - ------------------------------------------------------------------------ Leonard Rosenthol Internet: leonardr@netcom.com Director of Advanced Technology AppleLink: MACgician Aladdin Systems, Inc. GEnie: MACgician +++++++++++++++++++++++++++ >From benh@fdn.org (Benjamin Herrenschmidt) Date: Sat, 2 Apr 94 11:05:04 +0100 Organization: (none) > Now I want to be able to accept aliases to folders and disks as well, but > now checking the file type is not so easy a thing to do, since the Finder > basically has a different file type for each type of folder and disk. So, > my question is this: Is there any way to reliably determine whether a drag > candidate is a folder, without resolving any aliases (user interaction > during a drag would be a Bad Thing)? > I had the same problem in a Standard File filter proc. I think there is no documented way to know if an alias points to a container (folder, disk, etc...) or to a file. I reverse-engineered ResEdit and the Standard File itself, they both test for all the possible OSTypes of a container alias. If i remeber corerctly, they even missed some types: just make aliases of your Fonts and PrintMonitor Documents folders and look... One of them (i don't remember which one) will be displayed as an application, the other will not be displayed as a container in the Get File/Folder info in ResEdit. You can try the silent resolve technique using MatchAlias but it will not work if your alias points to an unmounted volume or a file/folder on such a volume. BenH. --------------------------- >From Thomas Reed Subject: Anybody know the FULL definition of a Region? Date: 23 Mar 1994 20:24:42 GMT Organization: Washington University I'm interested in playing around with some non-rectangular regions, and what I want to do, I'll need to know exactly how the Region data type stores this information. (Actually, what I'll want to do is get a series of points describing the border of the region from certain sections of the region.) Thanks in advance for the help! -Thomas ===================================================== Thomas Reed Washington University Reed@telesphere.wustl.edu Medical School (also: Reed@medicine.wustl.edu) - --------------------------------------------------- Clothes make the man. Naked people have little or no influence on society. -- Mark Twain ===================================================== +++++++++++++++++++++++++++ >From macguru@halcyon.com. (Allan Foster) Date: 24 Mar 1994 07:17:25 GMT Organization: Guru Inc In article <2mq8iaINNqm0@medicine.wustl.edu> Thomas Reed writes: > I'm interested in playing around with some non-rectangular regions, and > what I want to do, I'll need to know exactly how the Region data type > stores this information. (Actually, what I'll want to do is get a series > of points describing the border of the region from certain sections of > the region.) > > Thanks in advance for the help! > The format of the region data structure in Quickdraw is actually rather simple. But I would recommend not using the data directly, but rather using the quickdraw calls provided. They can do most of the manipulation one requires. The actual format is as follows, as near as my memory can remember: First a rect describing the enclosing rect of the entire region. for each scan line, a list of horizontal points where a crossing occurs, either entering or leaving the region. (it turns out that Odd indices will be entering the region, and even will be leaving) The alst point is -1 (I think), followed by the next scan line. The last scan line is shown as two consecutive -1s This can all be checked rather simply by looking at the handle of a region in TMon, or other debugger of your choice.. Allan - -------------------------------------------------------- I am responsible for what I say and do. -- Allan Foster -- +++++++++++++++++++++++++++ >From jmunkki@beta.hut.fi (Juri Munkki) Date: 29 Mar 1994 21:26:14 GMT Organization: Helsinki University of Technology In article <2mreq5$i98@nwfocus.wa.com> macguru@halcyon.com. (Allan Foster) writes: >First a rect describing the enclosing rect of the entire region. for >each scan line, a list of horizontal points where a crossing occurs, >either entering or leaving the region. (it turns out that Odd indices >will be entering the region, and even will be leaving) The alst point >is -1 (I think), followed by the next scan line. The last scan line is >shown as two consecutive -1s Almost correct, but not quite. Only the changes are described in the list, so you keep a list of x coordinates and if a number isn't there already, you add it to the list and if it's there, you remove it. I seem to remember writing an article about the region data format for the UMPG (Usenet Macintosh Programmer's Guide), but I may be wrong...may be worth checking in any case. -- Juri Munkki There ain't so such thing as a shareware lunch. jmunkki@hut.fi Windsurfing: Faster than the wind. +++++++++++++++++++++++++++ >From Jens Alfke Date: Fri, 1 Apr 1994 00:08:45 GMT Organization: Apple Computer Thomas Reed, reed@medicine.wustl.edu writes: > I'm interested in playing around with some non-rectangular regions, and > what I want to do, I'll need to know exactly how the Region data type > stores this information. (Actually, what I'll want to do is get a series > of points describing the border of the region from certain sections of > the region.) Head to your nearest technical library and look up US Patent #4,622,545 Atkinson, William D. "Method and Apparatus For Image Compression And Manipulation" The good news: This contains all the gory details. The bad news: It's a patent. If you make use of the gory details you will be violating the patent and be liable for a lawsuit from Apple. There are quite possibly ways of doing what you want to do without groping the Region structure. F'rinstance, I've written code that converts a region into an equivalent Polygon without doing so. (Hint: Draw the Region into an offscreen BitMap and do some standard image-processing stuff to the BitMap. This isn't so heinous, as you can band it pretty easily.) [I don't usually do so, but in this message I think I should point out that I am not speaking officially for Apple Computer. I am no legal expert and I'm not totally sure whether making use of the region data would be violating the patent. I am _fairly_ sure, however.] --Jens Alfke jens_alfke@powertalk Rebel girl, rebel girl, .apple.com Rebel girl you are the queen of my world +++++++++++++++++++++++++++ >From hunt@husc7.harvard.edu (Timothy Hunt) Date: 1 Apr 94 22:17:20 GMT Organization: Harvard University, Cambridge, Massachusetts Jens Alfke writes: >Thomas Reed, reed@medicine.wustl.edu writes: >> I'm interested in playing around with some non-rectangular regions, and >> what I want to do, I'll need to know exactly how the Region data type >> stores this information. (Actually, what I'll want to do is get a series >> of points describing the border of the region from certain sections of >> the region.) >Head to your nearest technical library and look up >US Patent #4,622,545 >Atkinson, William D. >"Method and Apparatus For Image Compression And Manipulation" >The good news: This contains all the gory details. >The bad news: It's a patent. If you make use of the gory details you will be >violating the patent and be liable for a lawsuit from Apple. Can you, or anyone else give us a basic idea of how regions are implemented? I don't want the gory details, just a general outline. I'm impressed by the speed and flexibility of QuickDraw's regions, and I wonder how it is done. Thanks Tim (hunt@husc.harvard.edu) --------------------------- >From jeremyr@dcs.qmw.ac.uk (Jeremy Roussak;Guest of Distributed Systems Lab) Subject: But is it a DA? Date: Tue, 22 Mar 1994 21:55:32 GMT Organization: Computer Science Dept, QMW, University of London How can I tell, from an INIT (actually from a patch to _FindWindow) whether the currently frontmost application is in fact a desk accessory? Probing with MacsBug, I see that CurApRefNum seems always to be 2 (the System file) and CurMap tends to point to the DA's home file (all this is under system 7, of course). I can't see CurMap being particularly useful or reliable. How about CurApRefNum? Or is there a better way? Jeremy +++++++++++++++++++++++++++ >From jaeger@kunikpok.icus.com (Jaeger) Date: Wed, 23 Mar 94 16:59:39 CST Organization: Kunikpok Kennels and Komputers (Pet Project) jeremyr@dcs.qmw.ac.uk (Jeremy Roussak;Guest of Distributed Systems Lab)) writes: > How can I tell, from an INIT (actually from a patch to > _FindWindow) whether the currently frontmost application is in > fact a desk accessory? > > Probing with MacsBug, I see that CurApRefNum seems always to be > 2 (the System file) and CurMap tends to point to the DA's home > file (all this is under system 7, of course). I can't see > CurMap being particularly useful or reliable. How about > CurApRefNum? Or is there a better way? > > Jeremy Call GetFrontProcess(). The processMode field has a bit set if it's a DA. Brian Stern :-{)} Jaeger@fquest.com +++++++++++++++++++++++++++ >From jeremyr@dcs.qmw.ac.uk (Jeremy Roussak;Guest of Distributed Systems Lab) Date: Thu, 24 Mar 1994 22:33:56 GMT Organization: Computer Science Dept, QMW, University of London In <5PXNJc1w165w@kunikpok.icus.com> jaeger@kunikpok.icus.com (Jaeger) writes: >I wrote: >> How can I tell, from an INIT (actually from a patch to >> _FindWindow) whether the currently frontmost application is in >> fact a desk accessory? >> >> Probing with MacsBug, I see that CurApRefNum seems always to be >> 2 (the System file) and CurMap tends to point to the DA's home >> file (all this is under system 7, of course). I can't see >> CurMap being particularly useful or reliable. How about >> CurApRefNum? Or is there a better way? >Call GetFrontProcess(). The processMode field has a bit set if it's a >DA. Unfortunately, I need to support system 6, and neither GetFrontProcess(), which returns the PSN, nor GetProcessInfo(), which returns the information of which you speak, is supported before system 7. However, someone did point out that the windowKind field of a DA's window is negative. Jeremy +++++++++++++++++++++++++++ >From Stephan Bublava Date: 25 Mar 1994 10:52:09 GMT Organization: Vienna University of Technology In article Jeremy Roussak;Guest of Distributed Systems Lab, jeremyr@dcs.qmw.ac.uk writes: >However, someone did point out that the windowKind field of >a DA's window is negative. On the other hand there are lots of DAs that do not open a window but just have a menu ... Stephan -- Stephan Bublava stephan@iguwnext.tuwien.ac.at +++++++++++++++++++++++++++ >From Jens Alfke Date: Fri, 1 Apr 1994 02:10:28 GMT Organization: Apple Computer jeremyr@dcs.qmw.ac.uk writes: > How can I tell, from an INIT (actually from a patch to > _FindWindow) whether the currently frontmost application is in > fact a desk accessory? You could call GetProcessInfo to get the process' file type and compare it with 'DFIL' or 'dfil'. --Jens Alfke jens_alfke@powertalk Rebel girl, rebel girl, .apple.com Rebel girl you are the queen of my world +++++++++++++++++++++++++++ >From Dave Falkenburg Date: Fri, 1 Apr 1994 20:51:43 GMT Organization: Apple Computer, Inc. In article <1994Apr1.021028.8068@gallant.apple.com> Jens Alfke, jens_alfke@powertalk.apple.com writes: >jeremyr@dcs.qmw.ac.uk writes: >> How can I tell, from an INIT (actually from a patch to >> _FindWindow) whether the currently frontmost application is in >> fact a desk accessory? > >You could call GetProcessInfo to get the process' file type and compare it >with 'DFIL' or 'dfil'. > >--Jens Alfke > jens_alfke@powertalk Rebel girl, rebel girl, > .apple.com Rebel girl you are the queen of my world Although Jens' solution can work, don!t compare the file type. You should do something like: if (aProcessInfoPB.processMode & modeDeskAccessory) { // it's a desk accessory... } -Dave Falkenburg -Apple Computer, Inc. --------------------------- >From ruskin@ee.umanitoba.ca (Marshall Ruskin) Subject: How do you direct CD-ROM drive using system commands? Date: 31 Mar 1994 19:12:12 GMT Organization: Specmark Information Engineering, Inc. Dear readers; Please accept this posting as a request for "pointers" regarding the system software or "extensions" that Macintosh uses to interface with hardware-specific drivers for specific CD-ROM drives. The Windows analogy to what I'm speaking of, is called "MSCDEX". We want to be able to direct the drive to go to specific tracks, etc. To accomplish this, we want to write an application that directs the CD-ROM device driver, through the hardware-independent system "tool" on the Mac. However, we can't find any reference to the desired function in the Apple doc's we reviewed. I would very much appreciate it, if you could please just steer us to the appropriate documentation or source. Thank you very much for taking the time to read my posting. Best Regards; Marshall Ruskin Specmark Information Engineering, Inc. +++++++++++++++++++++++++++ >From phixus@netcom.com (Chris DeSalvo) Date: Fri, 1 Apr 1994 09:48:04 GMT Organization: NETCOM On-line Communication Services (408 241-9760 guest) Marshall Ruskin (ruskin@ee.umanitoba.ca) wrote: : We want to be able to direct the drive to go to specific tracks, etc. To : accomplish this, we want to write an application that directs the CD-ROM : device driver, through the hardware-independent system "tool" on the Mac. : However, we can't find any reference to the desired function in the Apple : doc's we reviewed. Get on ftp.apple.com. Go to /dts/mac/tn/devices.dv and get the file dv-22-cd-rom-driver-calls.hqx All the calls are made through the device manager. It's pretty easy. L8R Chris -- +-----------------------------------------------------------------+ | phixus@netcom.com | Macintosh: Changing the world, | | Chris De Salvo | one person at a time! | | Professional Mac Geek | ----------------------------- | | MacPlay, Irvine, CA | (I wish they'd hurry up!) | +-----------------------------------------------------------------+ Any opinions expressed, or implied, are my own! They should not be considered representative of the opinions or policies of my employer, MacPlay, a division of Interplay Productions, Inc. --------------------------- >From Thomas Reed Subject: How do you get a copyright? Date: 23 Mar 1994 20:25:41 GMT Organization: Washington University How does one get a game copyrighted? I've heard that you just write in the About box or somewhere that it's copyrighted, and it is, but I'm coming to doubt that a little bit. Do you have to register with someone? Thanks in advance for the help! -Thomas ===================================================== Thomas Reed Washington University Reed@telesphere.wustl.edu Medical School (also: Reed@medicine.wustl.edu) - --------------------------------------------------- Clothes make the man. Naked people have little or no influence on society. -- Mark Twain ===================================================== +++++++++++++++++++++++++++ >From d88-jwa@mumrik.nada.kth.se (Jon Wätte) Date: 24 Mar 1994 09:15:25 GMT Organization: The Royal Institute of Technology In <2mq8k5INNqm0@medicine.wustl.edu> Thomas Reed writes: >How does one get a game copyrighted? I've heard that you just write in >the About box or somewhere that it's copyrighted, and it is, but I'm >coming to doubt that a little bit. Do you have to register with someone? As soon as you create something, it is covered by your copyright. It's inherent in the fact that you created it. You don't have to say anything anywhere in the program or documentation; it's still copyrighted. If the case comes to court, however, you'd be well-adviced to have good documentation of when you created the program, and that YOU created it. There are methods of "oficially" registering works for such archival purposes, but they're purely volountary. -- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe -- Not speaking for IBM. +++++++++++++++++++++++++++ >From Jim Conner Date: 24 Mar 1994 15:59:22 GMT Organization: Cornell University In article <2mq8k5INNqm0@medicine.wustl.edu> Thomas Reed, reed@medicine.wustl.edu writes: >How does one get a game copyrighted? I've heard that you just write in >the About box or somewhere that it's copyrighted, and it is, but I'm >coming to doubt that a little bit. Do you have to register with someone? > Read the recent articles in MacUser by Andy Ihnatko (1994 April and May, I think). "Automatic" copyrights last for three years; if you want longer, then you have to fill out some paperwork with the U.S. Copyright office. Jim Conner +++++++++++++++++++++++++++ >From nagle@netcom.com (John Nagle) Date: Thu, 24 Mar 1994 18:27:23 GMT Organization: NETCOM On-line Communication Services (408 241-9760 guest) d88-jwa@mumrik.nada.kth.se (Jon Wätte) writes: >In <2mq8k5INNqm0@medicine.wustl.edu> Thomas Reed writes: >>How does one get a game copyrighted? I've heard that you just write in >>the About box or somewhere that it's copyrighted, and it is, but I'm >>coming to doubt that a little bit. Do you have to register with someone? >As soon as you create something, it is covered by your copyright. >It's inherent in the fact that you created it. You don't have to >say anything anywhere in the program or documentation; it's still >copyrighted. Yeah, but register anyway. Call 202-707-9100 to get the forms. It's cheap, around $18 or so. You can't sue unless you register. John Nagle +++++++++++++++++++++++++++ >From d88-jwa@mumrik.nada.kth.se (Jon Wätte) Date: 24 Mar 1994 21:52:06 GMT Organization: The Royal Institute of Technology In <2msdcrINNsg@newsstand.cit.cornell.edu> Jim Conner writes: >I think). "Automatic" copyrights last for three years; if you want >longer, then you have to fill out some paperwork with the U.S. Copyright >office. Nope; ANY copyright (especially automatic copyright, since that's the only copyright there is) lasts 50 years after the authors death. Anything else is a breach of the Berne convention which the US signed, not too many years ago. -- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe -- "Don't stick a Fork in your Eye. +++++++++++++++++++++++++++ >From sro@media.mit.edu (Shawn O'Donnell) Date: Thu, 24 Mar 1994 04:11:09 GMT Organization: M.I.T. Media Laboratory Copyrights are pretty easy. You write Copyright [c in a circle] 1994 Thomas Reed on whatevever. On a program, put it where you say who wrote it--in an About Box or whatever comes up when you launch the program. c-in-a- circle is option-G. Copyrighting is free, but the do-it-yourself copyright only lasts 3 years. The kind you get from the Copyright Office (for a $20 fee) lasts until 50 years after you die (if you do that sort of thing.) The Copyright Office's hotline number is 202 707 3000. There's an article by Andy Ihnatko in April MacUser that explains the whole thing. If you're thinking of making a living off of your programming and you can't afford a lawyer at this point, check out Andy's column. --Shawn Copyright (c) 1994 Blah Blah Blah +++++++++++++++++++++++++++ >From c.reading@csi.compuserve.com (Charlie Reading) Date: 24 Mar 94 16:18:21 GMT Organization: CompuServe Incorporated In article <2mrlnd$8jj@news.kth.se> Jon W!tte, d88-jwa@mumrik.nada.kth.se writes: >If the case comes to court, however, you'd be well-adviced to have >good documentation of when you created the program, and that YOU >created it. There are methods of "oficially" registering works >for such archival purposes, but they're purely volountary. I believe that you also need an officially registered copyright if you expect monetary damages from violators. I think you can still get them to stop violating the copyright, even without registering. If I remember correctly (and they haven't changed the law since I looked into it), it is fairly simple and cheap to do. You should be able to get the information from a local library. ( not a lawyer ) Charlie Reading CompuServe Incorporated Any opinions expressed are not necessarily those of my employer. +++++++++++++++++++++++++++ >From omh@cs.brown.edu (Owen M. Hartnett) Date: Mon, 28 Mar 1994 02:39:40 GMT Organization: Brown University Department of Computer Science In article <2msegd$j0l@george.inhouse.compuserve.com> c.reading@csi.compuserve.com (Charlie Reading) writes: >In article <2mrlnd$8jj@news.kth.se> Jon W!tte, d88-jwa@mumrik.nada.kth.se >writes: >>If the case comes to court, however, you'd be well-adviced to have >>good documentation of when you created the program, and that YOU >>created it. There are methods of "oficially" registering works >>for such archival purposes, but they're purely volountary. > >I believe that you also need an officially registered copyright if you >expect >monetary damages from violators. I think you can still get them to stop >violating >the copyright, even without registering. If I remember correctly (and >they >haven't changed the law since I looked into it), it is fairly simple and >cheap >to do. You should be able to get the information from a local library. > >( not a lawyer ) > I'm not a lawyer either, but lawyers I've talked to say that you can collect monetary damages from copyright infringement, but you have to substantiate the amount of damages (i.e. they ripped off 3 copies @ $79.95 each, you owe me 239.85). With registration, you can also collect punitive damages, which can be substantial. -Owen -- Owen Hartnett omh@cs.brown.edu "FAITH, n. Belief without evidence in what is told by one who speaks without knowledge, of things without parallel." -Ambrose Bierce - The Devil's Dictionary +++++++++++++++++++++++++++ >From andrewwelc@aol.com (AndrewWelc) Date: 27 Mar 1994 23:05:01 -0500 Organization: America Online, Inc. (1-800-827-6364) In article <1994Mar28.023940.9170@cs.brown.edu>, omh@cs.brown.edu (Owen M. Hartnett) writes: >>> I'm not a lawyer either, but lawyers I've talked to say that you can collect monetary damages from copyright infringement, but you have to substantiate the amount of damages (i.e. they ripped off 3 copies @ $79.95 each, you owe me 239.85). With registration, you can also collect punitive damages, which can be substantial. <<<< That is sort of correct. With copyright violations, you can collect actual damages (which you've outlined above) as well as statutory damages. With statutory damages, you don't have to prove an actual monetary loss like you do for actual damages. However your copyright must be registered (by filling out the proper forms, etc.) PRIOR to the copyright violation if you want to collect. Andrew +++++++++++++++++++++++++++ >From Charlie Reading Date: 25 Mar 1994 20:16:10 GMT Organization: CompuServe Incorporated In article <2mt227$ep4@news.kth.se> Jon W!tte, d88-jwa@mumrik.nada.kth.se writes: >Nope; ANY copyright (especially automatic copyright, since that's >the only copyright there is) lasts 50 years after the authors death. >Anything else is a breach of the Berne convention which the US signed, >not too many years ago. I believe the deal is: [1] Everything is created with an automatic copyright. [2] You need to register that copyright if you expect to collect monetary damages (but you can have violators stopped in any case). [3] You have 3 years to file for a copyright or correct any problems with it, otherwise it will not be registered (and allow you to collect monetary damages), but still allow you to stop violators. ( again, not a lawyer) -- Charlie Reading CompuServe Incorporated c.reading@csi.compuserve.com Any opinions expressed are not necessarily those of my employer. +++++++++++++++++++++++++++ >From mek@acs.bu.edu (Mark E. Kern) Date: 31 Mar 1994 17:35:13 GMT Organization: Spurious Productions In article <2mvgqa$ku@george.inhouse.compuserve.com>, Charlie Reading wrote: > In article <2mt227$ep4@news.kth.se> Jon W!tte, d88-jwa@mumrik.nada.kth.se > writes: > >Nope; ANY copyright (especially automatic copyright, since that's > >the only copyright there is) lasts 50 years after the authors death. > >Anything else is a breach of the Berne convention which the US signed, > >not too many years ago. > > I believe the deal is: > [1] Everything is created with an automatic copyright. > [2] You need to register that copyright if you expect to collect > monetary damages (but you can have violators stopped in any > case). > [3] You have 3 years to file for a copyright or correct any problems > with it, otherwise it will not be registered (and allow you to > collect monetary damages), but still allow you to stop violators. > > ( again, not a lawyer) I know of no 3 year limitation. You may register at any time before the infringement to collect full damages. If you register after the alledged infringement, you can still get an injunction and collect damages, but you may not be able to get attorney fees. This 3 year rumor has got to stop - it doesn't exist in the U.S. -- = pdcmarkus@aol.com = mek@acs.bu = simms@phantom.com = Looking for old Pixar hardware and U.S. Acorn BBS machines +++++++++++++++++++++++++++ >From tzs@u.washington.edu (Tim Smith) Date: 1 Apr 1994 07:03:27 GMT Organization: University of Washington School of Law, Class of '95 Thomas Reed wrote: >How does one get a game copyrighted? I've heard that you just write in >the About box or somewhere that it's copyrighted, and it is, but I'm >coming to doubt that a little bit. Do you have to register with someone? I see that others have responded already, but I also see assorted mistakes in their posts, so I'll throw in my opinion. Note that I'm not a lawyer. For legal advice, contact a lawyer. It's copyrighted as soon as you write it. (Those who tell you that it is not copyrighted until you publish it with a copyright notice missed the Copyright Act of 1976. They still think we are under the Copyright Act of 1909. The '76 Act got rid of the publication requirement. They also missed the Berne Implementation Act of 1988 (I may have the year wrong), which got rid of the notice requirement). Copyright notice is still a very good idea, for it makes it much harder for someone who rips you off to claim that they thought your game was in the public domain. Here's what the statute says about the form of notice and why it is a good idea: Sec. 401. Notice of copyright: Visually perceptible copies (a) General Provisions. - Whenever a work protected under this title is published in the United States or elsewhere by authority of the copyright owner, a notice of copyright as provided by this section may be placed on publicly distributed copies from which the work can be visually perceived, either directly or with the aid of a machine or device. (b) Form of Notice. - If a notice appears on the copies, it shall consist of the following three elements: (1) the symbol (the letter C in a circle), or the word 'Copyright', or the abbreviation 'Copr.'; and (2) the year of first publication of the work; in the case of compilations, or derivative works incorporating previously published material, the year date of first publication of the compilation or derivative work is sufficient. The year date may be omitted where a pictorial, graphic, or sculptural work, with accompanying text matter, if any, is reproduced in or on greeting cards, postcards, stationery, jewelry, dolls, toys, or any useful articles; and (3) the name of the owner of copyright in the work, or an abbreviation by which the name can be recognized, or a generally known alternative designation of the owner. (c) Position of Notice. - The notice shall be affixed to the copies in such manner and location as to give reasonable notice of the claim of copyright. The Register of Copyrights shall prescribe by regulation, as examples, specific methods of affixation and positions of the notice on various types of works that will satisfy this requirement, but these specifications shall not be considered exhaustive. (d) Evidentiary Weight of Notice. - If a notice of copyright in the form and position specified by this section appears on the published copy or copies to which a defendant in a copyright infringement suit had access, then no weight shall be given to such a defendant's interposition of a defense based on innocent infringement in mitigation of actual or statutory damages, except as provided in the last sentence of section 504(c)(2). Registration is also a good idea. You register a copyright by filling out a simple form and paying a small fee (I believe it is currently $20). You can probably get information on how to obtain this form by asking the reference desk at your local library. What registration does for you is make it easier to nail people who rip you off. If someone rips you off and you sue, there are two kinds of damages provided for in the Copyright Act. One is called actual damages. These are, basically, how much money you lost because of the infringement, and how much profit the infringer made from the infringement. The problem with actual damages is proving that you actually lost sales, or that the infringer made profits. The other type of damages is called statutory damages. They range from around $500 to around $20,000 (or up to around $100,000 if you can show that the infringement was willful) (I don't have the absolute latest copy of the Copyright Act handy, so the numbers I'm giving may be a little low). If you ask for statutory damages, the judge decides how much to award. You can only ask for statutory damages if you've registered. Also, if you register, when you sue and win, you can ask the judge to make the other side pay for your lawyer. (Actually, you have to be registered to sue for actual damages, too, or to ask for an injunction to stop someone from copying your work, but that is no problem. All you do, once you discover the infringement, is go and register, and *then* you sue. But for statutory damages and attorney fees, you've got to have registered either before the infringement, or within three months of publication). Look on news.answers for the copyright FAQ for more information. --Tim Smith +++++++++++++++++++++++++++ >From tzs@u.washington.edu (Tim Smith) Date: 1 Apr 1994 07:06:13 GMT Organization: University of Washington School of Law, Class of '95 Shawn O'Donnell wrote: >Copyrighting is free, but the do-it-yourself copyright only lasts 3 >years. The kind you get from the Copyright Office (for a $20 fee) Totally wrong. >There's an article by Andy Ihnatko in April MacUser that explains the >whole thing. If you're thinking of making a living off of your >programming and you can't afford a lawyer at this point, check out >Andy's column. Ah, that explains it. I don't know what Ihnatko was smoking when he wrote that column, but whatever it was, it was real powerful. (Actually, his column was fairly reasonable, except for that howler about 3 years). --Tim Smith +++++++++++++++++++++++++++ >From tzs@u.washington.edu (Tim Smith) Date: 1 Apr 1994 07:09:27 GMT Organization: University of Washington School of Law, Class of '95 Mark E. Kern wrote: > I know of no 3 year limitation. You may register at any time before the >infringement to collect full damages. If you register after the alledged >infringement, you can still get an injunction and collect damages, but you >may not be able to get attorney fees. This 3 year rumor has got to stop - >it doesn't exist in the U.S. If you register after the infringement, you can still collect *actual* damages, but not statutory damages. As far as that 3 year rumor goes, I wonder if anyone has told Macwhatever (whatever=="User" or "world"...I don't remember which magazine it was) about their mistake? Or is everyone assuming someone else will write and tell them (that's what I'm doing!). --Tim Smith +++++++++++++++++++++++++++ >From tzs@u.washington.edu (Tim Smith) Date: 1 Apr 1994 07:14:53 GMT Organization: University of Washington School of Law, Class of '95 AndrewWelc wrote: >That is sort of correct. With copyright violations, you can collect actual >damages (which you've outlined above) as well as statutory damages. With >statutory damages, you don't have to prove an actual monetary loss like you do >for actual damages. Almost 100% correct. However, you can elect statutory damages *instead* *of* actual damages. You don't get both. Here's section 504(c) of the Copyright Act: (c) Statutory Damages. - (1) Except as provided by clause (2) of this subsection, the copyright owner may elect, at any time before final judgment is rendered, to recover, instead of actual damages and profits, an award of statutory damages for all infringements involved in the action, with respect to any one work, for which any one infringer is liable individually, or for which any two or more infringers are liable jointly and severally, in a sum of not less than $500 or more than $20,000 as the court considers just. For the purposes of this subsection, all the parts of a compilation or derivative work constitute one work. (The numbers may be wrong--the above is from the U.S. Code CD-ROM that someone uploaded to etext.archive.umich.edu. That's a year or two out of date, I believe, and so Congress may have tinkered with the amounts since then). --Tim Smith --------------------------- >From andersw@hum.gu.se (Anders Wahlin) Subject: Print Manager question. Date: Tue, 29 Mar 1994 08:04:21 GMT Organization: Hum Fak:s Dataservice I would like to know how it's possible to determine how many pages I'm printing (after all pages has been printed). I want to do this in an INIT. Can someone please tell me if this is possible and if it is, maby give me a little clue on how to do it? Thanks! -- Anders Wahlin Anders.Wahlin@hum.gu.se +++++++++++++++++++++++++++ >From dowdy@apple.com (Tom Dowdy) Date: Wed, 30 Mar 1994 01:51:11 GMT Organization: Apple Computer, Inc. In article , andersw@hum.gu.se (Anders Wahlin) wrote: > I would like to know how it's possible to determine how many pages I'm > printing (after all pages has been printed). I want to do this in an INIT. > Can someone please tell me if this is possible and if it is, maby give me a > little clue on how to do it? Using QuickDraw GX this is trivial. Your Printing Extension simply has to send the Send_GXCountPages() message, which will return to you the number of pages in the spool file. Without using QuickDraw GX this is just about impossible, and almost certain to break on a system with GX. -- Tom Dowdy Internet: dowdy@apple.COM Apple Computer MS:302-3KS UUCP: {sun,voder,amdahl,decwrl}!apple!dowdy 1 Infinite Loop AppleLink: DOWDY1 Cupertino, CA 95014 "The 'Ooh-Ah' Bird is so called because it lays square eggs." +++++++++++++++++++++++++++ >From moosh@halcyon.com (Mike Kurtinitis) Date: 31 Mar 1994 17:30:52 GMT Organization: Northwest Nexus Inc. In article , andersw@hum.gu.se (Anders Wahlin) wrote: > I would like to know how it's possible to determine how many pages I'm > printing (after all pages has been printed). I want to do this in an INIT. > Can someone please tell me if this is possible and if it is, maby give me a > little clue on how to do it? > If you _really_ need to do things this way, you might consider patching the PROpenPage trap. I'm not an expert, but I think you might be able to pull it off and remain compatible with the cloud of Mac models out there. Mike moosh@halcyon.com +++++++++++++++++++++++++++ >From dowdy@apple.com (Tom Dowdy) Date: Fri, 1 Apr 1994 05:00:24 GMT Organization: Apple Computer, Inc. In article , moosh@halcyon.com (Mike Kurtinitis) wrote: > In article , andersw@hum.gu.se > (Anders Wahlin) wrote: > > > I would like to know how it's possible to determine how many pages I'm > > printing (after all pages has been printed). I want to do this in an INIT. > > Can someone please tell me if this is possible and if it is, maby give me a > > little clue on how to do it? > > > > If you _really_ need to do things this way, you might consider patching the > PROpenPage trap. I'm not an expert, but I think you might be able to pull > it off and remain compatible with the cloud of Mac models out there. I doubt it. It isn't nearly as simple as this sounds. First off, it's not a trap by itself, it's the _PrGlue trap, and you'll need to watch for the selector. Then, it's Pascal based, with the # of paramters that you need to strip around encoded via the selector. This is some tricky assembly -- but do-able if you like having this sort of fun. Now for the real fun. Some applications don't call the PrGlue trap, rather they vector through the old mechanism, which isn't patchable unless you install your own version of the .Print driver. And this is extra special fun as there's a version of the .Print driver in the process manager, that sometimes (but not always) overrides the one in the actual print driver. You also sometimes need to supply your own stub PDEFs as well -- but usually not for just patching one of the selector. Once you've waded through all of this, you can rest safe in the knowlage that your patch is 100% guaranteed to break on a system with QuickDraw GX installed. -- Tom Dowdy Internet: dowdy@apple.COM Apple Computer MS:302-3KS UUCP: {sun,voder,amdahl,decwrl}!apple!dowdy 1 Infinite Loop AppleLink: DOWDY1 Cupertino, CA 95014 "The 'Ooh-Ah' Bird is so called because it lays square eggs." --------------------------- >From elecjw@ccu1.auckland.ac.nz (Chris Waters) Subject: Sending AppleEvents from AppleScript? Date: 21 Mar 1994 21:13:34 GMT Organization: University of Auckland How can I send an apple event from within an AppleScript program? The event I want to send is application specific but its format is simple. +++++++++++++++++++++++++++ >From jwbaxter@olympus.net (John W. Baxter) Date: Mon, 21 Mar 1994 16:56:54 -0800 Organization: Internet for the Olympic Peninsula In article <2ml2lu$jeq@ccu2.auckland.ac.nz>, elecjw@ccu1.auckland.ac.nz (Chris Waters) wrote: > How can I send an apple event from within an AppleScript program? The event > I want to send is application specific but its format is simple. You essentially have two choices. You can give the target application an 'aete' resource which describes the event you are sending (getting started with building these resources is somewhat daunting), or you can use the almost undocumented generic form of the event. Here's a sample of that, from StuffIt: <> given Çclass menpÈ:1.397314593E+9, Çclass res1È:200 Çevent LANDgmhdÈ given Çclass menpÈ:1.397314593E+9, Çclass idixÈ:0 [I've represented first instance of the chevron characters using a pair of << and >>. These are actually the "chevrons" (quotes in many languages): option-\ and option-shift-\ on US keyboards...I don't know about yours. I've let Eudora do its quoted-printable trick with the other chevrons.] Those two events shouldn't have been recorded...they are menusharing transactions with Frontier [StuffIt was delivered before the details of recording were widely known...it's simple to fix that...one bit flag in one AE manager call will do it. Next version, one assumes.] The 8 characters following the word "event" are the event class and event ID. The given stuff is the parameter's other than the '----' parameter (which these events do not have...it would come first, as just a value. You may want to know why the menp parameter is shown as a floating point number. So, frankly, do I. Gory details on request (better for almost all if asked by email, I think). -- John Baxter Port Ludlow, WA, USA [West shore, Puget Sound] jwbaxter@pt.olympus.net +++++++++++++++++++++++++++ >From Jens Alfke Date: Fri, 1 Apr 1994 00:02:49 GMT Organization: Apple Computer Chris Waters, elecjw@ccu1.auckland.ac.nz writes: > How can I send an apple event from within an AppleScript program? The event > I want to send is application specific but its format is simple. One way would be to write an 'aete' resource for the app in question and stuff it into the app. Using the 'aete' generator stack on the AS SDK this isn't too painful. There's also a syntax in AS for sending arbitrary events that don't have terminologies. It involves lots of double-angle-brackets or 'guillemots' (option-backslash and option-shift-backslash.) The name of the event is just the eight letter code inside guillemots. Unfortunately I can't remember right now how you specify parameters... did this make it into the documentation? --Jens Alfke jens_alfke@powertalk Rebel girl, rebel girl, .apple.com Rebel girl you are the queen of my world +++++++++++++++++++++++++++ >From isis@netcom.com (Mike Cohen) Date: Fri, 1 Apr 1994 18:55:49 GMT Organization: ISIS International Jens Alfke writes: >Chris Waters, elecjw@ccu1.auckland.ac.nz writes: >> How can I send an apple event from within an AppleScript program? The event >> I want to send is application specific but its format is simple. >There's also a syntax in AS for sending arbitrary events that don't have >terminologies. It involves lots of double-angle-brackets or 'guillemots' >(option-backslash and option-shift-backslash.) The name of the event is just >the eight letter code inside guillemots. Unfortunately I can't remember right >now how you specify parameters... did this make it into the documentation? It looks something like this: <> direct_object GIVEN <> some_parameter... Of course, use opt-backslash & opt-shift backslash instead of << and >>. -- Mike Cohen - isis@netcom.com NewtonMail, eWorld: MikeC / ALink: D6734 / AOL: MikeC20 --------------------------- >From harttj@jackatak.raider.net (Timothy Hart) Subject: Trouble with 'WIND's and window staggering Date: Sat, 19 Mar 1994 07:55:04 GMT Organization: Jack's Amazing CockRoach Capitalist Ventures I've just written my first little mac application shell (I'm sure some of you remember this!!). Everything seems to be working fine except for staggering the new, untitled windows as they open. If I interpret NIM:Toolbox correctly, all I should need to do is set the 'stagger in parent window screen' constant in the 'WIND' resource, right?? My window is a 'noGrowDocProc', and I'm running 7.0.1 ( didn't auto positioning become available in 7.0?). I'm also creating my resources with Resedit 2.1.1. Am I interpreting NIM incorrectly? All my windows appear in *exactly* the same place, and I have *no* positioning code!! Please respond to harttj@belmont.edu. in addition to this newsgroup. -- harttj@jackatak.raider.net (Timothy Hart) - ----------jackatak.raider.net (615) 377-5980 ------------ +++++++++++++++++++++++++++ >From Jens Alfke Date: Fri, 1 Apr 1994 02:03:29 GMT Organization: Apple Computer Timothy Hart, harttj@jackatak.raider.net writes: > 2.1.1. Am I interpreting NIM incorrectly? All my windows appear in > *exactly* the same place, and I have *no* positioning code!! The window-stagger flag doesn't always work. In my experience it _usually_ works, but fails often enough that I finally had to stop using it and do my own window staggering. But it did _usually_ work for me. Try setting it to stagger on the main screen instead of the parent's screen. --Jens Alfke jens_alfke@powertalk Rebel girl, rebel girl, .apple.com Rebel girl you are the queen of my world --------------------------- >From ParserInc%f1.n3641.z1@psybbs.durham.nc.us (ParserInc) Subject: When-Where WWDC '94 ? Date: 17 Mar 94 23:50:11 GMT Organization: (none) Organization: America Online, Inc. (1-800-827-6364) I would very much like to attend this year, (my first on the Mac), but I can't find out the date or location. Also what does it cost ? Thanks in advance, Keith Brownlow. ParserInc@aol.com +++++++++++++++++++++++++++ >From Frank Price Date: 25 Mar 1994 17:38:26 GMT Organization: Pomona College In article <764568523.AA03324@psybbs.durham.nc.us> ParserInc, ParserInc%f1.n3641.z1@psybbs.durham.nc.us writes: >I would very much like to attend this year, (my first on the Mac), but I can't >find out the date or location. Also what does it cost ? WWDC Dates are May 15-20, and it is at the San Jose Convention Center I think. However, the one thing that really popped off the page is the price. $325 per DAY. Somebody please tell me what you get for $325 a DAY!!??! -Frank _______________________________________________________________________ | Frank Price | wprice@jarthur.claremont.edu | |_______________|______________________________________________________| +++++++++++++++++++++++++++ >From mxmora@unix.sri.com (Matt Mora) Date: 25 Mar 1994 16:30:38 -0800 Organization: SRI International, Menlo Park, CA In article <2mv7ii$otq@jaws.cs.hmc.edu> Frank Price writes: >In article <764568523.AA03324@psybbs.durham.nc.us> ParserInc, >ParserInc%f1.n3641.z1@psybbs.durham.nc.us writes: >>I would very much like to attend this year, (my first on the Mac), but I >can't >>find out the date or location. Also what does it cost ? > >WWDC Dates are May 15-20, and it is at the San Jose Convention Center I >think. However, the one thing that really popped off the page is the >price. $325 per DAY. Somebody please tell me what you get for $325 a >DAY!!??! Let's See: 1. A day off work. 2. Free meals. (well its worked into the price of admission:-) 3. Play games for free. 4. Sit in big rooms like leemings, staring at a large screen while marketeers preach to the converted. (it reminds me of a commercial that I saw in 1984 during the superbowl :-) 5. Play with lego's on company time. 6. You get a nice shirt 7. You get some buttons and all the paper that you want to stuff in to a canvas bag they give you. 8. You get to play "stump the experts" 9. You get a chance to air your feelings to Apple's upper managment. 10.You get to hang out with John Norstad and bug him about features that Newswatcher needs. Xavier -- ___________________________________________________________ Matthew Xavier Mora Matt_Mora@sri.com SRI International mxmora@unix.sri.com 333 Ravenswood Ave Menlo Park, CA. 94025 +++++++++++++++++++++++++++ >From j-norstad@nwu.edu (John Norstad) Date: Fri, 25 Mar 1994 20:50:48 -0600 Organization: Northwestern University In article <2mvvne$q1n@unix.sri.com>, mxmora@unix.sri.com (Matt Mora) wrote: > 10.You get to hang out with John Norstad and bug him about features > that Newswatcher needs. "NewsWatcher features" is an oxymoron. I'll bring my PowerBook. We can blow off the sessions and hang out out on the veranda and write code to make the about box prettier. -- John Norstad Academic Computing and Network Services Northwestern University j-norstad@nwu.edu +++++++++++++++++++++++++++ >From b-clark@nwu.edu (Brian Clark) Date: Fri, 25 Mar 1994 21:57:46 -0600 Organization: Northwestern University In article , j-norstad@nwu.edu (John Norstad) wrote: > I'll bring my PowerBook. We can blow off the sessions and hang out out on > the veranda and write code to make the about box prettier. Actually, it's Disinfectant that need a prettier About dialog. It has this dithered picture ... :-) +++++++++++++++++++++++++++ >From d88-jwa@mumrik.nada.kth.se (Jon Wätte) Date: 26 Mar 1994 10:36:00 GMT Organization: The Royal Institute of Technology In <2mv7ii$otq@jaws.cs.hmc.edu> Frank Price writes: >think. However, the one thing that really popped off the page is the >price. $325 per DAY. Somebody please tell me what you get for $325 a >DAY!!??! It's about the same price as last year; It is $1100 for the whole week. You get the inside gospel from Apple, usually one or a few CDs with stuff ranging from junk to really interesting pre-release versions, you get a chance to schmooze with Apple engineers, and to take your code problems to DTS even if you aren't a Partner. There are also testing labs, third-party expos, lunches, sodas, breakfasts, a party that's gotten less exciting the last two years, and a general we-all-love-the-mac-and-are-proud-of-it atmosphere. If you want something less expensive, even more informal, and less up-stage, you should try MacHack in Ann Arbour in June. It's rowdy, it's small, it's fun, and I probably can't come this year unless I find a sponsor :-( (It's that or WWDC) Cheers, / h+ -- -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe -- "Don't use the Layer Manager" +++++++++++++++++++++++++++ >From dowdy@apple.com (Tom Dowdy) Date: Fri, 1 Apr 1994 18:02:52 GMT Organization: Apple Computer, Inc. In article <2mvvne$q1n@unix.sri.com>, mxmora@unix.sri.com (Matt Mora) wrote: > >WWDC Dates are May 15-20, and it is at the San Jose Convention Center I > >think. However, the one thing that really popped off the page is the > >price. $325 per DAY. Somebody please tell me what you get for $325 a > >DAY!!??! > > 4. Sit in big rooms like leemings, staring at a large screen while marketeers > preach to the converted. (it reminds me of a commercial that I saw in 1984 > during the superbowl :-) Actually, even more fun is to watch what happens after a session, when all of those folks who spent $325 decide to extract that much information from the speaker by all asking questions at a high rate of speed and blocking the speaker's exit from the stage. I bet it's *really* fun to watch. It's not much fun to participate in, at least not on the receiving end :-) BTW: regarding cost. I doubt Apple makes money on this little get together, and this convention center is REALLLLY expensive to rent. If you count the "lost engineering time" to Apple, it's even more. For many Apple folks this is a weeklong 16 hour day, no-sleep, caffine fest -- trying to make sure that it's *great* for those who pay to attend. Most of the folks who speak there are Real (tm) Apple Engineers, and most are even nice about answering questions in the hallways and such. If you need hot new info, and you don't have any other way to get it -- it's certainly worth it. If you just want to hang out, and are always looking for direct value to you for the money, it may not be worth it. If you are in the bay area and aren't coming to the convention itself (due to cost, mentioned above), you might consider attending the netters dinner (planning underway now, sure to be a real zoo this year) to chat with some of the folks who you know only by name. I always have a great time and want to thank Mike Pierce for taking on this awful-wonderful task! -- Tom Dowdy Internet: dowdy@apple.COM Apple Computer MS:302-3KS UUCP: {sun,voder,amdahl,decwrl}!apple!dowdy 1 Infinite Loop AppleLink: DOWDY1 Cupertino, CA 95014 "The 'Ooh-Ah' Bird is so called because it lays square eggs." --------------------------- >From Jonathan.D.Baumgartner@unh.edu (Jonathan D Baumgartner) Subject: Where is DropShell? Date: 31 Mar 1994 20:47:21 GMT Organization: Computing & Information Services, University of New I looked at info-mac, umich, and the alt.sources site, but couldn't find it. As I recall, it was freeware. jon -- Jonathan D. Baumgartner Jonathan.D.Baumgartner@unh.edu Computing & Information Services, University of New Hampshire "It's just a matter of opinion." -- Primus +++++++++++++++++++++++++++ >From somogyi@macuser.ziff.com (Stephan Somogyi) Date: Fri, 1 Apr 1994 07:02:48 GMT Organization: MacUser Magazine US In article <2nfcsp$d5i@mozz.unh.edu>, Jonathan.D.Baumgartner@unh.edu (Jonathan D Baumgartner) wrote: > I looked at info-mac, umich, and the alt.sources site, but couldn't > find it. As I recall, it was freeware. ftp://netcom8.netcom.com//pub/leonardr/Hacks/DropShell.sit.hqx However, this version needs some work before it can be used with the Universal Headers to make native apps. Both Leonard and I have made the necessary changes separately, but neither of us feels comfortable enough with our mods to just release them to the world. If you really need a native-capable DropShell, drop either Leonard or myself a line. __________________________________________________________________________ Stephan Somogyi "Davidian Inside" MacUser --------------------------- >From adriaan@phil.ruu.nl (Adriaan Tijsseling) Subject: double click? Date: 25 Mar 1994 15:00:48 +0100 Organization: Dept. of Philosophy, Utrecht University, The Netherlands Hello, I am trying to record a double click with the mouse. I have a code that checks if the time past after the last mouse click is smaller than or equal to DoubleTime. But this doesn't work. Am I supposed to wait after a mouseclick if a next mouseclick will occur within doubletime and at roughly the same location, or can I handle the mouseclick and then check the doubletime for a doubleclick. Any help would be very appreciated, Lots of thanks in advance, Adriaan Tijsseling , adriaan@phil.ruu.nl +++++++++++++++++++++++++++ >From chuck@gte.com (Chuck Hoffman) Date: Fri, 25 Mar 1994 17:37:22 GMT Organization: GTE Laboratories In article <2muqqg$1hq@laurel.phil.ruu.nl>, adriaan@phil.ruu.nl (Adriaan Tijsseling) wrote: > Hello, > > I am trying to record a double click with the mouse. I have a code that checks if the time past after the last mouse click is smaller than or equal to DoubleTime. But this doesn't work. Am I supposed to wait after a mouseclick if a next mouseclick will occur within doubletime and at roughly the same location, or can I handle the mouseclick and then check the doubletime for a doubleclick. > Any help would be very appreciated, > Just a piece of trivia. The time for the double-click is from the time of the mouse-up to the next mouse-down, though most people probably just time from mouse-down to the next mouse-down. Compare that with DoubleTime. Location of the mouse is not part of it. No, I wouldn't wait. Just compare the times. -- Chuck Hoffman GTE Laboratories, Waltham, MA, USA 617-466-2131 - ------------------------------------------------ I'm not sure why we're here, but I am sure that while we're here we're supposed to help each other. - ------------------------------------------------ +++++++++++++++++++++++++++ >From Maggie Burke Date: Mon, 28 Mar 1994 16:27:19 GMT Organization: Integrated Math Tools Project, UMass Dartmouth In article <2muqqg$1hq@laurel.phil.ruu.nl> Adriaan Tijsseling, adriaan@phil.ruu.nl writes: >I am trying to record a double click with the mouse. I have a code that checks >if the time past after the last mouse click is smaller than or equal to >DoubleTime. But this doesn't work. Am I supposed to wait after a mouseclick if >a next mouseclick will occur within doubletime and at roughly the same >location, or can I handle the mouseclick and then check the doubletime for a doubleclick. >Any help would be very appreciated, I believe that because a double-click is supposed to be an extension of a single-click, you can handle your single-click first. Store the information from that click (time and location). On the next mouse-down (each mouse down, actually), check to see if it happened within the double click time. You *do* want to make sure it's within a certain distance of the last mouse-click as well, although I'm not sure where that information is located. I use MacApp, which takes care of that for me. :) What is the problem you're having? Maybe you could describe it in more detail. Hope this helps. Maggie +++++++++++++++++++++++++++ >From rollin@newton.apple.com (Keith Rollin) Date: Thu, 31 Mar 1994 03:31:24 GMT Organization: Little to none In article , chuck@gte.com (Chuck Hoffman) wrote: > In article <2muqqg$1hq@laurel.phil.ruu.nl>, adriaan@phil.ruu.nl (Adriaan > Tijsseling) wrote: > > > I am trying to record a double click with the mouse. I have a code that > > checks if the time past after the last mouse click is smaller than or > > equal to DoubleTime. But this doesn't work. Am I supposed to wait after > > a mouseclick if a next mouseclick will occur within doubletime and at > > roughly the same location, or can I handle the mouseclick and then check > > the doubletime for a doubleclick. > > > > Just a piece of trivia. The time for the double-click is from the time of > the mouse-up to the next mouse-down, though most people probably just time > from mouse-down to the next mouse-down. Compare that with DoubleTime. > Location of the mouse is not part of it. I think I disagree with you on the location thing, Chuck. Location _should_ play a part in determining if a certain mouseDown is part of a double-click. I find myself perfectly capable of clicking quickly across lines in a document. In word processors that don't take location into account, they get confused and think that I just double clicked on the second word I clicked on, when I actually had clicked on one word and then quickly clicked on another. This happens a lot when I aim for a particular word, miss it, and then quickly correct myself. Also take intervening events into account. If the user mousedowns, presses a key, and mousedowns again -- all within the DoubleTime timespan, don't count the two mousedowns as a double-click. When I'm busy mousing with one hand and using the keyboard with the other (this happens a lot when cut-and-pasting), I often see applications thinking that I double-clicked when I really didn't. - -------------------------------------------------------------------------- Keith Rollin --- Phantom Programmer --- Apple Computer, Inc. --- Team Newton +++++++++++++++++++++++++++ >From jolley@ucssun1.sdsu.edu (Keith P Jolley \aero\) Date: 1 Apr 1994 16:10:59 GMT Organization: San Diego State University Computing Services : > Location of the mouse is not part of it. : I think I disagree with you on the location thing, Chuck. Location _should_ : play a part in determining if a certain mouseDown is part of a : double-click. true-true. Back to the archives, IM VI, pg 255, way down at the bottom: ..assume a double click has occured if...: *The time of the mouse-up (note: UP) event and the mouse-down event differ by a number of ticks <= GetDblTime. *The location of the two mouse-down events separated by the mouse-up events are sufficiently close to each other. It then tells you to define close together for yourself. Think Reference has a code snippet under getDblTime. (I think they ignore the mouse-up part though...) -- ///////////////////////////////////////////////////// // Keith Jolley // jolley@ucssun1.sdsu.edu // ///////////////////////////////////////////////////// // the only exercise i ever get is the shakes... // ///////////////////////////////////////////////////// +++++++++++++++++++++++++++ >From jaeger@kunikpok.icus.com (Jaeger) Date: Sat, 02 Apr 94 13:38:36 CST Organization: Kunikpok Kennels and Komputers (Pet Project) The following code inserted in your event loop will help to find double clicks. switch ( gEvent.what ) {//fragment of an event loop case mouseUp: gClikTime = gEvent.when; //save mouseup time break; case mouseDown: if ( ( gEvent.when - gClikTime ) <= GetDblTime() ) //its a double click break; } -- Brian Stern >:-{)} Jaeger@fquest.com --------------------------- End of C.S.M.P. Digest **********************