Anna Zaks | 3cd89ad | 2012-02-24 23:56:53 +0000 | [diff] [blame^] | 1 | #pragma clang system_header |
| 2 | |
| 3 | typedef unsigned int UInt32; |
| 4 | typedef signed long CFIndex; |
| 5 | typedef signed char BOOL; |
| 6 | typedef unsigned long NSUInteger; |
| 7 | @class NSString, Protocol; |
| 8 | extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2))); |
| 9 | typedef struct _NSZone NSZone; |
| 10 | @class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator; |
| 11 | @protocol NSObject |
| 12 | - (BOOL)isEqual:(id)object; |
| 13 | - (id)retain; |
| 14 | - (oneway void)release; |
| 15 | - (id)autorelease; |
| 16 | - (id)init; |
| 17 | @end @protocol NSCopying - (id)copyWithZone:(NSZone *)zone; |
| 18 | @end @protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone; |
| 19 | @end @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder; |
| 20 | @end |
| 21 | @interface NSObject <NSObject> {} |
| 22 | + (id)allocWithZone:(NSZone *)zone; |
| 23 | + (id)alloc; |
| 24 | - (void)dealloc; |
| 25 | @end |
| 26 | @interface NSObject (NSCoderMethods) |
| 27 | - (id)awakeAfterUsingCoder:(NSCoder *)aDecoder; |
| 28 | @end |
| 29 | extern id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone); |
| 30 | typedef struct { |
| 31 | } |
| 32 | NSFastEnumerationState; |
| 33 | @protocol NSFastEnumeration - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len; |
| 34 | @end @class NSString, NSDictionary; |
| 35 | @interface NSValue : NSObject <NSCopying, NSCoding> - (void)getValue:(void *)value; |
| 36 | @end @interface NSNumber : NSValue - (char)charValue; |
| 37 | - (id)initWithInt:(int)value; |
| 38 | @end @class NSString; |
| 39 | @interface NSArray : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration> - (NSUInteger)count; |
| 40 | @end @interface NSArray (NSArrayCreation) + (id)array; |
| 41 | @end @interface NSAutoreleasePool : NSObject { |
| 42 | } |
| 43 | - (void)drain; |
| 44 | @end extern NSString * const NSBundleDidLoadNotification; |
| 45 | typedef double NSTimeInterval; |
| 46 | @interface NSDate : NSObject <NSCopying, NSCoding> - (NSTimeInterval)timeIntervalSinceReferenceDate; |
| 47 | @end typedef unsigned short unichar; |
| 48 | enum { |
| 49 | NSASCIIStringEncoding = 1, |
| 50 | NSNEXTSTEPStringEncoding = 2, |
| 51 | NSJapaneseEUCStringEncoding = 3, |
| 52 | NSUTF8StringEncoding = 4, |
| 53 | NSISOLatin1StringEncoding = 5, |
| 54 | NSSymbolStringEncoding = 6, |
| 55 | NSNonLossyASCIIStringEncoding = 7, |
| 56 | }; |
| 57 | typedef NSUInteger NSStringEncoding; |
| 58 | |
| 59 | @interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding> |
| 60 | - (NSUInteger)length; |
| 61 | - (NSString *)stringByAppendingString:(NSString *)aString; |
| 62 | - ( const char *)UTF8String; |
| 63 | - (id)initWithUTF8String:(const char *)nullTerminatedCString; |
| 64 | - (id)initWithCharactersNoCopy:(unichar *)characters length:(NSUInteger)length freeWhenDone:(BOOL)freeBuffer; |
| 65 | - (id)initWithCharacters:(const unichar *)characters length:(NSUInteger)length; |
| 66 | - (id)initWithBytes:(const void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding; |
| 67 | - (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)len encoding:(NSStringEncoding)encoding freeWhenDone:(BOOL)freeBuffer; |
| 68 | + (id)stringWithUTF8String:(const char *)nullTerminatedCString; |
| 69 | @end @class NSString, NSURL, NSError; |
| 70 | @interface NSData : NSObject <NSCopying, NSMutableCopying, NSCoding> - (NSUInteger)length; |
| 71 | + (id)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length; |
| 72 | + (id)dataWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b; |
| 73 | - (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length; |
| 74 | - (id)initWithBytesNoCopy:(void *)bytes length:(NSUInteger)length freeWhenDone:(BOOL)b; |
| 75 | @end |