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/Object1.h"
12 + (void)setUsesUserKeyEquivalents:(BOOL)flag;
13 + (BOOL)usesUserKeyEquivalents;
16 @interface NSMenuItem : Object <NSMenuItem> {
22 @interface NSResponder : Object <NSMenuItem>
28 @interface Object(NSMenuValidation)
29 - (BOOL)validateMenuItem:(id <NSMenuItem>)menuItem;
32 @interface NSResponder (NSStandardKeyBindingMethods)
33 - (void)insertText:(id)insertString;
34 - (void)doCommandBySelector:(SEL)aSelector;
37 @interface NSView : NSResponder
44 @interface SKTGraphicView : NSView {
50 @implementation SKTGraphicView
51 - (BOOL)validateMenuItem:(NSMenuItem *)item {
54 - (void)insertText:(NSString *)str {