Commit 39b34319 authored by Felix Paul Kühne's avatar Felix Paul Kühne

VLCTime: improve comparison API (close #15404)

parent 0927257a
......@@ -48,5 +48,7 @@
/* Comparators */
- (NSComparisonResult)compare:(VLCTime *)aTime;
- (BOOL)isEqual:(id)object;
- (NSUInteger)hash;
@end
......@@ -19,6 +19,10 @@ New APIs:
parseWithOptions:
- added enums: VLCMediaType, VLCMediaParsingOptions
- VLCTime
- added selectors: isEqual:
hash
Deprecated APIs:
- VLCMediaPlayer
- titles, chaptersForTitleIndex:, countOfTitles
......
......@@ -145,4 +145,17 @@
NSOrderedSame;
}
- (BOOL)isEqual:(id)object
{
if (![object isKindOfClass:[VLCTime class]])
return NO;
return [[self description] isEqual:[object description]];
}
- (NSUInteger)hash
{
return [[self description] hash];
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment