Say A is subclass of B
Say A has a category doThis.
B also has a category doThis.
Say I did
B* b = [[B alloc]init];
[b doThis];
Is there a guarantee that doThis declared in B+doThis.h will be the one called instead of A+doThis?
Sample:
in NSManagedObject+somecategories.m
+(void)vLoadBookmark
{
//Just empty
}
Latter
in BusinessObject+somecategories.m where BusinessObject is a subclass of NSManagedObject
+(void)vLoadBookmark
{
//Do something
}
If one day I called [someBusinessObject vLoadBookmark]
will //Do something be reached?