]> git.sesse.net Git - vlc/commitdiff
macosx/framework: Implement <NSCopying> for VLCTime.
authorPierre d'Herbemont <pdherbemont@free.fr>
Wed, 26 Aug 2009 16:24:35 +0000 (18:24 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Wed, 26 Aug 2009 16:28:44 +0000 (18:28 +0200)
projects/macosx/framework/Headers/Public/VLCTime.h
projects/macosx/framework/Sources/VLCTime.m

index 6ebac8b29eb2bf323f25c076f7c3d2c564f6e19c..e5276d7e09485d1b7a82f59fe7e50fd9900e32f7 100644 (file)
@@ -27,7 +27,7 @@
 /**
  * Provides an object to define VLCMedia's time.
  */
-@interface VLCTime : NSObject
+@interface VLCTime : NSObject <NSCopying>
 {
     NSNumber * value;       //< Holds, in seconds, the VLCTime value
 }
index d145cd6204b9b9412d1008e14141baa6cc0b2977..7afdeff4d7726df1d1e90c82db0a52e4ea871652 100644 (file)
     [super dealloc];
 }
 
+- (id)copyWithZone:(NSZone *)zone
+{
+    return [[VLCTime alloc] initWithNumber:value];
+}
+
 /* NSObject Overrides */
 - (NSString *)description
 {