1 // RUN: %clang_cc1 %s -fsyntax-only -verify
4 typedef signed char BOOL;
5 @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
8 - (BOOL) isEqual:(id) object;
12 - (void) encodeWithCoder:(NSCoder *) aCoder;
15 @interface NSObject < NSObject > {}
18 typedef float CGFloat;
19 typedef struct _NSPoint {} NSSize;
20 typedef struct _NSRect {} NSRect;
21 typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3} NSRectEdge;
22 extern void NSDivideRect(NSRect inRect, NSRect * slice, NSRect * rem, CGFloat amount, NSRectEdge edge);
24 @interface NSResponder:NSObject < NSCoding > {}
27 @protocol NSAnimatablePropertyContainer
31 extern NSString *NSAnimationTriggerOrderIn;
33 @interface NSView:NSResponder < NSAnimatablePropertyContainer > {}
38 NSBackgroundStyleLight = 0, NSBackgroundStyleDark, NSBackgroundStyleRaised, NSBackgroundStyleLowered
41 @interface NSTabView:NSView {}
44 @ class OrganizerTabHeader;
46 @interface OrganizerTabView:NSTabView {}
51 @interface OrganizerTabView()
52 @property(readonly) OrganizerTabHeader *tabHeaderView;
53 @property(readonly) NSRect headerRect;
56 @implementation OrganizerTabView
57 @dynamic tabHeaderView, headerRect, minimumSize;
58 -(CGFloat) tabAreaThickness { return 0; }
59 -(NSRectEdge) rectEdgeForTabs {
60 NSRect dummy, result = {};
61 NSDivideRect(self.bounds, &result, &dummy, self.tabAreaThickness, self.rectEdgeForTabs);
68 @interface XCImageArchiveEntry : NSObject
70 NSImage *_cachedImage;
75 @implementation XCImageArchiveEntry
84 @interface XCImageArchive : NSObject
87 @implementation XCImageArchive
89 - (NSImage *)imageNamed:(NSString *)name
91 XCImageArchiveEntry * entry;
92 return entry ? entry.image : ((void *)0);