OSDN Git Service

add small window mode
[eliscolors/main.git] / ElisKeyframe.m
index f3e2414..f79601f 100644 (file)
@@ -111,4 +111,19 @@ static float convertQTTimeToSecond(QTTime t)
     return cacheValue;
 }
 
+- (void)encodeWithCoder:(NSCoder*)encoder
+{
+    [encoder encodeObject:timesAndValues forKey:@"timesAndValues"];
+    [encoder encodeObject:sortedTimes forKey:@"sortedTimes"];
+}
+
+- (id)initWithCoder:(NSCoder*)coder
+{
+    timesAndValues = [coder decodeObjectForKey:@"timesAndValues"];
+    sortedTimes = [coder decodeObjectForKey:@"sortedTimes"];
+    cacheTime = NAN;
+    
+    return self;
+}
+
 @end