2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 %s -fsyntax-only -verify
|
2012-10-19 20:44:48 +08:00
|
|
|
// expected-no-diagnostics
|
2008-07-21 14:44:27 +08:00
|
|
|
// rdar://5967199
|
|
|
|
|
|
|
|
typedef signed char BOOL;
|
|
|
|
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
|
|
|
|
|
|
|
|
@protocol NSObject
|
|
|
|
- (BOOL) isEqual:(id) object;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol NSCoding
|
|
|
|
- (void) encodeWithCoder:(NSCoder *) aCoder;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface NSObject < NSObject > {}
|
|
|
|
@end
|
|
|
|
|
|
|
|
typedef float CGFloat;
|
|
|
|
typedef struct _NSPoint {} NSSize;
|
|
|
|
typedef struct _NSRect {} NSRect;
|
|
|
|
typedef enum { NSMinXEdge = 0, NSMinYEdge = 1, NSMaxXEdge = 2, NSMaxYEdge = 3} NSRectEdge;
|
|
|
|
extern void NSDivideRect(NSRect inRect, NSRect * slice, NSRect * rem, CGFloat amount, NSRectEdge edge);
|
|
|
|
|
|
|
|
@interface NSResponder:NSObject < NSCoding > {}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@protocol NSAnimatablePropertyContainer
|
|
|
|
- (id) animator;
|
|
|
|
@end
|
|
|
|
|
|
|
|
extern NSString *NSAnimationTriggerOrderIn;
|
|
|
|
|
|
|
|
@interface NSView:NSResponder < NSAnimatablePropertyContainer > {}
|
|
|
|
-(NSRect) bounds;
|
|
|
|
@end
|
|
|
|
|
|
|
|
enum {
|
|
|
|
NSBackgroundStyleLight = 0, NSBackgroundStyleDark, NSBackgroundStyleRaised, NSBackgroundStyleLowered
|
|
|
|
};
|
|
|
|
|
|
|
|
@interface NSTabView:NSView {}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@ class OrganizerTabHeader;
|
|
|
|
|
|
|
|
@interface OrganizerTabView:NSTabView {}
|
|
|
|
@property(assign)
|
|
|
|
NSSize minimumSize;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface OrganizerTabView()
|
|
|
|
@property(readonly) OrganizerTabHeader *tabHeaderView;
|
|
|
|
@property(readonly) NSRect headerRect;
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation OrganizerTabView
|
|
|
|
@dynamic tabHeaderView, headerRect, minimumSize;
|
2009-07-22 08:43:08 +08:00
|
|
|
-(CGFloat) tabAreaThickness { return 0; }
|
2008-07-21 14:44:27 +08:00
|
|
|
-(NSRectEdge) rectEdgeForTabs {
|
|
|
|
NSRect dummy, result = {};
|
|
|
|
NSDivideRect(self.bounds, &result, &dummy, self.tabAreaThickness, self.rectEdgeForTabs);
|
2009-07-22 08:43:08 +08:00
|
|
|
return 0;
|
2008-07-21 14:44:27 +08:00
|
|
|
}
|
2008-11-27 04:01:34 +08:00
|
|
|
@end
|
2008-07-21 14:44:27 +08:00
|
|
|
|
2009-03-11 23:15:01 +08:00
|
|
|
@class NSImage;
|
|
|
|
|
|
|
|
@interface XCImageArchiveEntry : NSObject
|
|
|
|
{
|
|
|
|
NSImage *_cachedImage;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation XCImageArchiveEntry
|
|
|
|
|
|
|
|
- (NSImage *)image
|
|
|
|
{
|
|
|
|
return _cachedImage;
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@interface XCImageArchive : NSObject
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation XCImageArchive
|
|
|
|
|
|
|
|
- (NSImage *)imageNamed:(NSString *)name
|
|
|
|
{
|
|
|
|
XCImageArchiveEntry * entry;
|
|
|
|
return entry ? entry.image : ((void *)0);
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|