diff -r 8982b8fada63 -r 1dfe820d7ebe MYKeychainItem.m --- a/MYKeychainItem.m Tue Apr 07 10:56:58 2009 -0700 +++ b/MYKeychainItem.m Wed Apr 08 16:30:52 2009 -0700 @@ -50,10 +50,8 @@ } - (BOOL) isEqual: (id)obj { - // Require the objects to be of the same class, so that a MYPublicKey will not be equal to a - // MYKeyPair with the same public key. - return (obj == self) || - ([obj class] == [self class] && CFEqual(_itemRef, [obj keychainItemRef])); + return (obj == self) || + ([obj isKindOfClass: [MYKeychainItem class]] && CFEqual(_itemRef, [obj keychainItemRef])); } - (NSUInteger) hash {