summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2009-01-13 19:28:11 +0100
committerMatthias Andreas Benkard <matthias@benkard.de>2009-01-13 19:28:11 +0100
commitfb4f8d100e10c79ca6bce3a90f81cb4ebc6b1c81 (patch)
tree798d006d1c48d582990b30412bfd7b2d293782be
parentdf867c1495f92c0df046199557cab647a2f48170 (diff)
MLKDictionary: Implement keyed-archiving methods.
-rw-r--r--MLKDictionary.h4
-rw-r--r--MLKDictionary.m11
2 files changed, 15 insertions, 0 deletions
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);