blob: 8ca0afc1ed434e26676756ea7d164b52405e8b5d [file] [log] [blame]
Steve Naroff6c930f22008-06-04 04:46:04 +00001// RUN: clang -fsyntax-only -verify %s
2typedef signed char BOOL;
3typedef unsigned int NSUInteger;
4typedef struct _NSZone NSZone;
5
6@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
7
8@protocol NSObject - (BOOL)isEqual:(id)object; @end
9@protocol NSCopying - (id)copyWithZone:(NSZone *)zone; @end
10@protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone; @end
11@protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder; @end
12
13@interface NSObject <NSObject> {} @end
14
15typedef float CGFloat;
16
17typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3 } NSFastEnumerationState;
18
19@protocol NSFastEnumeration
20- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
21@end
22
23@class NSString;
24
25@interface NSDictionary : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration>
26- (NSUInteger)count;
27@end
28
29extern NSString * const NSBundleDidLoadNotification;
30
31@interface NSObject(NSKeyValueObserving)
32- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context;
33- (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
34@end
35
36enum { NSCaseInsensitivePredicateOption = 0x01, NSDiacriticInsensitivePredicateOption = 0x02 };
37
38@interface NSResponder : NSObject <NSCoding> {}
39@end
40
41extern NSString * const NSFullScreenModeAllScreens;
42@interface NSWindowController : NSResponder <NSCoding> {}
43@end
44
45extern NSString *NSAlignmentBinding ;
46
47@interface _XCOQQuery : NSObject {}
48@end
49
50extern NSString *PBXWindowDidChangeFirstResponderNotification;
51
52@interface PBXModule : NSWindowController {}
53@end
54
55@class _XCOQHelpTextBackgroundView;
56@interface PBXOpenQuicklyModule : PBXModule
57{
58@private
59 _XCOQQuery *_query;
60}
61@end
62
63@interface PBXOpenQuicklyModule ()
64@property(readwrite, retain) _XCOQQuery *query;
65@end
66
67@implementation PBXOpenQuicklyModule
68@synthesize query = _query;
69- (void) _clearQuery
70{
Chris Lattner13fd7e52008-06-21 21:44:18 +000071 [self.query removeObserver: self forKeyPath: @"matches"];
Steve Naroff6c930f22008-06-04 04:46:04 +000072}
73@end
74