When i call the method:
- (void)removeObjectFromMediaAtIndex:(NSUInteger)idx;
which is one of the default methods in a file created as a core data object, i’m getting an error of unrecognized selector sent to instance. Anybody know why this might be happening?
Ensure that your NSManagedObject sublcass instance was created using an NSManagedObjectContext and not directly. Instead of leveraging @synthesize for properties, NSManagedObject sublcasses leverage the @dynamic keyword which indicates the accessors will be created at runtime – in this case, by the NSManagedObjectContext. They will not be there if you create the object instance using something like alloc]init];