// Copyright (C) 1995
// Use is governed by the MiscKit license

#import "MiscSwapKit.subproj/MiscSwapContentsController.h"
#import "MiscSCCInspector.h"


@implementation MiscSCCInspector

// Load the Inspector

- init
{
    char buf[MAXPATHLEN + 1];
    id bundle;
    
    [super init];
    
    bundle = [NXBundle bundleForClass:[MiscSwapContentsController class]];

    [bundle getPath: buf forResource: "MiscSCCInspector" ofType:"nib"];

    [NXApp loadNibFile:buf owner:self withNames:NO fromZone:[self zone]];
		   
    return self;
}



// Query the object for it's attributes to display

- revert: sender
{
	[tagForm setIntValue: [object triggerTag] ];
	
	return [super revert: sender];
}



- tagChanged:sender
{
	[object setTriggerTag: [tagForm intValue] ];
	
    return [super ok: sender];
}



- (BOOL)wantsButtons
{
	return NO;
}

@end


@implementation MiscSwapContentsController (IBInspector)

- (const char *)getInspectorClassName
{
	return "MiscSCCInspector";
}

@end
	
	