Steve Naroff | 6c930f2 | 2008-06-04 04:46:04 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
| 2 | typedef signed char BOOL; |
| 3 | typedef unsigned int NSUInteger; |
| 4 | typedef 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 | |
| 15 | typedef float CGFloat; |
| 16 | |
| 17 | typedef 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 | |
| 29 | extern 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 | |
| 36 | enum { NSCaseInsensitivePredicateOption = 0x01, NSDiacriticInsensitivePredicateOption = 0x02 }; |
| 37 | |
| 38 | @interface NSResponder : NSObject <NSCoding> {} |
| 39 | @end |
| 40 | |
| 41 | extern NSString * const NSFullScreenModeAllScreens; |
| 42 | @interface NSWindowController : NSResponder <NSCoding> {} |
| 43 | @end |
| 44 | |
| 45 | extern NSString *NSAlignmentBinding ; |
| 46 | |
| 47 | @interface _XCOQQuery : NSObject {} |
| 48 | @end |
| 49 | |
| 50 | extern 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 Lattner | 13fd7e5 | 2008-06-21 21:44:18 +0000 | [diff] [blame^] | 71 | [self.query removeObserver: self forKeyPath: @"matches"]; |
Steve Naroff | 6c930f2 | 2008-06-04 04:46:04 +0000 | [diff] [blame] | 72 | } |
| 73 | @end |
| 74 | |