I created a subclass of NSManagedObject for my Story model. I am creating several new stories like this:
Story *newStory = [NSEntityDescription insertNewObjectForEntityForName:@"Story" inManagedObjectContext:context];
...
[stories addObject:newStory];
And then later:
Story *story = [stories objectAtIndex:[indexPath indexAtPosition:[indexPath length] - 1]];
However, it turns out that [story class]in essence is NSManagedObject, not Story, and when I try to call the method that I defined in Story, it says unrecognized selector. What am I doing wrong?
user113397
source
share