I\'m trying to upgrade my app with Xcode5 but encountered a number of \'Semantic issues\' in a third party library (being MagicalRecord). The quickest way to \'fix\' this mi
You just need to declare a class or protocol that contains the selector. For example:
// DeliveryTimeComparison.h
#import
@protocol DeliveryTimeComparison
- (void)compareByDeliveryTime:(id)otherTime;
@end
And then simply #import "DeliveryTimeComparison.h"
in any class where you plan to use @selector(compareByDeliveryTime:)
.
Or alternatively, just import the class header for any object that contains a "compareByDeliveryTime:" method.