Error in the CPCountedSet archiving code. Removing for now, will reattack later.

This commit is contained in:
Ross Boucher
2009-01-22 00:46:39 -08:00
parent 928be8d8e7
commit 06601ba5df
-23
View File
@@ -79,27 +79,4 @@ Eventually we should see what these are supposed to do, and then do that.
*/
@end
var CPCountedSetCountsKey = @"CPCountedSetCountsKey";
@implementation CPSet (CPCoding)
- (id)initWithCoder:(CPCoder)aCoder
{
self = [super initWithCoder:aCoder];
if ([aCoder containsObjectForKey:CPCountedSetCountsKey])
_counts = [aCoder objectForKey:CPCountedSetCountsKey];
return self;
}
- (void)encodeWithCoder:(CPCoder)aCoder
{
[super encodeWithCoder:aCoder];
[aCoder encodeObject:_counts forKey:CPCountedSetCountsKey];
}
@end