Source

BWToolkit / BWTokenFieldCell.m

Brandon Walkin b48f0b7 




















Brandon Walkin 6e11e5f 
Brandon Walkin b48f0b7 



//
//  BWTokenFieldCell.m
//  BWToolkit
//
//  Created by Brandon Walkin (www.brandonwalkin.com)
//  All code is provided under the New BSD license.
//

#import "BWTokenFieldCell.h"
#import "BWTokenAttachmentCell.h"

@implementation BWTokenFieldCell

- (id)setUpTokenAttachmentCell:(NSTokenAttachmentCell *)aCell forRepresentedObject:(id)anObj 
{
	BWTokenAttachmentCell *attachmentCell = [[BWTokenAttachmentCell alloc] initTextCell:[aCell stringValue]];
	
	[attachmentCell setRepresentedObject:anObj];
	[attachmentCell setAttachment:[aCell attachment]];
	[attachmentCell setControlSize:[self controlSize]];
	[attachmentCell setTextColor:[NSColor blackColor]];
	[attachmentCell setFont:[self font]];
	
	return [attachmentCell autorelease];
}

@end