I have the following code:
@implementation NSWindow (Coordination)
- (NSPoint)convertPointFromScreen:(NSPoint)point
{
NSRect rect = NSMakeRect(point.x, point.y, 1, 1);
return [self convertRectFromScreen:rect].origin;
}
I get a compiliation warning:
Category is implementing a method which will also be implemented by its primary class
I know Swift has builtin preprocessor directives to detect SDK version, but don't know how to do this in objc. Any suggestions?