2005-06-29 15:53:00 +00:00
|
|
|
#import "TrackingSlider.h"
|
|
|
|
#import "TrackingCell.h"
|
|
|
|
|
|
|
|
@implementation TrackingSlider
|
|
|
|
|
|
|
|
- (id)initWithCoder:(NSCoder *)decoder
|
|
|
|
{
|
|
|
|
self = [super initWithCoder:decoder];
|
|
|
|
if (self)
|
|
|
|
{
|
|
|
|
if (![[self cell] isKindOfClass:[TrackingCell class]])
|
|
|
|
{
|
|
|
|
TrackingCell *trackingCell;
|
|
|
|
trackingCell = [[TrackingCell alloc] init];
|
|
|
|
|
2006-04-30 14:05:07 +00:00
|
|
|
[trackingCell setControlSize:[[self cell] controlSize]];
|
2005-06-29 15:53:00 +00:00
|
|
|
[trackingCell setAction:[[self cell] action]];
|
|
|
|
[trackingCell setContinuous:[[self cell] isContinuous]];
|
|
|
|
[trackingCell setTarget:[[self cell] target]];
|
|
|
|
[self setCell:trackingCell];
|
|
|
|
|
|
|
|
[trackingCell release];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ (Class) cellClass
|
|
|
|
{
|
|
|
|
return [TrackingCell class];
|
|
|
|
}
|
|
|
|
|
|
|
|
-(BOOL)tracking
|
|
|
|
{
|
|
|
|
return [[self cell] tracking];
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|