More PlaylistEntry cleanup.

This commit is contained in:
matthewleon 2008-02-29 21:56:01 +00:00
parent 9e8173bc74
commit 23396a9747

View file

@ -82,15 +82,6 @@
return [NSString stringWithFormat:@"PlaylistEntry %i:(%@)", self.index, self.URL]; 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 // Get the URL if the title is blank
@synthesize title; @synthesize title;
- (NSString *)title - (NSString *)title
@ -102,6 +93,16 @@
return [[title retain] autorelease]; 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; @dynamic length;
- (NSNumber *)length - (NSNumber *)length
{ {