@@ -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];