I have a case where I need to have NSMutableDictionary with NSManagedObject as the key.
Based on this post, I can set NSManagedObject as key in dictionary by:
[NSValue valueWithNonretainedObject:]
NSMutableDictionary *dict = [[NSMutableDictionary alloc] init];
[dict setObject:product forKey:[NSValue valueWithNonretainedObject:category]];
How can I get back the value of dict? I've tried using NSValue again but it crash with no description.