@import Foundation; @protocol NSAppearanceCustomization @end @interface NSResponder : NSObject @end @protocol NSAccessibilityElement @required - (id)accessibilityParent; @end @protocol NSAccessibilityButton @required - (NSString *)accessibilityLabel; - (BOOL)accessibilityPerformPress; @end // The complete accessibility protocol @protocol NSAccessibility @required // Element containing this UIElement // Invokes when clients request NSAccessibilityParentAttribute @property (weak) id accessibilityParent; // Description of UIElement // Invokes when clients request NSAccessibilityDescriptionAttribute @property (copy) NSString *accessibilityLabel; - (NSString *)accessibilityLabel; // Invokes when clients perform NSAccessibilityPressAction - (BOOL)accessibilityPerformPress; @property (getter = isAccessibilityFocused) BOOL accessibilityFocused; @end // Specifically testing re-adopting a protocol that's adopted by a base class. @interface NSWindow : NSResponder @end @interface NSDocument : NSObject - (instancetype)init; - (instancetype)initWithURL:(NSString*)url; - (void)copyDocumentFromURL:(NSURL*)fromURL toURL:(NSURL*)toURL; - (void)scaleXBy:(NSInteger)value; @end @interface NSAwesomeDocument : NSDocument -(void)noReturnMethod:(int)arg __attribute__((noreturn)); @end @interface NSInterestingDesignated : NSObject + (instancetype)alloc; - (instancetype)initWithString:(NSString*)str NS_DESIGNATED_INITIALIZER; - (instancetype)initWithURL:(NSString*)str; @end @interface NSInterestingDesignatedSub : NSInterestingDesignated @end @interface NSColor : NSObject + (instancetype)colorWithDeviceRed:(double)red green:(double)green blue:(double)blue alpha:(double)alpha; @end @protocol NSAnimatablePropertyContainer - (instancetype)animator __attribute__((availability(macosx,introduced=10.5))); @end @interface NSLayoutConstraint : NSObject @property double constant; @end @protocol MyDelegate -(BOOL)receiverShouldJumpOnTable:(NSObject *)table; @end @interface NSScrollView : NSObject - (void)scrollItemAtIndexToTop:(int)index; @end @interface NSViewController : NSObject @end @interface NSTableViewController : NSViewController -(instancetype)initWithInt:(NSInteger)value NS_DESIGNATED_INITIALIZER; @end @interface NSObjectFactory : NSObject +(instancetype)objectFactory; +(instancetype)objectFactoryWithInteger:(NSInteger)i; +(instancetype)factoryWithDouble:(double)i; +(id)factoryWithString:(NSString *)s; +(NSObjectFactory*)factoryWithFloat:(float)f; +(instancetype)factoryBuildingWidgets; @end @interface NSObjectFactorySub : NSObjectFactory @end @interface NSString(Category) - (NSString*)nsStringMethod; + (NSInteger)nsStringClassMethod; @property (readonly) NSString *nsStringProperty; + (NSString*)someFactoryMethod; @end @interface NSDictionary(Category) - (NSDictionary*)nsDictionaryMethod; + (NSInteger)nsDictionaryClassMethod; @property (readonly) NSDictionary *nsDictionaryProperty; @end @interface CALayer - (instancetype)init; @end @interface NSView : NSObject - (instancetype)initWithCoder:(NSCoder *)aDecoder; - (BOOL)isDescendantOf:(NSView *)aView; - (NSView *)ancestorSharedWithView:(NSView *)aView; - (void)setSubviews:(NSArray *)newSubviews; - (void)addSubview:(NSView *)aView; - (void)addSubview:(NSView *)aView positioned:(unsigned)place relativeTo:(NSView *)otherView; @property (readonly, assign) NSView *superview; @property (strong) CALayer *layer; @property (readonly, copy) NSArray *trackingAreas; @property (copy) NSArray *subviews; @end @interface NSView(NSKeyboardUI) @property (assign) NSView *nextKeyView; @end @interface NSMenu : NSObject - (instancetype)initWithTitle:(NSString *)title; @end @interface NSMenuItem : NSObject // Setter is only for subclassers. @property (assign) NSMenu *menu; @property (copy) NSString *title; @property (copy) NSAttributedString *attributedTitle; @property (weak) id target; @property SEL action; @end extern NSString *NSViewFrameDidChangeNotification; extern NSString *NSViewFocusDidChangeNotification; @protocol NSApplicationDelegate @end