More PlaylistEntry cleanup.
This commit is contained in:
parent
9e8173bc74
commit
23396a9747
1 changed files with 10 additions and 9 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue