More PlaylistEntry cleanup.

CQTexperiment
matthewleon 2008-02-29 21:56:01 +00:00
parent 9e8173bc74
commit 23396a9747
1 changed files with 10 additions and 9 deletions

View File

@ -82,15 +82,6 @@
return [NSString stringWithFormat:@"PlaylistEntry %i:(%@)", self.index, self.URL];
}
- (NSString *)display
{
if ((self.artist == NULL) || ([self.artist isEqualToString:@""]))
return self.title;
else {
return [NSString stringWithFormat:@"%@ - %@", self.artist, self.title];
}
}
// Get the URL if the title is blank
@synthesize title;
- (NSString *)title
@ -102,6 +93,16 @@
return [[title retain] autorelease];
}
@dynamic display;
- (NSString *)display
{
if ((self.artist == NULL) || ([self.artist isEqualToString:@""]))
return self.title;
else {
return [NSString stringWithFormat:@"%@ - %@", self.artist, self.title];
}
}
@dynamic length;
- (NSNumber *)length
{