Commit ac8236da authored by Pierre's avatar Pierre

macosx/framework: Implement <NSCopying> for VLCTime.

parent 6aa4137f
......@@ -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
}
......
......@@ -58,6 +58,11 @@
[super dealloc];
}
- (id)copyWithZone:(NSZone *)zone
{
return [[VLCTime alloc] initWithNumber:value];
}
/* NSObject Overrides */
- (NSString *)description
{
......
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