1 /* Test if prior method lookup at method @implementation time is not
2 overly aggressive, leading to methods being found in other classes. */
3 /* Author: Ziemowit Laski <zlaski@apple.com>. */
5 /* { dg-do compile } */
7 #include "../objc-obj-c++-shared/TestsuiteObject.h"
8 #include "../objc-obj-c++-shared/runtime.h"
13 + (void)setUsesUserKeyEquivalents:(BOOL)flag;
14 + (BOOL)usesUserKeyEquivalents;
17 @interface NSMenuItem : TestsuiteObject <NSMenuItem> {
23 @interface NSResponder : TestsuiteObject <NSMenuItem>
29 @interface TestsuiteObject(NSMenuValidation)
30 - (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem;
33 @interface NSResponder (NSStandardKeyBindingMethods)
34 - (void)insertText:(id)insertString;
35 - (void)doCommandBySelector:(SEL)aSelector;
38 @interface NSView : NSResponder
45 @interface SKTGraphicView : NSView {
51 @implementation SKTGraphicView
52 - (BOOL)validateMenuItem:(NSMenuItem *)item {
55 - (void)insertText:(NSString *)str {