ftp.nice.ch/pub/next/developer/resources/classes/SwapView.2.0.N.b.tar.gz#/SwapView_2.0r/ExampleCode/SwapView.h

This is SwapView.h in view mode; [Download] [Up]

/*
 * Author: Greg Burd, Mr. Average Developer
 *    (I would like to be a member of the NeXT Developer Support Team.)
 *
 * You may freely copy, distribute and reuse the code in this example.  
 * I disclaim any warranty of any kind, expressed or implied, as to 
 * its fitness for any particular use.
 */

#import <appkit/View.h>

@interface SwapView:View
{
	id		lastInspector;
	id		currentInspector;
	id		delegate;
	float	backgroundGray;
}

- init;
- initFrame:(NXRect *)frame;
- delegate;
- setDelegate:(id)anObject;
- (float)backgroundGray;
- setBackgroundGray:(float)aColor;
- currentInspector;
- lastInspector;
- swapIt:sender;
- swapIt;
- free;

@end
/*---------------------------------------------------------------------------*/
/* DELEGATE NEEDS TO ANSWER 

- whatPanel		<-  This has the id of the loaded panel.  That panel's
					contentView is used as the inspector.  The panel's
					frame should be the same size as the SwapView.
						
So below we have set up a dummy interface declaration so we don't get
a complier error, and we can send a
	[delegate respondsTo:@selector(whatPanel)];
And make sure that the delegate has the method. Stability, known state, etc...
*/

@interface someDelegate:Object

- whatPanel;

@end

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