mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-06 18:57:12 +00:00
Error in the CPCountedSet archiving code. Removing for now, will reattack later.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user