I'm using Core Data to store an entity which includes a transformable NSDictionary attribute. I can see an object in .SQLite file after I store it, so I think (?) I'm good there. However, when I try to retrieve the entire entity, I get an NSArray with one element [0] that is nil and (of course) crashes when I try to access any attribute.
HVBAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
NSManagedObjectContext *context = [appDelegate managedObjectContext];
NSEntityDescription *entityDesc = [NSEntityDescription entityForName:@"Events" inManagedObjectContext:context];
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
[fetchRequest setEntity:entityDesc];
NSError *error;
NSArray *objects = [context executeFetchRequest:fetchRequest error:&error];
// [objects count] = 1 but objects[0] = nil
// and the following line crashes of course
NSMutableDictionary *data = objects[0][@"data"];
Any idea what I'm doing wrong? Thanks!
(Note that I have set up an Events class with the NSDictionary property and other properties as well.)
Here's how I set up the entity:

Events.h:

Events.m:

objects. My guess is they are instances ofEvents. - Mike Derrorget set, or is it still nil? - adpalumboNSArraycannot contain nil values. What are you actually getting? - Tom Harrington