In a previous question, I mentioned that a Core Data
class is receiving a message it doesn't understand (I believe it has something to do with NSFetchedResultsController
), called
-(int) sectionOffset
In trying to find the cause of the bug, I tried to find out which class was the intended receiver, to no avail: there's no mention to this message in the docs or even in google.
As a last resort, I was planning to iterate over all NSObject
's subclasses and ask (via instanceRespondsToSelector:
) if it understands the message. Hopefully, that should give me a clue of what happening here.
So, is there a way to iterate through all the subclasses of a certain class? Is there a better way to do this?