From fb4f8d100e10c79ca6bce3a90f81cb4ebc6b1c81 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Tue, 13 Jan 2009 19:28:11 +0100 Subject: MLKDictionary: Implement keyed-archiving methods. --- MLKDictionary.h | 4 ++++ MLKDictionary.m | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/MLKDictionary.h b/MLKDictionary.h index c88ad55..8bfd516 100644 --- a/MLKDictionary.h +++ b/MLKDictionary.h @@ -49,6 +49,10 @@ -(NSArray *) allKeys; -(NSArray *) allValues; +// Why not? ++(Class) classForKeyedUnarchiver; +-(Class) classForKeyedArchiver; + -(void) dealloc; -(void) finalize; @end diff --git a/MLKDictionary.m b/MLKDictionary.m index 9095c91..801cc95 100644 --- a/MLKDictionary.m +++ b/MLKDictionary.m @@ -254,6 +254,17 @@ static unsigned int equalp_hash (NSMapTable *table, const void *x) } ++(Class) classForKeyedUnarchiver +{ + return [MLKDictionary class]; +} + +-(Class) classForKeyedArchiver +{ + return [MLKDictionary class]; +} + + -(void) dealloc { NSFreeMapTable (m_table); -- cgit v1.2.3