NSWindow: add stub for +windowNumberAtPoint:belowWindowWithWindowNumber:

Add stub for +[NSWindow windowNumberAtPoint:belowWindowWithWindowNumber:]
for compatibility purposes.
This commit is contained in:
Daniel Ferreira 2017-08-17 07:55:00 +10:00 committed by Ivan Vučica
parent 10d0dce115
commit 3e9cdce801
2 changed files with 11 additions and 0 deletions

View file

@ -833,6 +833,11 @@ PACKAGE_SCOPE
#endif
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5, GS_API_LATEST)
+ (NSInteger)windowNumberAtPoint:(NSPoint)point
belowWindowWithWindowNumber:(NSInteger)windowNumber;
#endif
@end
@class NSToolbar;

View file

@ -5663,6 +5663,12 @@ current key view.<br />
return 0;
}
+ (NSInteger)windowNumberAtPoint:(NSPoint)point
belowWindowWithWindowNumber:(NSInteger)windowNumber
{
return 0;
}
@end
@implementation NSWindow (Toolbar)