//
//  FILE:       UserText.m
//  PROJECT:    iView
//
//  Created by wsyong on Thu Sep 02 2004.
//

#import "UserText.h"


@implementation UserText

-(void)setDuration:(NSTimeInterval)newDuration
{
	// NSTimeInterval is just a double
	_duration = newDuration;
}

-(NSTimeInterval)duration
{
    return _duration;
}

-(void)setText:(NSString *)newText
{
	if (_text != newText)
	{
		[_text release];
		_text = [newText retain];
	}
}

-(NSString *)text
{
    return [[_text retain] autorelease];
}

-(void)dealloc
{
	[_text release];
	[super dealloc];
}

@end
