I just started using an NSOrderedSet
with Core Data, and the first object I try to add, it fails. I found this post describing the failure: Exception thrown in NSOrderedSet generated accessors
Now I want to remove an object at a specific index. I get unrecognized selector sent to instance when I call the generated Core Data method. For me it looks like:
removeObjectFromAddressAnnotationsAtIndex:
I was wondering if I'm doing something wrong, or if there is also a bug for this generated method as well. When I stepped through, I saw my index did line up with what I expected so I'm not sure what it is.
Edit:
I use it like so:
[_route removeAddressAnnotationsAtIndexes:[NSIndexSet indexSetWithIndex:indexToRemove]];
[_route removeObjectFromAddressAnnotationsAtIndex:indexToRemove];
I've tried both, and both fail with this error:
[Route removeAddressAnnotationsAtIndexes:]: unrecognized selector sent to instance 0xea71980
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[Route removeAddressAnnotationsAtIndexes:]: unrecognized selector sent to instance 0xea71980'