ftp.nice.ch/pub/next/tools/dock/Locus.1.0.NI.bs.tar.gz#/Locus/Source/InspectorPane.m

This is InspectorPane.m in view mode; [Download] [Up]

/*
	Copyright 1993  Jeremy Slade.  All rights reserved.
*/

#import "InspectorPane.h"

#import "Globals.h"


@implementation InspectorPane


+ initialize
{
	[self setVersion:InspectorPane_VERSION];
	return ( self );
}



- initContent:(const NXRect *)contentRect
	style:(int)aStyle
	backing:(int)bufferingType
	buttonMask:(int)mask
	defer:(BOOL)flag
{
	[super initContent:contentRect
		style:aStyle
		backing:bufferingType
		buttonMask:mask
		defer:flag];
	
	target = nil;
	
	return ( self );
}



- free
{
	return ( [super free] );
}



- inspect:anObject
/* set the object being inspected */
{
	if ( anObject != target ) {
		target = anObject;
	}
	return ( self );
}



- (BOOL)canInspect:anObject
/* Intended to be overridden by subclasses */
{
	return ( NO );
}



- inspecting
/* Returns the object currently being inspected */
{
	return ( target );
}



- showCurrent:sender
/* Update the display with the current attribute of the target */
{
	return ( self );	// Subclasses must implement
}



@end

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