ftp.nice.ch/pub/next/developer/resources/palettesfor2.xx/IBLines.N.bs.tar.gz#/IBLines

ActionLine.h
[View ActionLine.h] 
ActionLine.m
[View ActionLine.m] 
DownhillLine.h
[View DownhillLine.h] 
DownhillLine.m
[View DownhillLine.m] 
HorLine.h
[View HorLine.h] 
HorLine.m
[View HorLine.m] 
IB.paletteheader
 
IB.proj
 
LinePalette.debug
 

LinePalette.debug.palette


 

LinePalette.nib


 

LinePalette.palette


 
LinesInspector.h
[View LinesInspector.h] 
LinesInspector.m
[View LinesInspector.m] 

LinesInspector.nib


 
Makefile
 
Makefile.dependencies
 
README
 
UphillLine.h
[View UphillLine.h] 
UphillLine.m
[View UphillLine.m] 
VertLine.h
[View VertLine.h] 
VertLine.m
[View VertLine.m] 
line.psw
 

README

IBLines

I got more pissed off than usual about IB's lack of line drawing
capability one day (yes, I know about the Box trick), so I decided 
to do something about it.

This is a 2.x IB palette that adds some simple line-drawing capability
to IB.  You can drag lines off the palettes window and drop them into your
windows; the lines can be a variety of colors and alpha levels. The lines are
actually subclasses of Button, so they can perform actions
when clicked upon.  This might be useful for rigging up something
like a responsive state diagram.  You'd have a diagram of the steps a user
needs to go through up on the screen; to move from one state to another,
the user clicks on an arrow, and the interface moves to that new state.
You can form the connections inside of IB doing the usual control-drags,
just like setting up a button's target and action.

The lines can be enabled or disabled.  Each has its own color associated
with it.  By default, the enabled color is black, and the disabled color
dark grey.  You can change these around with either some buttons that set
the colors to the default greyscales on the NeXT Classic display, or
bring up a color panel. 

There are four lines: vertical, horozontal, "uphill", and "downhill".
You can drag each of these from the palette and drop them into your
window.  (Sorry, you can't switch between these types on the fly.)

You do the usual steps to get a palette to work with your project.  If
you have any questions about this, see NeXTanswers, ib.606.

Note that 2.x palettes are NOT compatible with 3.0.  You'd need to
rewrite it to get it to work.  I'm apparently the last person in the
known universe using primarily 2.x, and it will be a little while
before I routinely use 3.0.  Feel free to modify it, though. 

Which brings us to

COPYRIGHT

This is copyrighted 1993 Don McGregor.  However, you are free to use the 
source code, modify it, and include it in your programs without any royalty
whatsoever.  However, you must make any improvements available to the public 
at no charge other than copying and distribution.  In other words, this is 
the standard GNU thing.

DISCLAIMERS

I make no claims about this program's merchantabilty or fitness
for a particular use.  It may work for you, or it may not.  In
either case I'm not responsible.  You're on your own.  

This is a private project not related to any institution or corporation
I may be affiliated with, so don't bug them about it either.

MANIFEST

README											This file
ActionLine.[hm]							Abstract class for lines
DownhillLine.[hm]						Downhill line
HorLine.[hm]								Horizontal line
IB.proj											IB Project for making the thing
IB.paletteheader						IB stuff
LinePalette.debug						IB stuff
LinePalette.debug.palette		IB Stuff
LinePalette.nib							IB stuff
LinesInspector.[hm]					IB inspector
LinesInspector.nib					nib file used for inspector
line.psw										PS wraps for doing some drawing
Makefile										Compiler stuff
Makefile.depend							Compiler stuff
UphillLine.[hm]							Uphill line class


---
Don McGregor         | I woke up this morning with a bad hangover,  
mcgredo@proponent.com| and my cthread was missing.  This happens all 
                     | the time; it's detachable.

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