ftp.nice.ch/pub/next/tools/screen/backspace/more3.0Views.tar.gz#/more3.0Views/Swarm

Makefile
 
README.rtf
[View README.rtf] 
Swarm.nib/
 
SwarmView.h
[View SwarmView.h] 
SwarmView.m
[View SwarmView.m] 
SwarmWraps.c
[View SwarmWraps.c] 
SwarmWraps.psw
 
Thinker.h
[View Thinker.h] 

README.rtf

This is mostly a port of XSwarm (one of the greatest uses I'd found for X :-)
The gist is that there are a bunch of bees (initially 50) chasing one wasp.

The neat extras come into play if you move the cursor to the upper right corner of the window.  When you do so, the Preferances panel comes on!

To install - just put the SwarmView.o and the SwarmPrefs.nib file in your BackSpace object directory.

Credit:
This 'program' was originally created by Jeff Butterworth (butterwo@cs.unc.edu) for use with X (if you look about you can probably find the source in the archives).  I have liberally hacked his code, and stolen code from other backspace modules (especially LizardSaver).

Disclaimer:
This is my first backspace hack (and my first 'real' NeXT hack (OH BOY!)).  Yeah, there's room for improvement...  Go ahead (and send me some diffs :-)

'Bugs' :-)
This view only behaves well on a full window.  I've probably neglected to lockview when getting the cursor coordinates or somesuch.

Comments:
BackSpace is real nifty!  The only addition I want is Command-Shift-P to fire up a preferances window for the current 'View'.

Plea:
I love programming.  Especially on the NeXT.  Hire me.  Pay me poor wages.  Let me make you money.  Make me programm on the NeXT.  (buy me the Concept docs while you're at it :-)

Kurt Werle
frsvnsvn!kurt@crash.cts.com


[Regarding modifications by Scott Byer:]

The display code may look cryptic, due to the way it is trying to keep the data, but you can see that it is fast.  Encoded user paths are the way to go if at all possible.  I haven't spent too much time on this, so there is probably a lot of room for improvement in the math part.  It would be interesting to change the math to use 16.16 fixed point numbers.

However, the display part is quite tight at this point.

Tricky things I found out when converting to BS3.0:  Remembering to connect the id variable for the inspector panel back to the grouped box that contained the inspector was the hardest.  Grouping the inspector pieces and getting it the right size was tricky.  Now I just need a fancy icon or something for the backround.  I'll play with a 3-D modeller and see what I can get.

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