ftp.nice.ch/pub/next/connectivity/mail/bundles/EnhanceMail.2.2p1.NIHS.bs.gnutar.gz#/EnhanceMail-2.2p1/Source/Info.subproj

Animator.h
[View Animator.h] 
Animator.m
[View Animator.m] 
FlyingWindow.h
[View FlyingWindow.h] 
FlyingWindow.m
[View FlyingWindow.m] 
Makefile
 
PB.project
 
README
 
Spewer.h
[View Spewer.h] 
Spewer.m
[View Spewer.m] 
minienvelope.tiff
 

README

[ EnhanceMail maintainer's Note: the contents of this subproject were swiped almost verbatim from Don Yacktman's InfoWow demo, available at http://www.stepwise.com/Articles/Technical/InformationPlease/index.html (hey, call me uninspired for not coming up with my own easter egg, but at least I know a good hack when I see one:-)  What follows is its original README. ]

October 23, 1997


InfoWow is a demonstration app; think of it as a mini-example.  It shows how you can make animated Info Panels.  I've included a quad-fat NEXTSTEP binary, as well, so you can see what it does right away.  When you launch the app, you will note that it does nothing.  But it does have two Info... panels.  Bring them up and play with them...

The first panel is an animated panel that is kind of nifty.  By changing the images it uses, you could even re-use it lock, stock, and barrel in your own application.  There are three images and they sequence as follows:  (1)  image #1 fades in.  (2)  Image #2 scrolls upward, wiping out image #1.  (3)  image #3 fades in, obscuring Image #2, pauses, and then fades out.  Repeat ad infinitum, or until the Info... panel is dismissed.  The animation is restarted whenever the panel is brough up.  Clicking the Info... menu item when the panel is up restarts the animation from the beginning.  The code for this is very similar to the code in my Columns game's Info... panel which has constantly falling columns of colored blocks in the background.

The second panel is from an app I wrote for Whitelight that was never released publically.  The app did for email what a mail merge does for a word processor document.  (And it predated email spam.)  I'm considering rewriting the app and selling it for Rhapsody, but I wouldn't want it used as a spammer's tool.  Since I'm strongly anti-spam, this is a huge internal struggle for me.  :-)  Actually, there are plenty of legitimate non-spam uses for it, so you never know...one cool thing was that it could even custom generate NeXTMail messages, with attachments and all!  At any rate, this is the Info... panel I wrote for it.  Bring it up and it is just a normal, pedestrian, boring Info... panel.  But click on the app's icon, and well, it just starts spewing little envelopes all over your screen.  (They're actually, each and every envelope, a little bitty window whose position on the screen keeps getting updated to create an animation effect.)  The only way to turn it off is to dismiss the panel.  If the panel is moved, the source of the spewing envelopes moves with the panel, of course.

I've provided the source code so you can see how all this is accomplished.  It is actually rather trivial...but there's no point in having everyone roll their own.  One of these days, I'll try to refine these classes (ie generalize them a little bit) and include them in the MiscKit.  Until then, re-use them how you will.  I'm still retaining the copyrights on my code, but you are welcome to use and modify the code for free in any application you write, commercial or not.  Just please don't claim that you wrote it, because you didn't.  :-)

There are two versions of the source code, one for NEXTSTEP and one for OPENSTEP.  The prebuilt binary is built from the NEXTSTEP code so that more machines will be able to run it.  If you compile the OPENSTEP version, you will discover that it works exactly the same way--but with a few minor changes to the images to update copyright dates, etc.

Enjoy!



Don Yacktman
don@misckit.com
http://www.misckit.com/don/index.html

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.