From: owner-csmp@ee.mcgill.ca Subject: csmp digest Vol 4 No 046 C.S.M.P. Digest Mon, 08 Dec 97 Volume 4 : Issue 46 Today's Topics: Apple Guide w-o mods to app? C++ C++, Launching browser? Getting URL displayed? Detecting screensaver app. or module?? GameCode unavailable ! MPW 3.4.2 - Free?! Modems and Caller ID Pane classes Power Manager help Removing Custom Icons from files SpriteWorld 2 with latest CodeWarrior? Status Bar [Q] How can my application recognize mouse double click? [Q] How do I switch resolution w-o using DrawSprockets? [Q]Create a Serial Driver? fastest graphic? getting # of frames of QuickTime .mov file infrared-port on powerbook for remote control reg exp search The Comp.Sys.Mac.Programmer Digest is moderated by Mark Aiken (marka@ee.mcgill.ca). The digest is a collection of article threads from the internet newsgroups comp.sys.mac.programmer.help, csmp.tools, csmp.misc and csmp.games. It is designed for people who read news 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 ee.mcgill.ca). 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 digests can be obtained by email, ftp or through the World Wide Web. If you want to receive the digest by mail, send email to majordomo@ee.mcgill.ca with no subject and one of the following commands as body: help Sends you a summary of commands subscribe csmp Adds you to the mailing list unsubscribe csmp Removes you from the list Once you have subscribed, you will automatically receive each new issue as it is created. Back issues are available by ftp from Info-Mac mirror sites in the per/csmp subdirectory, e.g. ftp://sumex-aim.stanford.edu/info-mac/per/csmp/ The contents of all back issues can be searched by accessing the following URL, courtesy of Andrew Barry (ajbarry@ozemail.com.au): http://marvin.stattech.com.au/search.html They can also be searched through the following URLs, thanks to Tim Tuck (Tim.Tuck@sensei.com.au): http://wais.sensei.com.au/searchform.html wais://wais.sensei.com.au:210/csmp? ------------------------------------------------------- >From brian_hall@markspace.com (Brian Hall) Subject: Apple Guide w-o mods to app? Date: Wed, 12 Nov 1997 16:50:48 -0800 Organization: Mark/Space Softworks Is it possible to get an apple guide to show up under the help menu w/o making any changes to an app? If so, what is the trick? I have a help file I created with AGVAT and it *seems* to be OK (as far as name, type/creator, etc), but won't show up. I know it must be something simple! Brian _____________________________________________________________________ Mark/Space Softworks voice 408-293-7299 111 West Saint John, 4th Floor fax 408-293-7298 San Jose, CA 95113 Macintosh, Newton, and Windows Communications Software & Solutions: PageNOW!, PageME!, Communicate, ZMODEM, PC-ANSI, Videotex CTB Tools +++++++++++++++++++++++++++ >From paul@ljl.com (Paul Robichaux) Date: Thu, 13 Nov 1997 09:32:00 -0600 Organization: LJL Enterprises, Inc. In article , brian_hall@markspace.com (Brian Hall) wrote: >Is it possible to get an apple guide to show up under the help menu w/o >making any changes to an app? If so, what is the trick? I have a help file >I created with AGVAT and it *seems* to be OK (as far as name, >type/creator, etc), but won't show up. Yes. Make sure when you build it with AGVAT that the application name, type, and creator are correct, then just drop the built guide in the app folder. You won't get to use coach marks, context checks, etc. without modifying the app, though. Cheers, -Paul -- Paul Robichaux | paul@ljl.com | Just out: _Jazz Up Your Web Site In A Weekend_ (ISBN 0761511377) Author, _Windows NT Server 4 Administrator's Guide_ (ISBN 0761507515). +++++++++++++++++++++++++++ >From korte@mail.io.com (Mike Korte) Date: Thu, 13 Nov 1997 14:20:27 -0600 Organization: Illuminati Online In article , brian_hall@markspace.com (Brian Hall) wrote: >Is it possible to get an apple guide to show up under the help menu w/o >making any changes to an app? If so, what is the trick? I have a help file >I created with AGVAT and it *seems* to be OK (as far as name, >type/creator, etc), but won't show up. > >I know it must be something simple! It is simple. There are two ways to get an Apple Guide to show up in the Help menu. When you launch an applications, Apple Guide looks for guide files in the same folder as the application. If there is only one guide file and that guide file does not include the Guide Script command , the guide file will be listed in the help menu. You can ensure that the guide file you want is listed in the Help menu by including the Guide Script command no more than once in your guide file. For example: #this guide file is associated with the SurfWriter app 'WAVE' #SurfWriter's signature is 'WAVE' This information is from pages 10-8 and 10-9 of "Apple Guide Complete" . +++++++++++++++++++++++++++ >From korte@mail.io.com (Mike Korte) Date: Thu, 13 Nov 1997 14:21:31 -0600 Organization: Illuminati Online In article , brian_hall@markspace.com (Brian Hall) wrote: >Is it possible to get an apple guide to show up under the help menu w/o >making any changes to an app? If so, what is the trick? I have a help file >I created with AGVAT and it *seems* to be OK (as far as name, >type/creator, etc), but won't show up. > >I know it must be something simple! It is simple. There are two ways to get an Apple Guide to show up in the Help menu. When you launch an applications, Apple Guide looks for guide files in the same folder as the application. If there is only one guide file and that guide file does not include the Guide Script command , the guide file will be listed in the help menu. You can ensure that the guide file you want is listed in the Help menu by including the Guide Script command no more than once in your guide file. For example: #this guide file is associated with the SurfWriter app 'WAVE' #SurfWriter's signature is 'WAVE' This information is from pages 10-8 and 10-9 of "Apple Guide Complete" . Mike Korte korte@shokwave.com Principal Software Engineer www.shokwave.com Shokwave Software, Inc. (512) 472-8721 --------------------------- >From "A. Nappe" Subject: C++ Date: Wed, 5 Nov 1997 15:57:55 -0800 Organization: University of Washington I'm curious what kind of (if any) drawbacks using C++ might have for graphic applications (games) on the Mac? It seems to me that more people use C than C++, is this because C++ is newer (but C++ itself isn't exactly a baby) or is it because C++ is slower (I doubt) in its differences? (I know that everything C does, C++ also does). I'm not sure that either of those is the answer. Just curious, Anders +++++++++++++++++++++++++++ >From softqual@tdi-services.fr (Pierre-Alain DORANGE) Date: Thu, 20 Nov 1997 09:23:09 +0100 Organization: SoftQual A. Nappe wrote (Ècrivait)Ý: > I'm curious what kind of (if any) drawbacks using C++ might have for > graphic applications (games) on the Mac? It seems to me that more people > use C than C++, is this because C++ is newer (but C++ itself isn't > exactly a baby) or is it because C++ is slower (I doubt) in its > differences? (I know that everything C does, C++ also does). I'm not sure > that either of those is the answer. Just curious, > Anders C++ is an oriented object langage so it make code simple to read and to wrote and it make modification and improvement more fastest to integrate. Also, if you know well C++ mechnism you can wrote code that run at the same speed it run with C. C++ is a new langage, not a C with more features. So people using C have to learn lot of thing to benefit from it. Another thing, specific to old MacOS developper : at the beginning (before 90) mac developper use Pascal (as toolbox is pacal native) and some of them make to loop to C (as Apple told them that Apple will make the loop). And know they have to make the loop to C++ ! Another important thing, lot of people said they do C++ because they use a C++ compiler, but if tou look carefully at there code its pure C code or approximate C++ code. On the other hand some people using C compiler can wrote code that has the same philosophy than C++ (oriented obejct i mean). Oriented object is just like a "philosophy", C++ is a tool that make oo implementation easier. (excuse for my poor english) Pierre-Alain +++++++++++++++++++++++++++ >From "D. Alexander Schnarr" Date: Thu, 20 Nov 1997 18:47:34 -0600 Organization: Metaphase Pierre-Alain DORANGE wrote: > > A. Nappe wrote (Ècrivait) : > > > I'm curious what kind of (if any) drawbacks using C++ might have for > > graphic applications (games) on the Mac? It seems to me that more people > > use C than C++, is this because C++ is newer (but C++ itself isn't > > exactly a baby) or is it because C++ is slower (I doubt) in its > > differences? (I know that everything C does, C++ also does). I'm not sure > > that either of those is the answer. Just curious, > > Anders I ported a public domain 3D linedrawing program to C++ (it was more a rewrite). I took a performance hit of almost 50% over the C version, even though a lot of my code was optimized (combined matrices, lots less copying). The performance bottleneck was caused by the overhead of calling another classes' function and asking for a return value (as in y=Instance->GetValue(x)). I changed the class called by that class to a struct (y=StructInst->x) and accessed the value directly and the speedup was enormous. Changing the class to public increased the speed a little, but there is considerable overhead with referencing variables in classes (any ideas why?) I later tried hashing the addresses into a pointer table and got comparable performance to the C code (the overhead of looking up the pointer offset any other performance gains). I'm expecting my polygon engine to work much faster than the C version, because they're using the same slow code and referencing structs via a pointer to an array of pointers (to structs) whereas my C++ code is only pointers to an array of data, since each object contains a list of its own pointers. I'm hoping that, since the objects are created in advance, the performance overhead won't affect speed (no class references another class -this will change when I add collision detection, I'm sure) At this point however, my code diverges greatly from theirs, so I could be completely wrong - I won't be able to finish it until after I get settled into my new home - about 2 weeks + finding time to do 10-12 hours of coding outside of my full time job, + or - due to this being my first mac engine (I've written/co-written 3 on SGI machines back in my school days, none of which were optimized, since my grade didn't depend on it :) > > C++ is an oriented object langage so it make code simple to read and to > wrote and it make modification and improvement more fastest to > integrate. > Also, if you know well C++ mechnism you can wrote code that run at the > same speed it run with C. There's a lot of overhead. If you need to create and destroy a lot of objects on the fly, you'll never get the speed of C (at least, not in my experiences). > > C++ is a new langage, not a C with more features. So people using C have > to learn lot of thing to benefit from it. and it's a standard! scary huh? (On Monday the C++ standard was approved) - Alex Schnarr --------------------------- >From tbauer.bluewater@t-online.de (Thilo Bauer) Subject: C++, Launching browser? Getting URL displayed? Date: 12 Nov 1997 12:03:49 GMT Organization: bluewater multimedia concepts Hallo, I'm looking for a snippet of code. Of course, the problem seems to be trivial: I have a native MacOS application and I have to launch a browser (Netscape, IE, CyberDog, ...) from this application. Then, just tell the browser a given URL (html/Java site) to be displayed. Launching the browser is easy. But, is there a standard way to tell any browser the name of an URL to be displayed. Via AppleEvents, or whatever? I cannot find any answer on Apples devworld... Pls. reply via email. Thank you for your cooperation. Thilo Bauer -- eMail: tbauer.bluewater@t-online.de - ---------------------------------------------- from: "Suzie Q." (Apple Macintosh PowerPC) - ---------------------------------------------- +++++++++++++++++++++++++++ >From spam@blah.blah.blah.in.sig (John C Daub) Date: Wed, 12 Nov 1997 09:33:26 -0600 Organization: Metrowerks Corporation In article <64c5v5$m94$2@news02.btx.dtag.de>, tbauer.bluewater@t-online.de wrote: >I have a native MacOS application and >I have to launch a browser (Netscape, IE, CyberDog, ...) >from this application. Then, just tell the browser >a given URL (html/Java site) to be displayed. > >Launching the browser is easy. But, is there a standard way >to tell any browser the name of an URL to be displayed. >Via AppleEvents, or whatever? I think there's a GURL AppleEvent that can do all of this... But IMHO there's a "better way" to do all of this: Internet Config. You can find out more at -- - -------------------------------------------------------------------- John C. Daub Metrowerks Engineering Operations PowerPlant/Latitude Minion PGP Public Key Available +++++++++++++++++++++++++++ >From uzs90z@ibm.rhrz.uni-bonn.de (Michael Schuerig) Date: Wed, 12 Nov 1997 17:38:47 +0100 Organization: Completely Disorganized Thilo Bauer wrote: > Hallo, > > I'm looking for a snippet of code. > > Of course, the problem seems to be trivial: > > I have a native MacOS application and > I have to launch a browser (Netscape, IE, CyberDog, ...) > from this application. Then, just tell the browser > a given URL (html/Java site) to be displayed. Here's the example from the Internet Config Programming Kit available at and some other places on the net. AS IC is public domain you can freely include it with your package if you need to. The code below is *all* you need to do apart from linking the lib to your project. #include #include OSStatus LaunchURLC(ConstStr255Param urlStr); OSStatus LaunchURLC(ConstStr255Param urlStr) { OSStatus err; ICInstance inst; long startSel; long endSel; err = ICStart(&inst, '????'); // Use your creator code if you have one! if (err == noErr) { err = ICFindConfigFile(inst, 0, nil); if (err == noErr) { startSel = 0; endSel = urlStr[0]; err = ICLaunchURL(inst, "\p", (char *) &urlStr[1], urlStr[0], &startSel, &endSel); } (void) ICStop(inst); } return (err); } Michael -- Michael Schuerig Consistency is the last refuge mailto:uzs90z@uni-bonn.de of the unimaginative. http://www.uni-bonn.de/~uzs90z/ -Oscar Wilde --------------------------- >From Till.Warweg@frankfurt.netsurf.de (Till Warweg) Subject: Detecting screensaver app. or module?? Date: 08 Nov 97 19:27:17 Organization: OMNILINK --- your link to the net Hey there! This is a question to those screensaver (module) programmers among you! Suppose there were some FBA (faceless background app) running silently on your system whose sole purpose was to monitor user activity. Whenever the screensaver came up after the preset period of inactivity (if installed) it would notice this and put up some smart dialog saying something "Ha, I knew it would!". Joke aside, how can a program determine wether a screensaver program (or module) is currently active? Is there, for example, some set of window properties that must be used for implementing screen savers and that could be used from distinguishing these particular windows from others? Or is there some AppleEvent defined for notifying other apps. about screensaver activation? Any help would be greatly appreciated! Thanks, Till PS. Please respond by e-mail as well! +++++++++++++++++++++++++++ >From i'm@not.here (Jeff Clites) Date: Tue, 11 Nov 1997 00:22:28 -0800 Organization: California Institute of Technology, Pasadena In article <879017237mnewsTill.Warweg@frankfurt.netsurf.de>, Till.Warweg@frankfurt.netsurf.de (Till Warweg) wrote: >Joke aside, how can a program determine wether a screensaver >program (or module) is currently active? >Is there, for example, some set of window properties that must >be used for implementing screen savers and that could be >used from distinguishing these particular windows from others? One idea: some screensave-type apps set the menu bar height to zero to hide it. You could check for this, but of course it wouldn't be perfect. There is probably no universal way, but you'd do pretty well if you checked for things like this, as well as checking for some specific (common) cases like AfterDark. (I believe someone already referred you to their SDK.) Also, you could check for a window whose content region encompasses the entire grey region. - ------------------------------------------------------------------------ Jeff Clites Pasadena, California My account name is jac and the rest of my address has igor and caltech and edu, separated by dots. Don't spam me or anybody else (please). +++++++++++++++++++++++++++ >From dowdy@apple.com (Tom Dowdy) Date: Tue, 11 Nov 1997 11:33:26 -0800 Organization: Apple Computer, Inc. In article , i'm@not.here (Jeff Clites) wrote: >In article <879017237mnewsTill.Warweg@frankfurt.netsurf.de>, >Till.Warweg@frankfurt.netsurf.de (Till Warweg) wrote: > >>Joke aside, how can a program determine wether a screensaver >>program (or module) is currently active? >>Is there, for example, some set of window properties that must >>be used for implementing screen savers and that could be >>used from distinguishing these particular windows from others? > >One idea: some screensave-type apps set the menu bar height to zero to >hide it. You could check for this, but of course it wouldn't be perfect. >There is probably no universal way, but you'd do pretty well if you >checked for things like this, as well as checking for some specific >(common) cases like AfterDark. (I believe someone already referred you to >their SDK.) Also, you could check for a window whose content region >encompasses the entire grey region. Just about every screensaver nowadays implements at least the SAVR (info like "is it on?"), and sometimes also the SAVC (control) Gestalt calls. These were originally done by AfterDark, but also in Pyro!. Apple's DTS recommends them to developers both of screensavers and of those who need to control them. I might also consider checking for mBarHeight being zero, but beyond that, I wouldn't add any other checks. Authors of screensavers now have a perfectly good and acceptable way to let apps (like games) know that they are running. If you find a screensaver that doesn't, report it to the author as a bug on their part. -- Tom Dowdy Internet: dowdy@apple.COM Apple Computer MS:302-3KS 1 Infinite Loop Cupertino, CA 95014 "The 'Ooh-Ah' Bird is so called because it lays square eggs." +++++++++++++++++++++++++++ >From Reinder@arnhem.alva-bv.nl (Reinder Verlinde) Date: Tue, 11 Nov 1997 18:03:37 +0100 Organization: ALVA B.V. In article , i'm@not.here (Jeff Clites) wrote: >In article <879017237mnewsTill.Warweg@frankfurt.netsurf.de>, >Till.Warweg@frankfurt.netsurf.de (Till Warweg) wrote: > >>Joke aside, how can a program determine wether a screensaver >>program (or module) is currently active? >>Is there, for example, some set of window properties that must >>be used for implementing screen savers and that could be >>used from distinguishing these particular windows from others? > >One idea: some screensave-type apps set the menu bar height to zero to >hide it. You could check for this, but of course it wouldn't be perfect. >There is probably no universal way, but you'd do pretty well if you >checked for things like this, as well as checking for some specific >(common) cases like AfterDark. (I believe someone already referred you to >their SDK.) Also, you could check for a window whose content region >encompasses the entire grey region. > Checking for the AfterDark Gestalt which tells you whether After Dark is running ('SAVR', I believe) should be sufficient. Every screensaver worth its salt installs it. Reinder -- Reinder Verlinde --------------------------- >From softqual@tdi-services.fr (Pierre-Alain DORANGE) Subject: GameCode unavailable ! Date: Wed, 19 Nov 1997 09:14:48 +0100 Organization: SoftQual On CodeWarrior Pro 2 GameCode was removed. MW Ron explain on comp.sys.mac.programming.code-warrior that the project was stand by at Metrowerks because Microsoft always modify API, Apple abandon Game Sprocket and that there project manager leave Metrowerks... There is a GameCode list server. You can subscribe yourself by sending an email to 'gamecode-dev-request@frii.com' with 'subscribe' on a line by itself in the body of the message. Here, is there anaybody using this lib ? +++++++++++++++++++++++++++ >From psmy@eps.agfa.be (Phil Smy) Date: Wed, 19 Nov 1997 13:28:36 +0100 Organization: Agfa In article <199711181018522092140N@ebam-ip1.ebam-ip.inlandsys.com>, softqual@tdi-services.fr (Pierre-Alain DORANGE) wrote: > On CodeWarrior Pro 2 GameCode was removed. MW Ron explain on > comp.sys.mac.programming.code-warrior that the project was stand by at > Metrowerks because Microsoft always modify API, Apple abandon Game > Sprocket and that there project manager leave Metrowerks... > > There is a GameCode list server. You can subscribe yourself by sending > an email to 'gamecode-dev-request@frii.com' with 'subscribe' on a line > by itself in the body of the message. > > Here, is there anaybody using this lib ? Well, I use bits of it in the Yaroze development kit, but that's about it. Can you summarize its (GC's) benefits for those of us not up to speed? Phil +++++++++++++++++++++++++++ >From softqual@tdi-services.fr (Pierre-Alain DORANGE) Date: Thu, 20 Nov 1997 09:22:53 +0100 Organization: SoftQual Phil Smy wrote (Ècrivait)Ý: > > Well, I use bits of it in the Yaroze development kit, but that's about it. > Can you summarize its (GC's) benefits for those of us not up to speed? > > Phil GameCode was a project to make game development cross-platform (it mean MacOS, Win95 and Playstation). To ensure the complete X-platform all objects (its a C++ framework, but with C API available) all call is encapsulated. To ensure speed, all calls are made through best game tehnology available on the designed platform (ie Apple Game Sprockets for MacOS/PPC, DirectX for Win95). Its easy of use, GameCode came with an image compiler (compress and make image crossplatform and prepare image for 8 or 16 bits display). For Mac/68K (compatibility with older mac), as the GameSprocket is not available, Metrowerks rewrote in standard C code the routines. In summary, its fast (not as fast as blit code), its portable (very easy since you make no native call) and its easy to use. But GameCode still be a DR3 and won't be final until many developper ask it to metrowerks. Due to this the actual version DR3 had severals limitation (no sound on Win95, no button or dialog classes, very small menu handling, and some missing routines (scale sprite in 8 bits). Here's the state of art. Pierre-Alain +++++++++++++++++++++++++++ >From psmy@eps.agfa.be (Phil Smy) Date: Thu, 20 Nov 1997 16:06:02 +0100 Organization: Agfa In article <1997111915423714148960N@ebam-ip5.ebam-ip.inlandsys.com>, softqual@tdi-services.fr (Pierre-Alain DORANGE) wrote: > > But GameCode still be a DR3 and won't be final until many developper ask > it to metrowerks. > Due to this the actual version DR3 had severals limitation (no sound on > Win95, no button or dialog classes, very small menu handling, and some > missing routines (scale sprite in 8 bits). > > Here's the state of art. > > Pierre-Alain Well, it sounds good. Recently I have been doing a lot of Playstation development, but I haven't been looking into in GameCode. Phil +++++++++++++++++++++++++++ >From softqual@tdi-services.fr (Pierre-Alain DORANGE) Date: Thu, 20 Nov 1997 18:56:22 +0100 Organization: SoftQual Phil Smy wrote (Ècrivait)Ý: > > Well, it sounds good. Recently I have been doing a lot of Playstation > development, but I haven't been looking into in GameCode. > > Phil You can test it (its in CW Pro 1), i only use it for MacOS at that moment and plan to test it on Win95 soon. - ------------------------------------------------------- Pierre-Alain (eMail : maddog@chez.com) Macintosh + Bandes Dessinees : http://www.chez.com/maddog +++++++++++++++++++++++++++ >From ntagg@uoguelph.ca (Nathaniel Tagg) Date: 20 Nov 1997 18:03:17 GMT Organization: University of Guelph Phil Smy informed the world that: : > There is a GameCode list server. You can subscribe yourself by sending : > an email to 'gamecode-dev-request@frii.com' with 'subscribe' on a line : > by itself in the body of the message. : > : > Here, is there anaybody using this lib ? : Well, I use bits of it in the Yaroze development kit, but that's about it. : Can you summarize its (GC's) benefits for those of us not up to speed? GameCode is only in DR3, which means it's got bad documentation, incomplete source code available, has unimplemented features, and occasional bugs and cantakerous behaviour. I love it. Why? Because it's the only package I've seen that does what I need and nothing else. It's essentially a wrapper for Game Sprockets on the mac, and something similar (DirectX) on the PC, as well as, supposedly, the Playstation platform. The Sprite kits available are good, but essentially require that you have one game window showing a side-on or top-down view of a 2d gamefield. GC gives you a reasonably fast blitter, decent sound support, keyboard monitoring, simple menus, monitor changing, etc, without any bells and whistles. Which is exactly what I want. - -N -- Nathaniel Tagg Physics grad student University of Guelph "The chances of a neutrino actually hitting something as it travels through all this howling emptiness are roughly comparable to that of dropping a ball bearing at random from a cruising 747 and hitting, say, an egg sandwich." -- Douglas Adams, _Mostly_Harmless_ +++++++++++++++++++++++++++ >From sumner@austin.metrowerks.com (Joel Sumner) Date: Fri, 21 Nov 1997 13:27:52 -0600 Organization: Metrowerks In article <651u15$oee@ccshst05.uoguelph.ca>, ntagg@uoguelph.ca (Nathaniel Tagg) wrote: >Phil Smy informed the world that: >: > There is a GameCode list server. You can subscribe yourself by sending >: > an email to 'gamecode-dev-request@frii.com' with 'subscribe' on a line >: > by itself in the body of the message. >: > >: > Here, is there anaybody using this lib ? > >: Well, I use bits of it in the Yaroze development kit, but that's about it. >: Can you summarize its (GC's) benefits for those of us not up to speed? > > > GameCode is only in DR3, which means it's got bad documentation, >incomplete source code available, has unimplemented features, and >occasional bugs and cantakerous behaviour. > > I love it. Why? Because it's the only package I've seen that >does what I need and nothing else. It's essentially a wrapper for Game >Sprockets on the mac, and something similar (DirectX) on the PC, as well >as, supposedly, the Playstation platform. > The Sprite kits available are good, but essentially require that >you have one game window showing a side-on or top-down view of a 2d >gamefield. GC gives you a reasonably fast blitter, decent sound support, >keyboard monitoring, simple menus, monitor changing, etc, without any >bells and whistles. Which is exactly what I want. Hi there, I'd like to give an update on the status of GameCode. At the present time, GameCode work has been suspended due to a number of reasons internal to Metrowerks. We may pick it up at some future time but that has not yet been determined. Thus, ports to the PlayStation are not currently in-progress. Metrowerks will not be releasing the code into the public domain. However, if you have an application that is built on GameCode and you need to make some bug fixes, the code can be obtained from Metrowerks under NDA and license. Please contact MWRon@metrowerks.com for more details. If you are interested in finding out more about GameCode, please see the GameCode list server. >There is a GameCode list server. You can subscribe yourself by sending >an email to 'gamecode-dev-request@frii.com' with 'subscribe' on a line >by itself in the body of the message. -Joel -- PlayStation Development Tools Dude Metrowerks --------------------------- >From "Seth Hill" Subject: MPW 3.4.2 - Free?! Date: 15 Nov 97 23:05:33 -0800 Organization: All USENET -- http://www.Supernews.com Hi all. I was browsing Apple's ftp site today, when I came upon the following file: From skortze@erols.com (Steven A. Kortze) Date: Sun, 16 Nov 1997 09:17:03 -0500 Organization: Erol's Internet Services In article , "Seth Hill" wrote: >Hi all. I was browsing Apple's ftp site today, when I came upon the >following file: > >This couldn't possibly be the real "Macintosh Programmer's Workshop", could >it? I mean, MPW is a commercial product, and although I've heard Apple >isn't going to support it any more, they aren't just *giving* it away, are >they? > >Somebody out there want to tell me I'm crazy? (I'd probably just download >it and find out if I had an internet connection faster than 28.8) MPW is now freely available. From what I understand, the MPW team has actually grown a little bit. MPW and it's tools are still used within Apple. They are not going to totally give up on it yet. I believe the version you found is the latest release version of MPW. In the past, pre-release versions were available on the ETO CDs and are now available on the CodeWarrior CDs (CW Pro). Here are a couple more urls: MPW Tool Updates http://devtools.apple.com/mpw-tools/ MrC/MrCpp (C/C++ PowerPC) Compiler http://devtools.apple.com/compilers/ Good luck! Steve +++++++++++++++++++++++++++ >From nagle@netcom.com (John Nagle) Date: Sun, 16 Nov 1997 17:39:53 GMT Organization: Netcom On-Line Services "Seth Hill" writes: >Hi all. I was browsing Apple's ftp site today, when I came upon the >following >file: >This couldn't possibly be the real "Macintosh Programmer's Workshop", could >it? I mean, MPW is a commercial product, and although I've heard Apple >isn't going to support it any more, they aren't just *giving* it away, are >they? Sure, why not? MPW is obsolete, unsupported, and grossly inferior to MetroWerks tools. It's basically a bad clone of the UNIX Programmer's Workbench, circa 1978. Twenty years is long enough. John Nagle +++++++++++++++++++++++++++ >From "Seth Hill" Date: 17 Nov 97 15:11:35 -0800 Organization: All USENET -- http://www.Supernews.com On Sun, Nov 16, 1997 9:39 AM, John Nagle wrote: > Sure, why not? MPW is obsolete, unsupported, and grossly inferior >to MetroWerks tools. It's basically a bad clone of the UNIX Programmer's >Workbench, circa 1978. Twenty years is long enough. > > John Nagle That being all well and good, it still means that now there is a free complete development environment availble on the mac. This is excellent news for hobbyist/high school programmers who don't necessarily want to invest $500 in CodeWarrior. It sure beats the incomplete shareware alternatives out there. Seth Hill +++++++++++++++++++++++++++ >From j-jahnke@uchicago.edu (Jerome Jahnke) Date: Wed, 19 Nov 1997 06:38:35 GMT Organization: BSD/IS Center for Research Technologies -- U of Chicago On Sun, Nov 16, 1997 9:39 AM, John Nagle wrote: > Sure, why not? MPW is obsolete, unsupported, and grossly inferior >to MetroWerks tools. It's basically a bad clone of the UNIX Programmer's >Workbench, circa 1978. Twenty years is long enough. Sorry, it also takes less RAM than Metrowerks and runs faster. Oddly enough most of the world still uses Makefiles, while the CW Pro line is addressing this fact it is nice to have software compile and install its self for you. I use it daily with metrowerks compiler without absorbing all that overhead I don't use (the awful editor and browser and debugger.) Don't knock it, command line systems are nice for lots of things, and programming is one of them. I am sure however that if Metrowerks came out with just a project manager that did not require 8 megabytes to run I would use it instead. But makefiles are easy enough to use and in quite a bit more flexible. Jer, -- Jerome Jahnke Biological Sciences Division/ Office of Academic Computing University of Chicago --------------------------- >From Andre-John Mas Subject: Modems and Caller ID Date: Wed, 19 Nov 1997 15:15:11 +0000 Organization: DHL Systems Ltd If someone calls me on my regular phone and my modem is active, is there any way that I can get my computer to get the caller's phone number once I pick up the phone? Thanks AJ -- * Andre Mas * * mailto:amas@lhr-sys.dhl.com <- ends 21/11/1997 * * mailto:ajmas@bigfoot.com <- Use this from 21/11/1997 * * Current geographical location .... United Kingdom * +++++++++++++++++++++++++++ >From i'm@not.here (Jeff Clites) Date: Wed, 19 Nov 1997 22:46:19 -0800 Organization: California Institute of Technology, Pasadena In article <3473027F.5F06@lhr-sys.dhl.com>, ajmas@bigfoot.com wrote: >If someone calls me on my regular phone and my modem is active, >is there any way that I can get my computer to get the caller's >phone number once I pick up the phone? I have seen a few products around which allow your Mac to do CallerID--one of which is called Mac CallerID: http://members.aol.com/maccallrid/index.html There's also a personal-organizer which supports it, and I believe it's the one made by Chronos. If you search www.versiontracker.com for "Chronos" or "organizer" you will probably find it. I hope this helps. - ------------------------------------------------------------------------ Jeff Clites Pasadena, California My account name is jac and the rest of my address has igor and caltech and edu, separated by dots. Don't spam me or anybody else (please). +++++++++++++++++++++++++++ >From brian_hall@markspace.com (Brian Hall) Date: Thu, 20 Nov 1997 15:29:07 -0800 Organization: Mark/Space Softworks In article , i'm@not.here (Jeff Clites) wrote: > In article <3473027F.5F06@lhr-sys.dhl.com>, ajmas@bigfoot.com wrote: > > >If someone calls me on my regular phone and my modem is active, > >is there any way that I can get my computer to get the caller's > >phone number once I pick up the phone? > > I have seen a few products around which allow your Mac to do CallerID--one > of which is called Mac CallerID: Also check out PhoneWatcher 2.0, which is currently in public beta at: http://www.markspace.com/phonewatcher.html The latest version added applescript support. Brian _____________________________________________________________________ Mark/Space Softworks voice 408-293-7299 111 West Saint John, Suite 333 fax 408-293-7298 San Jose, CA 95113 Mac OS, Newton, Pilot, Windows and Web Communications Solutions: PageNOW!, PageME!, PhoneWatcher, Communicate, ZMODEM, PC-ANSI, Videotex CTB Tools +++++++++++++++++++++++++++ >From mh@harthaven.com (Mark Hartman) Date: 21 Nov 1997 08:42:01 -0700 Organization: Mark Hartman In article <3473027F.5F06@lhr-sys.dhl.com>, ajmas@bigfoot.com wrote: >If someone calls me on my regular phone and my modem is active, >is there any way that I can get my computer to get the caller's >phone number once I pick up the phone? Check your modem's manual. Many caller-ID-enabled modems will send the caller ID string with the first "RING" message; if you can intercept that, you'll have the ID. YMMV. ================================================================================ Mark Hartman |Consultants to business, industry and education since 1977 C O M P U T E R | Database design * User interface * Troubleshooting S O L U T I O N S| Networking * Client/server systems * Macintosh * Oracle ===== tel 714/758-0640 ===============<*>================ fax 714/999-5030 ===== Some ideas are so ridiculous that only the intelligentsia believe them. --Orwell --------------------------- >From "Jens Lindblad" Subject: Pane classes Date: Sat, 22 Nov 1997 22:14:57 +0100 Organization: - Hi! I am making a view class that can display many different panes. There is only one big problem. I want to make it very flexible, so you can have many different panes and also use custom panes without having to change the main View code. The View class will load a resource and get the data, which says what panes to display, from there. If the View class is told to create an object of type 5, which may be a button, it should do so. But I don't want the View code to include any IF or CASE. And if somebody has made a custom pane, which may have the type ID 139, it should create just that type. PowerPlant does this but I don't really know how, and I don't want to mess around with the PowerPlant files to find out. If anybody know how to do this, please tell me. - ------------------------------------------- Jens Lindblad, 14 jens.lindblad@swipnet.se - -------------------------------------------- +++++++++++++++++++++++++++ >From jmunkki@alpha.hut.fi (Juri Munkki) Date: 23 Nov 1997 11:08:30 GMT Organization: Helsinki University of Technology In article <657hq1$n78@mn5.swip.net> "Jens Lindblad" writes: >I am making a view class that can display many different panes. There is >only one big problem. I want to make it very flexible, so you can have >many different panes and also use custom panes without having to change >the main View code. The View class will load a resource and get the >data, which says what panes to display, from there. If the View class is >told to create an object of type 5, which may be a button, it should do >so. But I don't want the View code to include any IF or CASE. And if Think's Class Library used to create objects by name. It was an extension to the language (a subset of C++), so portability is and was a problem. Codewarrior may offer something similar. I tend to prefer the 'switch - case' solution where you have all the acceptable classe headers included into a single file that has a function that can instantiate any of those classes. Avara creates all the objects that way. I originally (a long time ago) created the objects by name, but there's really no need for users to be able to crash the program by creating inappropriate objects. Using a switch/case to create objects may seem like an inelegant solution, but it's really very simple to do and quite portable. Of course it forces the compiler to link all the classes into the application wether they are used or not, but if you think about it, you'll notice that you will have to do the same thing if you instantiate by name. -- Juri Munkki jmunkki@iki.fi Life is easy when polygons are cheap. http://www.iki.fi/jmunkki Windsurfing: Faster than the wind. +++++++++++++++++++++++++++ >From Adam.Hunger@thebits.com (Adam Hunger) Date: Mon, 24 Nov 1997 00:43:27 -0500 Organization: Internet Services Its actually very informative to look at the Reanimator class in PowerPlant. The basic idea is registered classes are kept in a linked list contain the 4 letter type (UInt32) and a pointer to the creator function. The real magic is in processing the ppob resource which is basically a nested outline of objects and their associated parameters (location rects, min/max values, etc.). The code says it better than I ever could. Besided, you have to break a few eggs before you can write and understand the code. (Sorry for the scrambled metaphor.) --------------------------- >From hunter@telepath.com (jason) Subject: Power Manager help Date: Sun, 23 Nov 1997 09:23:00 -0600 Organization: All USENET -- http://www.Supernews.com I have a duo280c. I want to write a program that will show the watts, internal/battery temperature. Does anyone know where I can find this information? Inside Mac Vol 6 and the 280c dev notes didn't help =( I hear they are part of the "Extended" Power Manager that was first used in the Duos. Thanks! Jason Place hunter@telepath.com +++++++++++++++++++++++++++ >From rvoth@uniserve.com Date: Sun, 23 Nov 1997 17:10:06 -0800 Organization: Uniserve In article , hunter@telepath.com wrote: > I have a duo280c. I want to write a program that will show the watts, > internal/battery temperature. Does anyone know where I can find this > information? Inside Mac Vol 6 and the 280c dev notes didn't help =( > > I hear they are part of the "Extended" Power Manager that was first used in > the Duos. Thanks! If you want this info, you will need to struggle with decompiling, etc... it is not a public interface and the results seem to vary with model to model. I wrote a couple programs called PB Suite and BatteryMinder that use what I gleaned from different sources. Email me with what you are up to and I'll see if I can help. -Randall -- - --------------------------------------------------------------------------- Randall Voth Try out my shareware: PB Suite 3.0.1 and Synk 2.4 - --------------------------------------------------------------------------- +++++++++++++++++++++++++++ >From blob@[127.0.0.0] Date: Sun, 23 Nov 1997 17:02:01 -0800 Organization: (none) In article , hunter@telepath.com wrote: > I have a duo280c. I want to write a program that will show the watts, > internal/battery temperature. Does anyone know where I can find this > information? Inside Mac Vol 6 and the 280c dev notes didn't help =( The Inside Macintosh:Devices (which replaced volume 6 in 1992) chapter on the Power Manager (at the URL ) and technote 1046 (at the URL ) define the Power Manager calls. Try there. -- Combine the words blob, ricochet and net with the usual @ and . and you'll have my reply address. --------------------------- >From nospam4meAegir@mail.dma.be (Aegir) Subject: Removing Custom Icons from files Date: Fri, 21 Nov 1997 00:23:21 +0100 Organization: EUnet Belgium, Leuven, Belgium Normally this is a -16455 icon familly, which is is installed in the resource fork of the file. On top of this, the finder marks the 'khasCustomicon' bit of the file. But when I delete the icon family, and clear the customiconbit, the custom icon still stays on the file in the finder desktop. (Yes I checked if everything went ok. Icons are gone, bit cleared. ResEdit tells me so).. So what am I missing ? Why does the custom icon stay ? Also, if I make a copy from the file which custom icon I have killed, the duplicate doesn't bare the custom icon any longer. So, this tells me that my 'clear custom' stuff worked. So why doesn't the finder update ? All ideas and suggestions welcome... -- nospam4meAegir@mail.dma.be (Remove the obvious part...:) +++++++++++++++++++++++++++ >From Online@MacTech.com ( nick.c MacTech ) Date: Thu, 20 Nov 1997 19:27:07 -0700 Organization: MacTech Magazine nospam4meAegir@mail.dma.be (Aegir) wrote: >...I delete the icon family, and clear the customiconbit, the custom >icon still stays on the file in the finder desktop. >(Yes I checked if everything went ok. Icons are gone, bit cleared. ResEdit >tells me so).. > >So what am I missing ? Why does the custom icon stay ? > >Also, if I make a copy from the file which custom icon I have killed, the >duplicate doesn't bare the custom icon any longer. So, this tells me that my >'clear custom' stuff worked. So why doesn't the finder update ? Sometimes the reverse happens to me (add a custom icon, but there doesn't seem to be any change--dup the file, there's the custon icon). This always seems to happen when the file is on the desktopfolder. Perhaps it's a function of desktop database? Dunno. But for me, if I move the file off the desktop and restart everything is ok... (worse case scenario you could rebuild the desktop DB--but it seems it might be easier to just use the copy that has the icon gone). ____Nicholas C. DeMello, Ph.D.___________________________________________ "MacTech Online"--MacTech Magazine, for Mac OS Programmers and Developers http://www.MacTech.com/ _/ _/ _/ _/_/_/ _/ _/ Chemistry: Nick@chem.UCLA.edu _/_/ _/ _/ _/ _/ _/_/_/ MacTech: Online@MacTech.com _/ _/_/ _/ _/ _/ _/ http://www.chem.ucla.edu/~nick/ _/ _/ _/_/_/ _/ _/ +++++++++++++++++++++++++++ >From i'm@not.here (Jeff Clites) Date: Thu, 20 Nov 1997 23:30:47 -0800 Organization: California Institute of Technology, Pasadena In article , Online@MacTech.com ( nick.c MacTech ) wrote: >nospam4meAegir@mail.dma.be (Aegir) wrote: > >>...I delete the icon family, and clear the customiconbit, the custom >>icon still stays on the file in the finder desktop. >>(Yes I checked if everything went ok. Icons are gone, bit cleared. ResEdit >>tells me so).. >> >>So what am I missing ? Why does the custom icon stay ? >> >>Also, if I make a copy from the file which custom icon I have killed, the >>duplicate doesn't bare the custom icon any longer. So, this tells me that my >>'clear custom' stuff worked. So why doesn't the finder update ? > [snip] > This always seems to happen when the > file is on the desktopfolder. > > Perhaps it's a function of desktop database? Dunno. But > for me, if I move the file off the desktop and restart > everything is ok... (worse case scenario you could rebuild > the desktop DB--but it seems it might be easier to just > use the copy that has the icon gone). OS 8 should update right away, but 7.x can take a while (or forever, as I've observed, contrary to other claims...but you shouldn't have to restart or rebuild the desktop DB). Here's a response I posted a while back on a similar subject: There are four ways I know of to (theoretically) get the finder to update its display of things like this. In order of increasing elegance: 1) Close and re-open the enclosing folder. This should be possible via Apple Events, although I've never quite figured out how to pull it off. Specifically, you'd probably only want to "reopen" the folder if it was originally open, and I haven't been able to figure out how to query the Finder for this info. (Of course, you can't close the desktop folder, but moving to file to another, possibly closed, folder and back might work.) 2) Create and delete a dummy file in the same folder. 3) Change the modification date of the enclosing folder (and call FlushVol). I think this is probably the "standard" way. There's a function in the MoreFiles package (on the CW CD's or Apple's site, or other places) called FSpBumpDate, which will change the necessary mod. date. Also, in the DropShell package (similarly available) there's a function called ForceFinderUpdate which does both of the necessary things. 4) Send the Finder an Update Event on the offending file. I've never done this, but I've heard it works as it should. Good luck! - ------------------------------------------------------------------------ Jeff Clites Pasadena, California My account name is jac and the rest of my address has igor and caltech and edu, separated by dots. Don't spam me or anybody else (please). +++++++++++++++++++++++++++ >From Andrew Tomazos Date: Fri, 21 Nov 1997 15:49:57 +0800 Organization: Stairways Software nick.c MacTech wrote: > > nospam4meAegir@mail.dma.be (Aegir) wrote: > > >...I delete the icon family, and clear the customiconbit, the custom > >icon still stays on the file in the finder desktop. > >(Yes I checked if everything went ok. Icons are gone, bit cleared. ResEdit > >tells me so).. Get: This should solve all your problems. Andrew. -- _________________________________________________________ | Andrew Tomazos PLG | andrew@stairways.com.au | | MacOS Developer | www.stairways.com | | Stairways Software | Perth, West Australia | ---------- "Building a Better Macintosh" ---------- +++++++++++++++++++++++++++ >From Carl R. Osterwald Date: 21 Nov 1997 15:37:32 GMT Organization: National Renewable Energy Laboratory In article Jeff Clites, i'm@not.here writes: >> Perhaps it's a function of desktop database? Dunno. No, its not the database. >OS 8 should update right away, but 7.x can take a while (or forever, as >I've observed, contrary to other claims...but you shouldn't have to >restart or rebuild the desktop DB). Yes, this is correct. The system 7 Finder is ruthless about caching the information it uses to draw its windows, so you have to get dowm on your hands and knees and beg it to update. >There are four ways I know of to (theoretically) get the finder to update >its display of things like this. In order of increasing elegance: You can also send an Apple Event to clear a custom icon. In this case, you don't have to mess around with purging resources, the Finder does it for you and updates immediately. Unfortunately, due to a bug or a feature, the OS 8 Finder ignores custom icon events and you have to do it manually. -=-=-=-=- My reply address has been modified to hinder Usenet spamming via e-mail. To reply personally, remove nyet from reply address. --------------------------- >From joels@gol.com (Joel Sassone) Subject: SpriteWorld 2 with latest CodeWarrior? Date: Tue, 28 Oct 1997 23:26:38 +0900 Organization: Himself Has anyone updated their SpriteWorld 2 code (C version) to work with the latest version of CodeWarrior (IDE 2.0)? I get all sorts of errors when I open an old project file that's been stagnant since a few CW versions back, and I'm wondering how much work it would be... Joel +++++++++++++++++++++++++++ >From Jensen@lafn.org (Vern Jensen) Date: 30 Oct 1997 21:33:27 GMT Organization: All USENET -- http://www.Supernews.com In article , joels@gol.com (Joel Sassone) wrote: > Has anyone updated their SpriteWorld 2 code (C version) to work with the > latest version of CodeWarrior (IDE 2.0)? I get all sorts of errors when I > open an old project file that's been stagnant since a few CW versions back, > and I'm wondering how much work it would be... > > Joel We're getting ready to release the first beta version of 2.1. Hopefully we can get SpriteWorld working with CodeWarrior Pro by the time a final 2.1 version is released. Join the SpriteWorld mailing list if you want to keep up-to-date on stuff like this. -Vern - ------------------------------------------------------------------- Visit the SpriteWorld 2 Web page at: http://users.aol.com/spritewld2/ - ------------------------------------------------------------------- +++++++++++++++++++++++++++ >From Ingemar Ragnemalm Date: Tue, 18 Nov 1997 01:15:58 +0000 Organization: Lysator computer club Joel Sassone wrote: > > Has anyone updated their SpriteWorld 2 code (C version) to work > with the latest version of CodeWarrior (IDE 2.0)? I get all sorts > of errors when I open an old project file that's been stagnant > since a few CW versions back, and I'm wondering how much work it > would be... I don't know what the problem is with SW, but it could be something similar to a problem with Sprite Animation Toolkit on the latest CW. It seems as if some types (e.g. CIconHandle) aren't auto- declared with the precompiled Macheaders any more, so you have to add #include or something like that in SAT.h. If the problems you have with SW are also with undeclared identifiers or failing typedef's, you may need some #include. (Note: Pascal users don't get this kind of problem, since units in "uses" may be in precompiled interfaces.) I'm not fond of this kind of code-breaking changes in the main development system. I want to support both the older versions and the latest, but they aren't making it easy. SAT 2.5.0 is in its final stages of testing now, and I still havn't decided if I should include CW11 or CW Pro 1 project files - or even CW9! I'll probably use CW 11 for now. /Ingemar --------------------------- >From masong7@aol.com (MasonG7) Subject: Status Bar Date: 10 Nov 1997 22:33:09 GMT Organization: AOL http://www.aol.com Is there some built-in apple functions to produce a status bar, like the one the finder displays during file copies? The fact that an extension like Aaron can change the status bar design in many programs suggests that there are some universal functions, but I could not find any information on it despite searching all my header files. MasonG7 at aol.com (like I don't get enough junk mail already) Mason Gup +++++++++++++++++++++++++++ >From David Matiskella Date: Wed, 12 Nov 1997 02:03:13 -0800 Organization: Netscape Communications Corporation Michael Connolly wrote: > In article <19971110223300.RAA03828@ladder02.news.aol.com>, > masong7@aol.com (MasonG7) wrote: > > > Is there some built-in apple functions to produce a status bar, like the one > > the finder displays during file copies? The fact that an extension like Aaron > > can change the status bar design in many programs suggests that there > are some > > universal functions, but I could not find any information on it despite > > searching all my header files. > > > > MasonG7 at aol.com (like I don't get enough junk mail already) > > Mason Gup > > No, there's no built-in function. (Well, maybe in OS8, but not before that. > > The appearence manager has a progress control. Not sure what came before that. There are a lot of powerplant classes out there which have progress bars so you could also take a look at one of those. > Before everyone starts attacking me with the old arguments, let me say this: > > 1. Standard practice is to draw rectangles, one light one for the > background, and a dark one of a certain length over it. > > 2. Aaron works by intercepting "draw rectangle" calls with certain > dimensions and colors and reworking them. > > -- > Michael Connolly > ------------------ > Pseud040, the shareware '040 emulator for '020s and '030s, is now available! Get more out of your old computer! Just search for Pseud040 at . (Or find it on Info-Mac in the 'cfg' folder.) +++++++++++++++++++++++++++ >From michael@nfocomm.com (Michael Connolly) Date: 11 Nov 1997 23:47:24 GMT Organization: The University of Memphis In article <19971110223300.RAA03828@ladder02.news.aol.com>, masong7@aol.com (MasonG7) wrote: > Is there some built-in apple functions to produce a status bar, like the one > the finder displays during file copies? The fact that an extension like Aaron > can change the status bar design in many programs suggests that there are some > universal functions, but I could not find any information on it despite > searching all my header files. > > MasonG7 at aol.com (like I don't get enough junk mail already) > Mason Gup No, there's no built-in function. (Well, maybe in OS8, but not before that. Before everyone starts attacking me with the old arguments, let me say this: 1. Standard practice is to draw rectangles, one light one for the background, and a dark one of a certain length over it. 2. Aaron works by intercepting "draw rectangle" calls with certain dimensions and colors and reworking them. -- Michael Connolly - ---------------- Pseud040, the shareware '040 emulator for '020s and '030s, is now available! Get more out of your old computer! Just search for Pseud040 at . (Or find it on Info-Mac in the 'cfg' folder.) +++++++++++++++++++++++++++ >From masong7@aol.com (MasonG7) Date: 13 Nov 1997 21:39:12 GMT Organization: AOL http://www.aol.com ******** No, there's no built-in function. (Well, maybe in OS8, but not before that. Before everyone starts attacking me with the old arguments, let me say this: 1. Standard practice is to draw rectangles, one light one for the background, and a dark one of a certain length over it. ******** I figured as much. I already started writing code for a status bar object. E-mail me if anyone wants a copy when it's done. MasonG7 at aol.com (like I don't get enough junk mail already) Mason Gup +++++++++++++++++++++++++++ >From gga@it.ntu.edu.au (Giles Alexander) Date: 14 Nov 1997 01:27:52 GMT Organization: Northern Territory University MasonG7 (masong7@aol.com) wrote: :Is there some built-in apple functions to produce a status bar, like the one :the finder displays during file copies? The fact that an extension like Aaron :can change the status bar design in many programs suggests that there :are some universal functions, but I could not find any information on it :despite searching all my header files. If your software is going to be running on OS 8 ONLY, there is. THe new Appearance Manager provides a control called a Progress Bar which implements the standard Finder progress bar. I've never used it, so I can't help you there. But if you check out http://www.devworld.apple.com you will find a link to a new Inside Macintosh describing the OS 8 Toolbok, which includes the new progress bar. Good luck, Giles Alexander -- gga@it.ntu.edu.au | If builders built buildings the way | programmers write programs, the Check out Note: | first woodpecker that comes along http://www.ozemail.com.au/~notesoft/ | would destroy all of civilisation. --------------------------- >From desohn@infolgic.co.kr (SOHN, DONG EON) Subject: [Q] How can my application recognize mouse double click? Date: Mon, 17 Nov 1997 17:19:01 +0900 Organization: InfoLogic, Inc. Hi! How can my appllication recognize mouse double click? I wanna that when user double click in my application window, my application window load another window. How can I do this? I suppose... I must make mouse double click recognize routine and create window routine in 'ClickSelf()' method. Right? Do I use 'UpdateClickCount()' in 'ClickSelf()' to recognize double click? I don't know how can I recognize mouse double click. And... How structured 'SMouseDownEvent'? Where defined 'SMouseDonwEvent'? Let me know please... +++++++++++++++++++++++++++ >From mh@harthaven.com (Mark Hartman) Date: 18 Nov 1997 07:49:00 -0700 Organization: Mark Hartman The simplest answer to this question: There is available a function called GetDblTime(), which returns the maximum time between two clicks that can be considered a double-click. What you need to do is to save the TickCount() from the previous mouse click; if that saved tick count plus GetDblTime() is greater than TickCount(), then the current mouse click may be the second click of a double-click. Of course, you also need to make sure that the second click happened in the same contextual area of the desktop. A click in a button followed very quickly by a click in the menu bar certainly isn't a double-click, no matter how fast it happens. In article , desohn@infolgic.co.kr (SOHN, DONG EON) wrote: >Hi! > >How can my appllication recognize mouse double click? > >I wanna that when user double click in my application window, my >application window load another window. > >How can I do this? > >I suppose... >I must make mouse double click recognize routine and create window routine >in 'ClickSelf()' method. Right? >Do I use 'UpdateClickCount()' in 'ClickSelf()' to recognize double click? > >I don't know how can I recognize mouse double click. > >And... >How structured 'SMouseDownEvent'? >Where defined 'SMouseDonwEvent'? > >Let me know please... ============================================================================ Mark Hartman |Consultants to business, industry and education since 1977 C O M P U T E R | Database design * User interface * Troubleshooting S O L U T I O N S| Networking * Client/server systems * Macintosh * Oracle === tel 714/758-0640 ===============<*>================ fax 714/999-5030 === "Hello, my name is Mark, and I've been Intel-free for 8 years and 2 days." +++++++++++++++++++++++++++ >From Ian Russell Ollmann Date: Tue, 18 Nov 1997 17:57:58 -0800 Organization: The Scripps Research Institute, La Jolla, CA On Mon, 17 Nov 1997, SOHN, DONG EON wrote: > Hi! > > How can my appllication recognize mouse double click? > > I wanna that when user double click in my application window, my > application window load another window. > > How can I do this? > > I suppose... > I must make mouse double click recognize routine and create window routine > in 'ClickSelf()' method. Right? > Do I use 'UpdateClickCount()' in 'ClickSelf()' to recognize double click? > > I don't know how can I recognize mouse double click. > > And... > How structured 'SMouseDownEvent'? > Where defined 'SMouseDonwEvent'? > > Let me know please... In the past I have just added the following lines to my HandleMouseDown() routines. HandleMouseDown( ) { ... if( TickCount() - gLastClickTime <= kDoubleClickInterval ) { gLastClickTime = TickCount(); //Code to handle a double click goes here } else { gLastClickTime = TickCount(); //Code to handle a single click goes here } ... } Don't forget to initialize gLastClickTime = NULL in your constructor. I think somewhere there is a Gestalt Selector or something to determine the system default kDoubleClickInterval, but I dont have that info in front of me. Ian +++++++++++++++++++++++++++ >From slur@world.std.com (Scott Lahteine) Date: Thu, 20 Nov 1997 23:35:16 GMT Organization: Pylon Transit Authority In article , mh@harthaven.com (Mark Hartman) wrote: > >What you need to do is to save the TickCount() from the previous mouse >click; if that saved tick count plus GetDblTime() is greater than >TickCount(), then the current mouse click may be the second click of a >double-click. Of course, you also need to make sure that the second >click happened in the same contextual area of the desktop. A click in >a button followed very quickly by a click in the menu bar certainly >isn't a double-click, no matter how fast it happens. > Yep, and in order to do this you can use a few different methods. For my latest program I found that it was convenient to simply keep a Rect called clickRect. For any item that is double-clickable (you can set a flag for this) you write to clickRect on the first time a user clicks there. Then in your mouseDown routine (or mouseUp to handle it correctly) just make sure the click is inside this rectangle before calling it a double-click. -- scott lahteine "being is faster than light" --------------------------- >From J.P.Djajadiningrat@io.TUDelft.NL (J.P. Djajadiningrat) Subject: [Q] How do I switch resolution w-o using DrawSprockets? Date: 8 Nov 1997 11:46:41 GMT Organization: Delft University of Technology I would like to switch to 640x480 upon entering my program and switch back after quitting. I don't really want to use DrawSprockets (I'm not using any of its other functionality). Is there a way? And where do I find documentation? Any help greatly appreciated, Tom +++++++++++++++++++++++++++ >From johnb@hk.super.net.remove_this_to_mail_me (John W. Blackburne) Date: Sun, 09 Nov 1997 01:31:55 +0800 Organization: Hong Kong Supernet In article , J.P.Djajadiningrat@io.TUDelft.NL (J.P. Djajadiningrat) wrote: :I would like to switch to 640x480 upon entering my program and switch back :after quitting. I don't really want to use DrawSprockets (I'm not using :any of its other functionality). : :Is there a way? And where do I find documentation? There are two documented ways: the Display Manager and QuickTime's "BeginFullScreen". The latter is a single call thst sets up the screen doing something multimedia-ish, and lets you speciify the desired depth, resolution and whether to hide the menu bar. It was added to the QuickTime API I think with QT 2.0, so is documented in current and more recent QT docs. The Display Manager (which I'm using) is a manager and API in it's own right. It lets you do much more, including query the OS for devices that match your specified criteria. Unfortunately it's more work to use, and may not be much easier than DSp for your purposes. You can download the SDK, which includes sample code and docs, from Apple's servers. John -- John Blackburne; programmer, writer, consultant, trainer tel/fax: Hong Kong (+852) 2816 7484 home page: +++++++++++++++++++++++++++ >From squires@crl.IGNORE.com (Scott Squires) Date: Sat, 08 Nov 1997 10:24:34 -0800 Organization: Puffin Designs In article , J.P.Djajadiningrat@io.TUDelft.NL (J.P. Djajadiningrat) wrote: >I would like to switch to 640x480 upon entering my program and switch back >after quitting. I don't really want to use DrawSprockets (I'm not using >any of its other functionality). > >Is there a way? And where do I find documentation? > QuickTime has BeginFullScreen and EndFullScreen. There is also the Display Manager. Info for both of these is at Apple's developers web site. Scott Scott Squires Send to this email address if you want squires at crl.com to contact me directly. +++++++++++++++++++++++++++ >From nospam@nospam.kenner.demon.co.uk (Chris Orgill) Date: Wed, 12 Nov 1997 19:30:02 +0000 Organization: (none) In article , johnb@hk.super.net.remove_this_to_mail_me (John W. Blackburne) wrote: > In article , > J.P.Djajadiningrat@io.TUDelft.NL (J.P. Djajadiningrat) wrote: > > :I would like to switch to 640x480 upon entering my program and switch back > :after quitting. I don't really want to use DrawSprockets (I'm not using > :any of its other functionality). > : > :Is there a way? And where do I find documentation? > [] > > The Display Manager (which I'm using) is a manager and API in it's own > right. It lets you do much more, including query the OS for devices that > match your specified criteria. Unfortunately it's more work to use, and > may not be much easier than DSp for your purposes. You can download the > SDK, which includes sample code and docs, from Apple's servers. > > John > The Display Manager also re-tiles your desktop if you reduce the screen size, doesn't it ? Not what a game should do, really :-( DrawSprocket sounds like your best shot. Best, Chris Orgill +++++++++++++++++++++++++++ >From "Jason Pawloski" Date: 13 Nov 1997 04:27:18 GMT Organization: Nemesis Software > There is also the Display Manager. > > Info for both of these is at Apple's developers web site. Aghh, I've looked far and wide for any information, or a mere MENTION of the Display Manager (even in devworld), but to no avail! Is the Display Manager the manager people love to forget or something? If anyone, *anyone*, has a link, some little tutorial information or some source for me, P L E A S E send it to me!! Please reply via e-mail only (NemesisSoft@rocketmail.com) Thanks in advance. -Jason -- - - CEO Of Nemesis Software For a free product listing or product information, contact us at NemesisSoft@rocketmail.com --- +++++++++++++++++++++++++++ >From johnb@hk.super.net.remove_this_to_mail_me (John W. Blackburne) Date: Thu, 13 Nov 1997 19:42:40 +0800 Organization: Hong Kong Supernet In article <01bcefec$70387600$0100007f@localhost>, "Jason Pawloski" wrote: :Aghh, I've looked far and wide for any information, or a mere MENTION of :the Display Manager (even in devworld), but to no avail! Is the Display :Manager the manager people love to forget or something? If anyone, :*anyone*, has a link, some little tutorial information or some source for :me, P L E A S E send it to me!! Either go to Than click on the link for the Display Manager, or go to to FTP it directly. John -- John Blackburne; programmer, writer, consultant, trainer tel/fax: Hong Kong (+852) 2816 7484 home page: +++++++++++++++++++++++++++ >From J.P.Djajadiningrat@IO.TUDelft.NL (J.P. Djajadiningrat) Date: 14 Nov 1997 15:18:41 GMT Organization: TU Delft Many thanks to all who replied. Tom In article , J.P.Djajadiningrat@io.TUDelft.NL (J.P. Djajadiningrat) wrote: > I would like to switch to 640x480 upon entering my program and switch back > after quitting. I don't really want to use DrawSprockets (I'm not using > any of its other functionality). > > Is there a way? And where do I find documentation? > > Any help greatly appreciated, > > Tom +++++++++++++++++++++++++++ >From johnb@hk.super.net.remove_this_to_mail_me (John W. Blackburne) Date: Sat, 15 Nov 1997 00:18:14 +0800 Organization: Hong Kong Supernet In article , nospam@nospam.kenner.demon.co.uk (Chris Orgill) wrote: :The Display Manager also re-tiles your desktop if you reduce the screen :size, doesn't it ? Not what a game should do, really :-( Only with Mac OS 7.x: the Mac OS 8 Finder, a fixture on all the latest Macs, fixes this. :DrawSprocket sounds like your best shot. Yes, if your starting work on a project today and want to do anything more complex than just switching screen bit depth then DrawSprocket is the best way to go for most game apps. John -- John Blackburne; programmer, writer, consultant, trainer tel/fax: Hong Kong (+852) 2816 7484 home page: --------------------------- >From desben@NOSPAMinfoteck.qc.ca (DesBen) Subject: [Q]Create a Serial Driver? Date: Mon, 17 Nov 1997 19:14:33 -0500 Organization: DesBen Development Hello, [Please e-mail me a copy of your replies. Don't forget to remove the "NOSPAM" from the address. Thanx!] Where could I find info about how to create a serial port driver (or a driver that acts like one)? I have to create a driver which can be accessed by applications such as ZTerm, FreePPP, FirstClass, etc. I want my driver to appear in the list of available serial ports, and I want applications to be able to send and read data to/from it exactly the same way they would with a standard serial port. I think it can be done, because that's about how PC Cards modem works. The PC Card modems do appear in the serial port list, and applications such as ZTerm make no distinction between that card and a standard serial port. I've checked in Inside Mac (in the Apple DocViewer format), and didn't found any reveallant info. Is there any tech note, or other document which explains how to do it? Thank you very much, Any help is very appreciated. Benoit Deshaies [Please e-mail me a copy of your replies. Don't forget to remove the "NOSPAM" from the address. Thanx!] -- [The "REPLY TO" button won't work with this posting. The "reply-to" address has been altered to thwart junk e-mailers. Remove the "NOSPAM" from the address to reply to this posting] +======================================================+ | DesBen - mailto:desben@infoteck.qc.ca | | "Quid latine dictum sit, altum viditur..." | | 'DesBen" on Undernet, channel #c++ and #la_jasette | +======================================================+ +++++++++++++++++++++++++++ >From brian_hall@markspace.com (Brian Hall) Date: Mon, 17 Nov 1997 19:34:24 -0800 Organization: Mark/Space Softworks In article , desben@NOSPAMinfoteck.qc.ca (DesBen) wrote: > I've checked in Inside Mac (in the Apple DocViewer format), and didn't > found any reveallant info. Is there any tech note, or other document > which explains how to do it? Check out the Communications Resource Manager. It is documented in _Inside the Macintosh Communications Toolbox_. This is what will let you register a port (virtual or otherwise) so that other apps will see it. Brian _____________________________________________________________________ Mark/Space Softworks voice 408-293-7299 111 West Saint John, Suite 333 fax 408-293-7298 San Jose, CA 95113 Mac OS, Newton, Pilot, Windows and Web Communications Solutions: PageNOW!, PageME!, PhoneWatcher, Communicate, ZMODEM, PC-ANSI, Videotex CTB Tools +++++++++++++++++++++++++++ >From desben@NOSPAMinfoteck.qc.ca (DesBen) Date: Wed, 19 Nov 1997 19:08:57 -0500 Organization: DesBen Development In article , brian_hall@markspace.com (Brian Hall) wrote: > In article , > desben@NOSPAMinfoteck.qc.ca (DesBen) wrote: > > > I've checked in Inside Mac (in the Apple DocViewer format), and didn't > > found any reveallant info. Is there any tech note, or other document > > which explains how to do it? > > Check out the Communications Resource Manager. It is documented in _Inside > the Macintosh Communications Toolbox_. This is what will let you register > a port (virtual or otherwise) so that other apps will see it. Thanks for the info. I was actually hoping for a URL or something. Buying a book is less interresting. Anyway, I suppose not much people have to register ports, and those who might need to do so are probably commercial guys. So, Apple didn't want to spend time and money in putting to the web a doc that can be bought by most of the people who need it. (Wish ALL the MacOS components were documented online). Too bad... Well, thanks for the info! I'll surely buy it anyway. C-ya! -- [The "REPLY TO" button won't work with this posting. The "reply-to" address has been altered to thwart junk e-mailers. Remove the "NOSPAM" from the address to reply to this posting] +======================================================+ | DesBen - mailto:desben@infoteck.qc.ca | | "Quid latine dictum sit, altum viditur..." | | 'DesBen' on Undernet, channel #c++ and #la_jasette | +======================================================+ --------------------------- >From "bjorn.carlin" Subject: fastest graphic? Date: Wed, 05 Nov 1997 23:41:27 +0200 Organization: A customer of Tele2 How do I draw graphic in the fastest way? I am trying to make a game with smooth scrolling background but it is too slow when I use copyBits. Bjorn Carlin Sweden +++++++++++++++++++++++++++ >From nagilum@mindspring.com (Nagilum) Date: Thu, 06 Nov 1997 14:59:48 +0800 Organization: Fission In article <3460E7FC.7125@swipnet.se>, "bjorn.carlin" wrote: > How do I draw graphic in the fastest way? > I am trying to make a game with smooth scrolling background but it is > too slow when I use copyBits. > > Bjorn Carlin > Sweden CopyBits CAN be fast enough, but some times isn't. What you will most likely have to do is write a blitter. A blitter is a rutine that copies images from one place to another (in memory). CopyBits is a blitter. I don't want to diss CopyBits here, becasue many people have said that CopyBits is fairly fast, but I'll just say I have never seen this suposid speed. If you want, I can walk you through the horrors of writting blitters (C/C++ only; I don't do pascal or others), but if not, you can find them fairly easly. Another thing you have to consider is the machine you are running it on. I don't think you can really get GOOD scrolling on anything less than a 601@60mz (any PowerMac). It MAY be posible on '040s, if you feel like writting custon asembly crap (if you are aiming this game twords '040s, I would recomend looking at SpriteWorld2. It does all of the horrible '040 asembly shit for you). On the note of sprite engines, I could problebly give you several optimozation ideas; I have written 5 sprite engines, one for DOS, one for '040 MacOS, two for PPC MacOS, and one for BeOS. Just ask =) -- - --------------------------------- James Marr nagilum@mindspring.com - --------------------------------- I think, therefore I use a Mac. +++++++++++++++++++++++++++ >From Ingemar Ragnemalm Date: Sat, 08 Nov 1997 11:04:59 +0000 Organization: Lysator computer club Vern Jensen wrote: > > My recommendation is to either use SAT or SpriteWorld for your game. > They both have very fast scrolling engines, are both free, and are > flexible - you can modify them to suit your own needs. Why try to > reinvent the wheel? Thanks, Vern, but honestly, SAT 2.5.0 isn't out yet. The scrolling engine for SAT will be in that release. It is, however, fully working today, and is used in Harry the Handsome, and a few more people are using it. 2.5.0 is *almost* done, but I have some work that must come first, work that is supposed to pay the rents. In that engine, I use a custom blitter, not because CopyBits was too slow on large areas, but because I needed to do two CopyBits- like operations in parallell, one row at a time, to get rid of flicker. Still, anyone who writes a blitter to replace CopyBits for large copies will be disappointed. With a lot of trouble, you may be able to beat it by a little on *some* Macs, and by nothing on most. Small copies, however, is another matter. When I wrote my first blitters, for B/W graphics, I beat CopyBits by about 6-7 times. /Ingemar +++++++++++++++++++++++++++ >From "bjorn.carlin" Date: Sat, 08 Nov 1997 23:52:22 +0200 Organization: - Ingemar Ragnemalm wrote: > Still, anyone who writes a blitter to replace CopyBits for large > copies will be disappointed. With a lot of trouble, you may be able > to beat it by a little on *some* Macs, and by nothing on most. > Small copies, however, is another matter. When I wrote my first > blitters, for B/W graphics, I beat CopyBits by about 6-7 times. > > /Ingemar When I use CopyBits, I notice that the speed is improved when I copy a big area instead of many small, will that persist if I use a custom blitter? Bjorn Carlin +++++++++++++++++++++++++++ >From andrew@AmbrosiaSW.com Date: Sun, 09 Nov 1997 12:11:24 -0600 Organization: Deja News Posting Service In article <3464475B.2373@lysator.liu.se>, ingemar@lysator.liu.se wrote: > Thanks, Vern, but honestly, SAT 2.5.0 isn't out yet. The scrolling > engine for SAT will be in that release. It is, however, fully > working today, and is used in Harry the Handsome, and a few more > people are using it. 2.5.0 is *almost* done, but I have some work > that must come first, work that is supposed to pay the rents. Harry actually uses a custom blitter I wrote; we managed a good 40% or so speedup from the original C version. > Still, anyone who writes a blitter to replace CopyBits for large > copies will be disappointed. With a lot of trouble, you may be able > to beat it by a little on *some* Macs, and by nothing on most. > Small copies, however, is another matter. When I wrote my first > blitters, for B/W graphics, I beat CopyBits by about 6-7 times. See above (this was for a 400x400 area). > /Ingemar - -----------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet +++++++++++++++++++++++++++ >From *johnnyc*@or.psychology.dal.ca (John Christie) Date: Mon, 10 Nov 1997 09:17:35 -0400 Organization: ISINet, Nova Scotia In article <879071883.7670@dejanews.com>, andrew@AmbrosiaSW.com wrote: > Harry actually uses a custom blitter I wrote; we managed a good 40% > or so speedup from the original C version. > and then > See above (this was for a 400x400 area). But, on what machine? On a Tanzania PPC this is easy. On a Catalyst, you won't beat CopyBits (especially with VM off). If you want max speed you need to implement both and then test at start time (copy black rects of various sizes and select the best routines). Those who claim that CopyBits is the be all and end all are using Tsunami, Catalyst, or another *on board* video that it is optimised for. Those who think it is slow are probably using something else (ATI card or Tanzania or something). It depends on the machine incredibly. Furthermore, if Apple gets away with writing it crummy they will never speed it up (they don't optimise it for all machines). We might save a lot of work if we just wrote Apple and demanded they optimise CopyBits for every machine instead of just on board video of the (orginally) high end units (a letter each is cheaper and easier than a blitter each). -- You aren't free if you CAN choose - only if you DO choose. All you are is the decisions you make. Remove "*" and ohnny (i.e. jc@) to reply via email +++++++++++++++++++++++++++ >From *johnnyc*@or.psychology.dal.ca (John Christie) Date: Mon, 10 Nov 1997 09:31:15 -0400 Organization: ISINet, Nova Scotia In article <*johnnyc*-1011970917360001@192.0.2.1>, *johnnyc*@or.psychology.dal.ca (John Christie) wrote: > But, on what machine? On a Tanzania PPC this is easy. On a Catalyst, > you won't beat CopyBits (especially with VM off). If you want max speed > you need to implement both and then test at start time (copy black rects > of various sizes and select the best routines). Those who claim that > CopyBits is the be all and end all are using Tsunami, Catalyst, or another > *on board* video that it is optimised for. Those who think it is slow are > probably using something else (ATI card or Tanzania or something). It > depends on the machine incredibly. Furthermore, if Apple gets away with Of course this is all qualified by using large rects. For small Rects a custom blitter is going to be better. However, depending on how you define regions you might be better off doing one big area instead of a bunch of small ones. CopyBit and custom blitter testers might want to download a program called TimeVideo. It tests, among other things, full screen blits with both CopyBits and a good custom blitter. The relative variance among machines is remarkable. -- You aren't free if you CAN choose - only if you DO choose. All you are is the decisions you make. Remove "*" and ohnny (i.e. jc@) to reply via email +++++++++++++++++++++++++++ >From Jensen@lafn.org (Vern Jensen) Date: Tue, 11 Nov 1997 17:57:02 -0800 Organization: All USENET -- http://www.Supernews.com > When I use CopyBits, I notice that the speed is improved when I copy a > big area instead of many small, will that persist if I use a custom > blitter? The reason this is happening is because of CopyBits's overhead. If you use a blitter, it will most likely be a lot faster to copy many small rects than to draw one big one. The only time updating everything at once might be faster is if you have absolutely *tons* of sprites on the screen. -Vern - ------------------------------------------------------------------- Visit the SpriteWorld 2 Web page at: http://users.aol.com/spritewld2/ - ------------------------------------------------------------------- --------------------------- >From freemant@macau.ctm.net Subject: getting # of frames of QuickTime .mov file Date: Sat, 08 Nov 1997 20:32:23 -0600 Organization: Deja News Posting Service Hi, I am trying to get the # of frames of QuickTime .mov file, using the QuickTime API. But there doesn't seem to be any function for this purpose. I've tried using GetMovieDuration() but the return value is different from what is specified by author of the movie. For example, for one movie GetMovieDuration() returns 1080 but the author says there are only 54 frames. If you know why this is happening, please give me a hint! TIA! - -----------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet +++++++++++++++++++++++++++ >From uzs90z@ibm.rhrz.uni-bonn.de (Michael Schuerig) Date: Sun, 9 Nov 1997 13:56:32 +0100 Organization: Completely Disorganized wrote: > I am trying to get the # of frames of QuickTime .mov file, using the > QuickTime API. But there doesn't seem to be any function for this > purpose. Yep, at least as far I can tell. The reason presumably is that there are different numbers of "frames" depending on what you're interested in. I think the only way to find out is to step through the whole movie. Have a look at the docs for GetMovieNextInterestingTime. There (or in the vicinity) is an explanation of what you need to do. Michael -- Michael Schuerig Failures to use one's frontal lobes can mailto:uzs90z@uni-bonn.de result in the loss of them. http://www.uni-bonn.de/~uzs90z/ -William H. Calvin +++++++++++++++++++++++++++ >From forsytgd@aol.com (Forsytgd) Date: 14 Nov 1997 20:17:34 GMT Organization: AOL http://www.aol.com wrote: > I am trying to get the # of frames of QuickTime .mov file, using the > QuickTime API. But there doesn't seem to be any function for this > purpose. I used this code in one of my older projects: procMovie is a movie you have got from your file. procFrames it the number of frames. rate = GetMoviePreferredRate(procMovie); totalDuration = GetMovieDuration(.procMovie); procFrames = GetMediaSampleCount(GetTrackMedia(GetMovieTrack(procMovie, 1))); It worked for me. --------------------------- >From gores@sip.medizin.uni-ulm.de (kp gores) Subject: infrared-port on powerbook for remote control Date: Tue, 18 Nov 1997 09:15:45 +0100 Organization: uni ulm hello, i am searching for a tool/software to access the infrared port on a powerbook. it would be nice to have a piece of software to let my PB learn to emulate my remote controls for audio/video equipmenmt. ciao kp -- superegos talker +++++++++++++++++++++++++++ >From TFORNL Date: Tue, 18 Nov 1997 21:59:25 -0500 Organization: Oak Ridge National Lab, Oak Ridge, TN kp gores wrote: > hello, > > i am searching for a tool/software to access the infrared port on a powerbook. > it would be nice to have a piece of software to let my PB learn to emulate > my remote controls for audio/video equipmenmt. > > ciao > kp > > -- > superegos talker One interesting device I found from Belkin (sold at CDW) is called the Smart Beam IR Adapter ($31). It is an adapter for RS 232 to Ird. Thus, if you have an RS232 out you can beam it to your laptop. I know this isn't your solution, since home electronics IR has its own encoding, but maybe there's a similar device from Belkin. Try www.belkin.com and www.cdw.com tom +++++++++++++++++++++++++++ >From slavins@hearsay.demon.co.uk.NOJUNK (Simon Slavin) Date: Thu, 20 Nov 1997 22:54:10 +0000 Organization: First Sirian Bank In article , gores@sip.medizin.uni-ulm.de (kp gores) wrote: > i am searching for a tool/software to > access the infrared port on a powerbook. > it would be nice to have a piece of > software to let my PB learn to emulate > my remote controls for audio/video equipmenmt. Last time anyone asked about this, the low-level interface to the IR port hadn't been documented. If you can find some way to operate the IR port besides as a serial port, you should be able to do what you want. Simon. -- Simon Slavin -- Computer Contractor. | The mind abhors a vacuum. Without http://www.hearsay.demon.co.uk | facts, they'll fill their heads with Check email address for spam-guard. | fantasies. Junk email not welcome at this site. | -- Jonathan Kellerman: _Time Bomb_ --------------------------- >From peldan@physto.se (Peter Peldan) Subject: reg exp search Date: Fri, 14 Nov 1997 13:58:35 +0100 Organization: Stockholms Universitet Are there any free libraries or source files covering regular expression searches of text? I've tried GNU String/Regex.sit from the info-mac archive but it didn't compile under CW Pro 1. Any other suggestions? PLease mail me a copy of the answer. Peter +++++++++++++++++++++++++++ >From i'm@not.here (Jeff Clites) Date: Wed, 19 Nov 1997 22:59:41 -0800 Organization: California Institute of Technology, Pasadena In article , peldan@physto.se (Peter Peldan) wrote: >Are there any free libraries or source files covering regular expression >searches of text? I've tried GNU String/Regex.sit from the info-mac >archive but it didn't compile under CW Pro 1. Any other suggestions? I combed the net looking for this and couldn't find anything either. If you do find anything useful, please send the info on to me (or post it). One thing I notice recently is that MT-NewsWatcher allows you to use regular expressions in defining filters, which makes me wonder if this capability is present in NewsWatcher, whose sources are freely available. I haven't had a chance to check myself, but it is one place you might want to look. - ------------------------------------------------------------------------ Jeff Clites Pasadena, California My account name is jac and the rest of my address has igor and caltech and edu, separated by dots. Don't spam me or anybody else (please). +++++++++++++++++++++++++++ >From jesjones@halcyon.com (Jesse Jones) Date: Thu, 20 Nov 1997 20:49:19 -0700 Organization: Edmark In article , i'm@not.here (Jeff Clites) wrote: > In article , peldan@physto.se > (Peter Peldan) wrote: > > >Are there any free libraries or source files covering regular expression > >searches of text? I've tried GNU String/Regex.sit from the info-mac > >archive but it didn't compile under CW Pro 1. Any other suggestions? > > I combed the net looking for this and couldn't find anything either. If > you do find anything useful, please send the info on to me (or post it). Raven has a pretty cool regular expression class. You can find it at: --Jesse --------------------------- End of C.S.M.P. Digest **********************