1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
3 typedef signed char BOOL;
4 typedef unsigned int NSUInteger;
5 typedef struct _NSZone NSZone;
7 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
9 @protocol NSObject - (BOOL)isEqual:(id)object; @end
10 @protocol NSCopying - (id)copyWithZone:(NSZone *)zone; @end
11 @protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone; @end
12 @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder; @end
14 @interface NSObject <NSObject> {} @end
16 typedef float CGFloat;
18 typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3 } NSFastEnumerationState;
20 @protocol NSFastEnumeration
21 - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
26 @interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
30 extern NSString * const NSBundleDidLoadNotification;
32 @interface NSObject(NSKeyValueObserving)
33 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
34 - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
37 enum { NSCaseInsensitivePredicateOption = 0x01, NSDiacriticInsensitivePredicateOption = 0x02 };
39 @interface NSResponder : NSObject <NSCoding> {}
42 extern NSString * const NSFullScreenModeAllScreens;
43 @interface NSWindowController : NSResponder <NSCoding> {}
46 extern NSString *NSAlignmentBinding ;
48 @interface _XCOQQuery : NSObject {}
51 extern NSString *PBXWindowDidChangeFirstResponderNotification;
53 @interface PBXModule : NSWindowController {}
56 @class _XCOQHelpTextBackgroundView;
57 @interface PBXOpenQuicklyModule : PBXModule
64 @interface PBXOpenQuicklyModule ()
65 @property(readwrite, retain) _XCOQQuery *query;
68 @implementation PBXOpenQuicklyModule
69 @synthesize query = _query;
72 [self.query removeObserver: self forKeyPath: @"matches"];