Re: NSDictionary objectForKey and non-standard key classes
Re: NSDictionary objectForKey and non-standard key classes
- Subject: Re: NSDictionary objectForKey and non-standard key classes
- From: email@hidden
- Date: Tue, 28 Aug 2001 18:25:41 +0200
- (BOOL) isEqual:(id)otherValue {
return [value isEqual:otherValue];
}
This doesn't seem quite right. "otherValue" would be an instance of
Skeleton, but you should pass the string it contains instead:
- (BOOL) isEqual:(id)otherValue {
return [value isEqual: [otherValue stringValue] ];
}
If that doesn't work, you could try using isEqualToString: which is
another method of NSString which according to the documentation is also
faster than isEqual:
Drew McCormack