
#import "Block.h"

@implementation Block

- init
{
	blockColor=NX_COLORWHITE;
	return self;
}

- setBlockColor:(NXColor)aColor
{
	blockColor=aColor;
	return self;
}

- (NXColor)blockColor {return blockColor;}

- setReference:anObject
{
	reference=anObject;
	return self;
}

- reference {return reference;}

- (char *)getInspectorClassName
{
	return "BlockInspector";
}

- setLabel:(const char *)aString
{
	if(label)NXZoneFree([self zone],label);
	label=NXCopyStringBufferFromZone(aString,[self zone]);
	return self;
}

- (const char *)label {return label;}

@end
