More PlaylistEntry cleanup.
parent
9e8173bc74
commit
23396a9747
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue