Cog/Custom/RoundBackgroundField.m

42 lines
858 B
Mathematica
Raw Normal View History

2006-04-28 19:19:14 -04:00
//
// RoundBackgroundField.m
// Cog
//
// Created by Zaphod Beeblebrox on 4/28/06.
// Copyright 2006 __MyCompanyName__. All rights reserved.
//
#import "RoundBackgroundField.h"
#import "RoundBackgroundCell.h"
@implementation RoundBackgroundField
2006-04-28 20:03:28 -04:00
- (id)initWithCoder:(NSCoder *)decoder
2006-04-28 19:19:14 -04:00
{
2006-04-28 20:03:28 -04:00
self = [super initWithCoder:decoder];
if (self)
{
id cell = [[RoundBackgroundCell alloc] init];
id oldcell = [self cell];
[cell setBackgroundColor: [self backgroundColor]];
[cell setDrawsBackground: NO];
[cell setScrollable:[oldcell isScrollable]];
[cell setAlignment:[oldcell alignment]];
[cell setLineBreakMode:[oldcell lineBreakMode]];
[cell setAction: [oldcell action]];
[cell setTarget: [oldcell target]];
[cell setStringValue: [oldcell stringValue]];
[self setCell: cell];
[cell release];
}
2006-04-28 19:19:14 -04:00
2006-04-28 20:03:28 -04:00
return self;
2006-04-28 19:19:14 -04:00
}
@end