Release 2.0  by Greg Burd, May 20 1992

SwapView, a public domain software IC for the NeXT Computer.

WHAT IS THIS?

SwapView is a class that provides all the necessary functionality to swap out several views (ie. inspectors).  This is a simple class that is intended to allow the common programmer to create inspectors quickly without a huge expense.  This view will swap any panel's content view into itself and then put it back properly.  It stores none of the inspector panels as some other views of this nature do.  To do that in my opinion is to limit the functionality.  This is simply a view that swaps out other views.  In the example code, I create a standard looking inspector, but that is only the most common use of a swapping view.  This is not limited to this functionality, but will swap out any view for any purpose.  Also, the views to be swapped are not all in one long ridiculous view.  This is a dumb and inefficient way to do this.  Not only that but it is much more difficult, and slower.  This is what Brad Cox had in mind when he created Object-C, software ICs that you simply plug in and they just work, right off the net.  :-)
I hope this will encourage others to do the same with their general objects so  everyone can benefit and this environment can  lead the way for the NeXT decade.

WHY PUBLIC

I have been in the process of creating a company to distribute this object and others I have made.  The reason for PD is because of a disturbing trend I am seeing in the object  brokers area of the NeXT market.  What is happening is there are a few needed objects that are for sale, but they cost between $100 and $1500!  This is just plain stupid, and will discourage others from making objects and selling them, and in turn discourage some very good programmers.  Some objects are worth that amount, such as the speaker independent speech recognition object, but the idea behind the sale of objects is to sell small  useful objects as a hardware chip maker would sell a UART chip.  Make it  work, and inexpensive.  An argument to keep the prices high is the fact that many large companies can afford the prices.  unfortunately the back yard, garage developers and average users of the NeXT community don't have much money  (if any after paying back the loan they had to get to buy their NeXT).  So please be  reasonable, and try to encourage users of all types, rather than take advantage of the upper echelon of NeXT users.  Otherwise the NeXT may be doomed to a niche market.

CONTRACT

All I ask you to do for me is to send me any and all changes to the code provided, so I can learn from you.  :-)   You don't have to, and if there is some code that you want to keep private, I have no problem signing a non-disclosure agreement, but let me see the code!!  Please tell others about this object, they won't know and will not benefit from an object they have never heard of.  If you like this, or are confused by parts, or want to know why this way and not another, then email me.  I love constructive mail, but please don't send me hate mail if, for some reason your  system crashes and burns because of my object.    I disclaim any warranty of any kind, expressed or implied, as to  its fitness for any particular use.This code is provided with no warranties, or any other form of promise that says any of this code will work in all cases.  But I think that you will find that it does work quite well.

Have Fun!!!
¬¬
Greg Burd

gburd@nmsu.edu
i_pi!nemesis!greg
gburd@triton.unm.edu

#import <std/disclaimer.h>
#import <std/thanksToNeXT.h>
#import <std/thanksToAndrewStone/Blit.h>
**please keep all files in this package together so everyone will have all the proper files.