//
//  TextFieldCell.m
//  Afficheur
//
//  Created by kichi on 08/10/04.
//  Copyright 2008 Katsuhiko Ichinose. All rights reserved.
//

#import "TextFieldCell.h"


@implementation TextFieldCell

- (NSRect)expansionFrameWithFrame:(NSRect)cellFrame
						   inView:(NSView *)view
{
	//LOG(@"[%@ expansionFrameWithFrame]", [self className]);
	return NSZeroRect;
}

- (void)drawInteriorWithFrame:(NSRect)cellFrame
					   inView:(NSView *)controlView
{
	if ([self drawsBackground])
	{
		NSColor *bgColor = [self backgroundColor];
		if (bgColor)
		{
			[bgColor set];
			[NSBezierPath fillRect:NSMakeRect(cellFrame.origin.x - 2,
											  cellFrame.origin.y - 1,
											  cellFrame.size.width + 4,
											  cellFrame.size.height + 1)];
		}
	}
	[super drawInteriorWithFrame:cellFrame
						  inView:controlView];
}

@end
