NSGestureRecognizer: implement stub for -locationInView:

Implement stub for -[NSGestureRecognizer locationInView:] for
compatibility purposes.
This commit is contained in:
Daniel Ferreira 2017-08-17 13:28:30 +10:00 committed by Ivan Vučica
parent b09cdec727
commit 9e8ef84b54
2 changed files with 8 additions and 0 deletions

View file

@ -33,7 +33,10 @@
#import <Foundation/Foundation.h>
#import <AppKit/NSEvent.h>
@class NSView;
@interface NSGestureRecognizer : NSObject <NSCoding>
- (NSPoint)locationInView:(NSView *)view;
@end
@protocol NSGestureRecognizerDelegate <NSObject>

View file

@ -39,4 +39,9 @@
{
return;
}
- (NSPoint)locationInView:(NSView *)view
{
return NSZeroPoint;
}
@end